CSS @media in HTML file breaks syntax highlighting
aeschli opened this issue · 4 comments
aeschli commented
From @ggregoire on March 10, 2017 17:4
- VSCode Version: last one
- OS Version: macOS
Hi,
@media
into <style></style>
breaks the syntax highlighting.
Copied from original issue: microsoft/vscode#22404
aeschli commented
Reproduce with
<html>
<style>
h1 {
color: red;
}@media only screen {
}
</style>
</html>
Problem is the lack of a whitespace before @media
Alhadis commented
Crap, sorry. For some reason, }@atrule
never occurred to me when writing these rules. :(
Will submit a PR to fix this in a minute.