Workaround duplicate symbol problem in golang grammar

Currently, a grammar can't have a string rule and a keyword rule with
the same string.
This commit is contained in:
Max Brunsfeld 2014-10-21 13:01:17 -07:00
parent 8a03bd8978
commit d8099826f9
2 changed files with 39380 additions and 47762 deletions

View file

@ -100,7 +100,7 @@ extern const Grammar golang = Grammar({
{ "range_statement", seq({
keyword("for"),
sym("var_name"),
optional(seq({ str(","), sym("var_name") })),
optional(seq({ keyword(","), sym("var_name") })),
str(":="),
keyword("range"),
sym("expression"),

File diff suppressed because it is too large Load diff