Skip to content

jinjalint does not detect trailing coma in for loop #23

Description

@allan-simon

jinjalint reports no syntax error with this code

{%
  for
    a,
    b,
  in [(1, 1), (2, 2)]
%}

{% endfor %}

while actual jinja reports

Syntax error in jinja2 template: expected token 'in', got '['

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