File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -733,6 +733,7 @@ module.exports = grammar({
733733 '(' ,
734734 optional ( $ . uncurry ) ,
735735 optional ( commaSep1t ( $ . _call_argument ) ) ,
736+ optional ( $ . partial_application_spread ) ,
736737 ')'
737738 ) ,
738739
@@ -744,6 +745,8 @@ module.exports = grammar({
744745 $ . labeled_argument ,
745746 ) ,
746747
748+ partial_application_spread : $ => "..." ,
749+
747750 labeled_argument : $ => seq (
748751 '~' ,
749752 field ( 'label' , $ . value_identifier ) ,
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ blocky(
111111 ~third={3},
112112)
113113f(raise)
114+ f(1, ...)
114115
115116--------------------------------------------------------------------------------
116117
@@ -191,7 +192,13 @@ f(raise)
191192 (call_expression
192193 function: (value_identifier)
193194 arguments: (arguments
194- (value_identifier)))))
195+ (value_identifier))))
196+ (expression_statement
197+ (call_expression
198+ function: (value_identifier)
199+ arguments: (arguments
200+ (number)
201+ (partial_application_spread)))))
195202
196203================================================================================
197204Pipe
You can’t perform that action at this time.
0 commit comments