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 a looping parser case #334

Merged
merged 1 commit into from
Sep 27, 2017
Merged

Fix a looping parser case #334

merged 1 commit into from
Sep 27, 2017

Conversation

gbrail
Copy link
Collaborator

@gbrail gbrail commented Sep 26, 2017

When error recovery is enabled, this prevents an infinite loop in parsing.

@sainaen
Copy link
Contributor

sainaen commented Sep 27, 2017

I've checked a couple of cases that could be affected by this change and everything seems to be ok. 👍

Also, if I'm reading it correctly, Nashorn's parser does a kind of similar thing: it consumes both parenthesis and then asserts that the next token is ARROW. So, at least this way of dealing with an issue isn't that hack-ish.

@gbrail
Copy link
Collaborator Author

gbrail commented Sep 27, 2017

Thanks for looking at this! I'm going to merge it since it at least gets us closer to fixing the underlying problem.

@gbrail gbrail merged commit d30a8eb into master Sep 27, 2017
@gbrail gbrail deleted the fix-arrow-parsing branch September 27, 2017 23:11
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.

None yet

2 participants