8000 Fix pipe operator ('|') precedence · Issue #47 · jinja2cpp/Jinja2Cpp · GitHub
[go: up one dir, main page]

Skip to content

Fix pipe operator ('|') precedence #47

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

Closed
flexferrum opened this issue Oct 1, 2018 · 1 comment
Closed

Fix pipe operator ('|') precedence #47

flexferrum opened this issue Oct 1, 2018 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@flexferrum
Copy link
Collaborator

pallets/jinja#882

Current precedence of pipe operator doesn't follow the original jinja2 rules. Need to be fixed. This code:

2 < 6 | bool | string

should be interpreted as:

2 < (6 | bool | string)

instead of

(2 < 6) | bool | string
@flexferrum flexferrum added the bug Something isn't working label Oct 1, 2018
@flexferrum flexferrum added this to the Release 1.0 milestone Oct 1, 2018
palchukovsky added a commit that referenced this issue Jun 13, 2019
flexferrum pushed a commit that referenced this issue Jun 13, 2019
* Fixed pipe operator ('|') precedence #47

* Removed method FullExpressionEvaluator::SetFilter, as it isn't required anymore after bug #47 resolving.
@flexferrum
Copy link
Collaborator Author

#114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0