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

tests: add more coverage for keywords #189

Merged
merged 1 commit into from
Sep 21, 2021
Merged

tests: add more coverage for keywords #189

merged 1 commit into from
Sep 21, 2021

Conversation

benjreinhart
Copy link
Contributor

Hey all,

I noticed that bare identifiers with a prefix that matches a keyword seem to confuse both the JS and Rust implementations into failing to parse. I don't think that's the desired behavior, so I added the following test cases that would be failing for those implementations.

Happy to change the tests around if folks have opinions or remove/merge some if you think any are redundant.

For example, the following two lines each fail:

null_id
node null_id=1

But these pass:

nnull_id
node nnull_id=1

Copy link
Member

@zkat zkat left a comment

Choose a reason for hiding this comment

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

oh snap. Nice catch. Please be sure to file individual issues for those parsers. this should be fixed for sure.

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