Skip to content

Commit

Permalink
fix: support more variable assignment operators
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Feb 1, 2024
1 parent 5fefd45 commit dad9c38
Show file tree
Hide file tree
Showing 5 changed files with 3,672 additions and 3,538 deletions.
6 changes: 3 additions & 3 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ module.exports = grammar({

variable: $ => seq(
field('left', $.symbol),
':=',
optional(','),
field('right', $.expression),
choice('=', ':=', '+=', '?='),
repeat(choice(',', field('right', $.expression))),
/\r?\n/,
),

_config_option: $ => choice(
Expand Down
41 changes: 31 additions & 10 deletions src/grammar.json

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

12 changes: 10 additions & 2 deletions src/node-types.json

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

Loading

0 comments on commit dad9c38

Please sign in to comment.