thibaudcolas / curlylint

Experimental HTML templates linting for Jinja, Nunjucks, Django templates, Twig, Liquid
https://www.curlylint.org/
MIT License
236 stars 25 forks source link

parse error expectation wrong #144

Open iameru opened 1 year ago

iameru commented 1 year ago

Trying out curlylint, using it in pre-commit rev: "v0.13.1"

Im editing some jinja2 templating file. In it I have a block

...
{% for xyz in xyzs %}
    <do>stuff</do>
{% endfor %}

curlylint now complains:

 Parse error: expected one of 'autoescape', 'block', 'blocktrans', 'comment', 'filter', 'for', 'if', 'ifchanged', 'ifequal', 'ifnotequal', 'not an intermediate Jinja tag name', 'spaceless', 'verbatim', 'with' at 24:5     parse_error

jinja2 of course renders just fine.

for now I'll stop using it. Might drop in later again. In case you need more info let me know

OmerFI commented 1 year ago

That code works just fine: image

Lint output: image