Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disallow whitespace in identifiers #7

Merged
merged 3 commits into from
Dec 30, 2024

Conversation

gerblesh
Copy link
Contributor

This should hopefully fix the issue where whitespace is allowed inside an identifier. A little jank but I can't think of anything much better. This may also be a minor thing that doesn't need fixing but I figure it might be odd if stuff like cursor -style started matching as an identifier, or file _name.

Copy link
Owner

@bezhermoso bezhermoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Learning this much about tree-sitter wasn't on my 2024 EOY bingo card!

grammar.js Outdated Show resolved Hide resolved
Co-authored-by: Bez Hermoso <bezalelhermoso@gmail.com>
@gerblesh
Copy link
Contributor Author

Learning this much about tree-sitter wasn't on my 2024 EOY bingo card!

Me neither lol, happy to be learning it nonetheless

@bezhermoso bezhermoso merged commit e482e5e into bezhermoso:main Dec 30, 2024
3 checks passed
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