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

Fixed: Parenthesis around an "In" expression raise an exception #587

Merged
merged 2 commits into from
May 12, 2022

Conversation

cambirch
Copy link
Contributor

@cambirch cambirch commented May 4, 2022

Fixes: #586

Parser is greedy eating the next token inside an In expression when the expression is an Identifier.
This worked correctly when the expression is: x in (1, 2) but fails when (x in @0).

Moved the token read into the Paren code branch which fixes the problem.

cambirch added 2 commits May 4, 2022 08:56
…ws it was inside a parenthesis. This will fix it so that it doesn't eat the parenthesis for the surrounding statement when parsing an identifier.
@StefH StefH changed the title Fixes: #586 Fixed: Parenthesis around an "In" expression raise an exception May 5, 2022
@StefH
Copy link
Collaborator

StefH commented May 5, 2022

@cambirch
Thank you.

@StefH StefH merged commit 2252f95 into zzzprojects:master May 12, 2022
@StefH StefH added the bug label May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Parenthesis around an "In" expression raise an exception
2 participants