Skip to content

Commit

Permalink
Support having an additional comma in the end of multi-line with stat…
Browse files Browse the repository at this point in the history
…ements.
  • Loading branch information
fabioz committed Jan 17, 2025
1 parent 2764171 commit a32c052
Show file tree
Hide file tree
Showing 10 changed files with 1,262 additions and 919 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1369,13 +1369,13 @@ void with_stmt(): {}
LOOKAHEAD(with_item())
(
with_item()
({grammarActions.findTokenAndAdd(",");}<COMMA> with_item())*
({grammarActions.findTokenAndAdd(",");}<COMMA> [with_item()])*
)
|
(
<LPAREN>
with_item()
({grammarActions.findTokenAndAdd(",");}<COMMA> with_item())*
({grammarActions.findTokenAndAdd(",");}<COMMA> [with_item()])*
<RPAREN>
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1175,13 +1175,13 @@ void with_stmt(): {}
LOOKAHEAD(with_item())
(
with_item()
($COMMA with_item())*
($COMMA [with_item()])*
)
|
(
<LPAREN>
with_item()
($COMMA with_item())*
($COMMA [with_item()])*
<RPAREN>
)
)
Expand Down
Loading

0 comments on commit a32c052

Please # to comment.