Add prefix math operators +, - to javascript grammar
This commit is contained in:
parent
b97e4f1de8
commit
1bdd87535a
3 changed files with 10586 additions and 9600 deletions
|
|
@ -90,6 +90,8 @@ namespace tree_sitter_examples {
|
|||
sym("identifier"),
|
||||
in_parens(sym("expression")) }) },
|
||||
{ "math_op", choice({
|
||||
prefix_op("+", "expression", 3),
|
||||
prefix_op("-", "expression", 3),
|
||||
infix_op("*", "expression", 2),
|
||||
infix_op("/", "expression", 2),
|
||||
infix_op("+", "expression", 1),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue