Skip to content
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

parse error expectation wrong #144

Open
iameru opened this issue Oct 11, 2022 · 1 comment
Open

parse error expectation wrong #144

iameru opened this issue Oct 11, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@iameru
Copy link

iameru commented Oct 11, 2022

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

@iameru iameru added the bug Something isn't working label Oct 11, 2022
@OmerFI
Copy link

OmerFI commented Jan 10, 2023

That code works just fine:
image

Lint output:
image

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

2 participants