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

Broken highlighting in Jinja CSS #137

Open
nokyotsu opened this issue May 22, 2023 · 2 comments
Open

Broken highlighting in Jinja CSS #137

nokyotsu opened this issue May 22, 2023 · 2 comments

Comments

@nokyotsu
Copy link

If I type the following into vscode:

body {
    color: {{ color("gray", 800) }};
    background-color: {{ color("white") }};
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 20px;
}

I get the following highlighting:

Screenshot 2023-05-22 at 15 37 17

It seems that the highlighter is getting confused by the {{ ... }} used by jinja.

@stanmertens
Copy link

Thanks for mentioning this, I ran into the same issue. If you change the double-quotes to single-quotes inside {{ ... }} it will work, but unfortunately my jinja linter doesn't like that.

@cquick01
Copy link

Might be related to #107 . It seems like the single curly brackets are causing issues when jinja delimiters are used within.

I am seeing a similar issue with jinja-cpp:

image

which has the same issue (at least with comment coloring) as the CSS example

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants