You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently moved to a different CSS grammar for providing syntax highlighting. The old one was unmaintained, and the new one has good fixes in it. You can see the full discussion here: #115480
Specifically, see #115480 (comment), which references viewport as a deprecated feature (details https://developer.mozilla.org/en-US/docs/Web/CSS/@viewport). Even though the new grammar is missing ms-viewport, we decided to go with it because the benefits of having a maintained grammar outweighed the negative of missing the deprecated ms-viewport.
If you feel strongly that this is essential for the grammar, I recommend going to https://github.com/atom/language-css/, the repo that we pull our css grammar from, and filing an issue there to ask for ms-viewport to be supported in their textmate grammar.
alexr00
added
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
grammar
Syntax highlighting grammar
labels
Apr 7, 2021
Thank you for the detailed explanation Alex!
I was using this feature for emails and as we know the email coding is kind of stuck in the past :)
I will work on retiring this deprecated feature in my code as it seems that it is not essential anymore.
I added correct syntax highlight for
-ms-viewport
and-o-viewport
.Originally posted by @octref in #54515 (comment)
The text was updated successfully, but these errors were encountered: