Closed nodod closed 6 years ago
style.
means the content is raw text (pugjs 2 works the same way). Your CSS highlighting plugin must be obsolete (pugjs 1 allowed this dot+filter for style or script, but it was an inconsistency with other tags). JetBrains Pug plugin works well and even highlight according to LESS syntax.
https://pugjs.org/language/filters.html
We will not change this. First because it's a breaking change, then because it will create a divergence with pugjs 2 (what we're trying to port as close as possible).
Thanks for clearing my confusion. 👍
Hello,
I encountered an issue with the following code:
I expected to get:
But I actually get:
As you can see, the less filter doesn't work. It works if I remove the dot infront of the style. So
style.
does not work andstyle
works.Is there a reason why the filter doesn't work when a dot is placed infront of style tag.
Seems like a possible bug. I would really like to put a dot infront of style so that I could get css highlighting to work properly in sublime text :)
Thanks!