davidrios / jade-tmbundle

A comprehensive textmate / sublime text bundle for the Jade template language.
https://github.com/davidrios/jade-tmbundle
MIT License
102 stars 31 forks source link

Wrong highlighting when using tag interpolation. Pug #92

Closed aeschli closed 6 years ago

aeschli commented 6 years ago

From @lucasdavidferrero on March 14, 2018 23:44

Description: When I use tag interpolation in Pug and add some text to it, the editor highlights the content as if this were an element. I think you'll better see this in the following image: image

It's just a tiny issue but It'd be nice if someone could fix it. Regards!

div.important 
    ul
        li #[a(href="#") textContent]

I'm using tag interpolation in Pug, you can read more here. The issue is that VScode highlights with an element's color (blue in this case) text content of an <a> and a <div>, as is shown in the screenshot. It should be treated as plain text (i.e the "dummy div" text) so in this case, It must be white. Of course, this is purely stylistic and nothing affects the output but I just wanted to express this tiny issue.

Copied from original issue: Microsoft/vscode#45814

davidrios commented 6 years ago

The example works perfectly fine on Sublime Text:

screenshot from 2018-03-16 10-08-46 screenshot from 2018-03-16 10-09-08 screenshot from 2018-03-16 10-09-22 screenshot from 2018-03-16 10-09-59

Please note that this bundle does not officially support VSCode.