Skip to content

Compound assignment (+= -= ×= ÷=, +↩ …) - #7

Merged
theharshon merged 1 commit into
mainfrom
compound-assign
Nov 28, 2026
Merged

theharshon merged 1 commit into
mainfrom
compound-assign

Conversation

@theharshon

Copy link
Copy Markdown
Member

Mimic 0.4.4 adds compound assignment: x += 1 is x = x + 1, also -=, ×= and ÷= (ASCII spellings *= and /=). The glyph spellings are +↩ -↩ ×↩ ÷↩, and +\= uses the \= digraph. In TextMate each of these highlights as one assignment operator; tree-sitter reads them as the operators they are made of. The keyword-glyphs sample uses two of them.

@theharshon
theharshon merged commit 973ef3b into main Nov 28, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant