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
{{ message }}
Repository navigation
TextMate tokenizer enters incorrect scope after typeof a < "u" in JavaScript, affecting subsequent function declarations #1076
Fresh install of VS Code with all default settings. No extensions installed, no custom configuration applied. Also reproduced on VS Code for the Web (vscode.dev) with no extensions or custom configuration.
this should be fixable
otherwise it can be mitigated by adding a bunch of safeguards to type to stop it from going past brackets ) and semicolons ; etc
tho why are you trying to do this? typeof a < "u"
is there a real world example that's bothering you?
tho why are you trying to do #this? typeof a < "u"
is there a real world example that's bothering you?
RedCMD (@RedCMD)
I don't normally write code in this style myself. However, I sometimes inspect bundled code, and after running it through a formatter/beautifier, I discovered this issue.
Activity
mohityadav8 commentedon Jun 14, 2026
/assign
can i work on this
RedCMD commentedon Jun 14, 2026
should report to the upstream grammar repo https://github.com/microsoft/TypeScript-TmLanguage
this should be fixable
otherwise it can be mitigated by adding a bunch of safeguards to
typeto stop it from going past brackets)and semicolons;etctho why are you trying to do this?
typeof a < "u"is there a real world example that's bothering you?
mohityadav8 commentedon Jul 16, 2026
/working
soeyu commentedon Jul 27, 2026
RedCMD (@RedCMD)
I don't normally write code in this style myself. However, I sometimes inspect bundled code, and after running it through a formatter/beautifier, I discovered this issue.
RedCMD commentedon Jul 27, 2026
makes sense
is that example directly from a bundle (beautified)?
or did you hand write it?
soeyu commentedon Jul 28, 2026
you can find the <`u` pattern directly in this bundled file:
https://chatgpt.com/cdn/assets/2340486e-gh6s19h8ofjisiyk.js
I discovered this issue when beautifying the code in VS Code with Prettier or Oxcfmt.