Add '+=' assignment

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

View file

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