Add '+=' assignment
This commit is contained in:
parent
967bde688a
commit
f67e7c675a
5 changed files with 137 additions and 52 deletions
|
|
@ -17,7 +17,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