Closed NihilumPlays closed 7 months ago
I was using that extension because visual studio at some point broke the highlighting of all pug files, but apparantly they fixed that in a very recent update, so now I don't even need the extension, so disregard this issue
Using visual studio 2022 with the extension https://marketplace.visualstudio.com/items?itemName=AlexanderRamesar.PugLanguage2022
Sorry if any of the following are confusing. There is a lot of overlapping happening and it's hard to tell if a thing is unique or it's 2 or more different things at once.
If you use the script. inside a mixin it will just show it as one long string
If you use - and indent the following code as the official pug page shows how you should do it, it will not highlight the code. If you dont indent, it will highlight If you use javascript in a attribute it will be treated as a long string (I would expect the " to properly escape the string concatenation so anything between the plusses would be treated as javascript and highlighted as so)
script. and - also seems to have limited javascript highlighting outside of mixins, var keyword is colored brown (which I would expect to be blue) and if statements works like described below
true/false keywords doesn't seem to be highlighted blue anywhere strings and regular expressions in javascript code are not highlighted brown anywhere some keywords are colored brown instead of blue. It seems like any keyword not covered by pug is colored brown instead of blue
If you don't make a space after an if command the if will be colored brown and anything inside the if statement will be colored red except = which are brown If you add the space the if is colored blue as expected but nothing between the parantheses will be highlighted (like i would expect string to be brown, true/false to be blue etc. Intellisense does however recognize properties, parameters etc. when you start typing inside the if parantheses. Code or html following else or else if statements on the next line will not be highlighted. It will only be highlighted if you make an empty line between the statement and the code. Code following if statements on the next line works as expected