Add '+=' assignment
This commit is contained in:
parent
38bf9532ad
commit
bc06816b57
5 changed files with 137 additions and 52 deletions
|
|
@ -16,7 +16,7 @@ module.exports = grammar({
|
|||
|
||||
assignment: ($) => seq(
|
||||
field("left", $.identifier),
|
||||
field("operator", "="),
|
||||
field("operator", choice("=", "+=")),
|
||||
field("right", $._expr),
|
||||
),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue