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

HTML syntax highlighting broken by inline script tag #90942

Closed
mathiasvr opened this issue Feb 19, 2020 · 2 comments
Closed

HTML syntax highlighting broken by inline script tag #90942

mathiasvr opened this issue Feb 19, 2020 · 2 comments
Assignees

Comments

@mathiasvr
Copy link
Contributor

The HTML syntax highlighting can be broken by inserting an inline script tag with if condition.

  • VSCode Version: 1.42.1
  • OS Version: macOS 10.14.6

Steps to Reproduce:

  1. Insert <script>if (1) {}</script> or <script>if (1) func()</script> into an HTML file.
  2. Syntax highlighting is broken.

This can generally be worked around by adding a closing semi-colon.
The first example can also be worked around by removing a space: <script>if (1){}</script>.

Does this issue occur when all extensions are disabled?: Yes/No
Yes

@mathiasvr mathiasvr changed the title HTML syntax highlighter HTML syntax highlighting broken by inline script tag Feb 19, 2020
@KamasamaK
Copy link

Related to #20488

@aeschli
Copy link
Contributor

aeschli commented Feb 19, 2020

dup of #70614

@aeschli aeschli closed this as completed Feb 19, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants