Skip to content

Fix pipe operator ('|') precedence #47

Closed
@flexferrum

Description

@flexferrum

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions