-
Notifications
You must be signed in to change notification settings - Fork 56
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
Two ternary operators - fail to parse #140
Comments
If you make parentheses for the entire ternary or for only a condition, it works.
or
|
@IButskhrikidze - I am trying to parse all the code in a repo, and it is what it is ... The parser is very close, but even one or two errors cause pain |
For me this bug appeared in 4.3.1; downgrading to 4.3.0 fixed it. |
I have the same issue with 4.3.1 for a binary operation : When downgrading to 4.3.0, everything is OK. |
also broken for multi-line ternary even if wrapped in ().
this does not
|
I had a parse error that I reduced to
results in
Python 3.11.3; HCL2: 4.3.2
The text was updated successfully, but these errors were encountered: