Open gasman opened 1 year ago
An unmatched HTML tag inside a {% comment %} block raises the error
{% comment %}
Parse error: expected one of 'autoescape', 'block', 'blocktrans', 'comment', 'filter', 'for', 'if', 'ifchanged', 'ifequal', 'ifnotequal', 'not an intermediate Jinja tag name', 'spaceless', 'verbatim', 'with'.
Parse error: expected one of 'autoescape', 'block', 'blocktrans', 'comment', 'filter', 'for', 'if', 'ifchanged', 'ifequal', 'ifnotequal', 'not an intermediate Jinja tag name', 'spaceless', 'verbatim', 'with'
comment, parse error
curlylint 0.13.1, python 3.11.1, MacOS 11.7.3
Create a new folder containing a file test.html:
test.html
{% comment %} there is an <interesting> tag here {% endcomment %}
Run curlylint --parse-only .
curlylint --parse-only .
Linting should pass with no errors
Error reported:
test.html 2:3 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 2:3 parse_error Oh no! 💥 💔 💥 1 error reported
Describe the bug
An unmatched HTML tag inside a
{% comment %}
block raises the errorParse error: expected one of 'autoescape', 'block', 'blocktrans', 'comment', 'filter', 'for', 'if', 'ifchanged', 'ifequal', 'ifnotequal', 'not an intermediate Jinja tag name', 'spaceless', 'verbatim', 'with'
.Which terms did you search for in the documentation and issue tracker?
comment, parse error
74 is similar but not identical.
Environment
curlylint 0.13.1, python 3.11.1, MacOS 11.7.3
Steps to reproduce
Create a new folder containing a file
test.html
:Run
curlylint --parse-only .
Expected behavior
Linting should pass with no errors
Actual behavior
Error reported: