-
Previous Value Current Value Cleanup: and are the same regex — pointless conflict
Cleanup: word and identifier are the same regex - pointless conflict
| Type |
Improvement
|
| Priority |
Minor
|
| Assignees |
Not assigned
|
Issue Votes (0)
Summary
wordandidentifierare defined with the same regex:This is a deliberate-looking ambiguity, and it is listed in
conflicts:The two are used in different contexts (
identifierfor$refvariable references,wordfor names), but since they match identically, the conflict forces tree-sitter to try both productions. This generates spurious ambiguity and can produce surprising parse trees.Expected
Pick one canonical token and delete the duplicate. If
identifierandwordmust remain semantically distinct (e.g. for highlighting or transpiler consumers), give them different productions or mark one as an alias.Files
grammar.js—identifier,word,conflicts