Does this issue occur when all extensions are disabled?: Yes
1.85.2
c8a36a69377856369f139f39ee56dd3838130fbf
x64
Putting a regular expression on a new line in JavaScript or TypeScript breaks the highlighter.
Steps to Reproduce:
- paste this:
1
/ f(/u/g)
function f(_: RegExp) {
return 1;
}
- make sure the language mode is set to TypeScript
Expected:
Same highlighting as this:

Actual:

Theme: @id:vscode.theme-defaults: Dark +