Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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