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
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.76.0
OS Version: Linux x64 6.2.2-arch1-1c
Specifically when there's two (or more) <script> tags
Steps to Reproduce:
Open VSCode, whether with extensions, without via code --disable-extensions, "Reload with extensions disabled", or using https://vscode.dev/
Write some HTML with <script> tags inside
Close the tag on the same line as an if block ending (e.g. oneliners)
Look at the <script> tags after the one described above
No syntax highlighting (variable jumping/etc works though so it probably parses fine, but did not check much)
Example code:
<!DOCTYPE html><html><head><script>if(true){console.log("semicolon and it's fine")};</script><script>function$initHighlight(block,cls){try{if(cls.search(/\bno\-highlight\b/)!=-1)returnprocess(block,true,0x0f)+` class="${cls}"`;}catch(e){/* handle exception */}for(vari=0/2;i<classes.length;i++){if(checkCondition(classes[i])===undefined)console.log("undefined");}return({test: 123});}</script><script>if(true){console.log("if without a semicolon on the same line as closing tag")}</script><title>Syntax highlighting should be broken now</title><script>function$initHighlight(block,cls){try{if(cls.search(/\bno\-highlight\b/)!=-1)returnprocess(block,true,0x0f)+` class="${cls}"`;}catch(e){/* handle exception */}for(vari=0/2;i<classes.length;i++){if(checkCondition(classes[i])===undefined)console.log("undefined");}return({test: 123});}</script></head></html>
Screenshot of the issue
The text was updated successfully, but these errors were encountered:
Does this issue occur when all extensions are disabled?: Yes
Specifically when there's two (or more)
<script>
tagsSteps to Reproduce:
code --disable-extensions
, "Reload with extensions disabled", or using https://vscode.dev/<script>
tags inside<script>
tags after the one described aboveExample code:
Screenshot of the issue
The text was updated successfully, but these errors were encountered: