Skip to content

Commit

Permalink
fix: allow special argument lists to be omitted in case it's a local …
Browse files Browse the repository at this point in the history
…variable
  • Loading branch information
amaanq committed May 10, 2024
1 parent eb68645 commit 7ee8d92
Show file tree
Hide file tree
Showing 6 changed files with 21,112 additions and 23,987 deletions.
3 changes: 3 additions & 0 deletions bindings/rust/build.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,11 @@ module.exports = grammar({

special_argument_list: $ => seq(
'(',
$._type,
repeat(seq(',', $._expression)),
optional(','),
optional(seq(
$._type,
repeat(seq(',', $._expression)),
optional(','),
)),
')',
),

Expand Down
57 changes: 35 additions & 22 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7ee8d92

Please sign in to comment.