Open OldStarchy opened 4 years ago
This is a very similar issue to https://github.com/adrhumphreys/vscode-silverstripe/issues/12 in which case the issue is inherited from html syntax highlighting. I have had a look into this but am unsure how to resolve it as the html highlighting runs before ss highlighting and can'r be overridden.
If you check other similar syntax highlighters such as blade or handlebars they have the same issue. If you find a syntax highlighter that resolves this maybe we could use it as a reference.
In that case, it's better to raise this issue to the appropriate repo, which seems to be the main vscode repo itself.
Never mind, I think I found an existing issue, I'll cross-link it.
I'll leave it to you if you want to close this issue or leave it open as an ongoing reminder to check the progress of the upstream issue.
Smallest reproducable example is
data-
attributes are highlighted differently for some reason. Adding{}</style>
anywhere else in the file after the highlighting is broken will fix it.I came accross this editing an email template that has HTML comment markers around the style content
However in this case I think its just treating
-->
as an unfinished selector.The highlighting changes depending on the last bit of code before the closing
</style>
tag. The following three each have different results.-->
Not working-->{
Not working, but different-->{}
OK