Add prefix math operators +, - to javascript grammar

This commit is contained in:
Max Brunsfeld 2014-05-02 07:42:13 -07:00
parent b97e4f1de8
commit 1bdd87535a
3 changed files with 10586 additions and 9600 deletions

View file

@ -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),