Skip to content

if foo is bar and ... fails to parse #84

@moll

Description

@moll

Hey!

Thanks for maintaining Ginger!

I believe there's a precedence bug parsing the following if that I'm seeing in real-life Jinja templates:

{%- if foo is bar and baz is qux %}
{%- endif %}

It warns of an unexpected "b" at column 23, i.e where baz is qux starts at. If you parenthesize the foo is bar part, it parses fine. I assume it's a precedence issue with is and and. :)

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions