Add '+=' assignment

This commit is contained in:
Bruno BELANYI 2024-04-07 21:40:17 +01:00
parent 967bde688a
commit f67e7c675a
5 changed files with 137 additions and 52 deletions

View file

@ -17,7 +17,7 @@ module.exports = grammar({
assignment: ($) => seq(
field("left", $.identifier),
field("operator", "="),
field("operator", choice("=", "+=")),
field("right", $._expr),
),