Skip to content

Conversation

@forivall
Copy link

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

@forivall
Copy link
Author

Also the regex for identifiers was incorrect. Identifiers should not be able to include hyphens.

@dlvandenberg
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants