Fix operator precedence of '.' operator in js grammar

This commit is contained in:
Max Brunsfeld 2014-06-11 14:01:38 -07:00
parent 3cd031af38
commit 082560dd6e
5 changed files with 198 additions and 184 deletions

View file

@ -164,11 +164,11 @@ namespace tree_sitter_examples {
sym("function_call") }) },
{ "property_access", seq({
sym("expression"),
choice({
prec(10, choice({
seq({
str("."),
sym("identifier") }),
in_brackets(sym("expression")) }) }) },
in_brackets(sym("expression")) })) }) },
{ "formal_parameters", in_parens(comma_sep(sym("identifier"))) },
// Literals