Allow trailing comma in function call grammar
This commit is contained in:
parent
aca4f669ad
commit
6f742ec577
@ -36,5 +36,5 @@ identifier -> IDENTIFIER | "@" STRING ;
|
|||||||
operand -> ( NUMBER | STRING | identifier | "(" expression ")" | record | variant | list) ;
|
operand -> ( NUMBER | STRING | identifier | "(" expression ")" | record | variant | list) ;
|
||||||
selector -> "." identifier ;
|
selector -> "." identifier ;
|
||||||
index -> "[" expression "]" ;
|
index -> "[" expression "]" ;
|
||||||
arguments -> "(" ( "_" | expression ( "," ( "_" | expression ) )* )? ")" ;
|
call -> "(" ( ( "_" | expression ) ( "," ( "_" | expression ) )* ","? )? ")" ;
|
||||||
primary -> operand ( selector | index | arguments ) ;
|
primary -> operand ( selector | index | call ) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user