Skip to content

Commit

Permalink
Add support for *= operator
Browse files Browse the repository at this point in the history
  • Loading branch information
ExcaliburZero committed Nov 5, 2023
1 parent b87807f commit d19d77f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions tree-sitter-quickbms/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ module.exports = grammar({
"=",
"+=",
"-=",
"*=",
"/=",
"^=",
"*",
Expand Down
6 changes: 6 additions & 0 deletions tree-sitter-quickbms/test/corpus/math.bms
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ math BYTESWAP2 >> 4
math BYTESWAP + BYTESWAP2

math ZSIZE -= 8
math SWIZZLE *= 2

--------------------------------------------------------------------------------

Expand Down Expand Up @@ -100,6 +101,11 @@ math ZSIZE -= 8
(identifier)
(operation)
(identifier))
(math_statement
(math)
(identifier)
(operation)
(integer_literal))
(math_statement
(math)
(identifier)
Expand Down

0 comments on commit d19d77f

Please sign in to comment.