Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting broken in style tags #102

Open
rinogo opened this issue Jan 31, 2019 · 2 comments
Open

Syntax highlighting broken in style tags #102

rinogo opened this issue Jan 31, 2019 · 2 comments

Comments

@rinogo
Copy link

rinogo commented Jan 31, 2019

Test case:
<style type="text/css"> <?php echo $ok; ?> </style>

Broken highlighting:
image

Related: #54

@akukuq
Copy link

akukuq commented Dec 14, 2019

I stumbled across a related issue:
Using HTML comments (<!--) inside the style tag breaks code highlighting for the remainder of the document.

Test case:
https://sourceware.org/binutils/docs/as/index.html

@OldStarchy
Copy link

I've found this in vscode, the original issue I created is adrhumphreys/vscode-silverstripe#22 but the TL;DR: is

<style>a</style>

everything after a is incorrectly recognized as a CSS selector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants