tree-sitter-angular
tree-sitter-angular copied to clipboard
fix: define identifier as word
Any identifier starting with in, like "increaseVolume" would be parsed as a keyword, breaking parsing. The word feature solves this: https://tree-sitter.github.io/tree-sitter/creating-parsers/3-writing-the-grammar.html#keywords
Also the regex for identifiers was incorrect. Identifiers should not be able to include hyphens.
Thanks for the improvement @forivall . Can you show me an example angular template that would have this issue? I've never had the issue that an identifier was parsed as a keyword.