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

Parsing fails for {% comment %} including number within HTML tag #143

Open
vekerdyb opened this issue Oct 7, 2022 · 0 comments
Open

Parsing fails for {% comment %} including number within HTML tag #143

vekerdyb opened this issue Oct 7, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@vekerdyb
Copy link

vekerdyb commented Oct 7, 2022

Describe the bug

Parsing fails for {% comment %} including number within HTML tag.

Environment

OSX 12.6

Python 3.10.6

curlylint 0.13.1

Steps to reproduce

  1. Create the template:
    <div
        {% comment %}
            1
        {% endcomment %}
    ></div> 
  2. Then, run curlylint on it

Expected behavior

Should pass, similarly to this version, without a number (which passes as expected):

<div
    {% comment %}
        A
    {% endcomment %}
></div> 

Actual behavior

Fails with:

$ curlylint --verbose /project/template.html
Identified project root as: /project
Analyzing file content from stdin
Files being analyzed:
/project/template.html
/project/template.html
2:8     Parse error: expected one of '>', 'attribute', '{#', '{%', '{{' at 2:8  parse_error
@vekerdyb vekerdyb added the bug Something isn't working label Oct 7, 2022
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

1 participant