Open moritztim opened 4 months ago
This happens with a bunch of characters, such as [({})]
Maybe related to microsoft/vscode#204824
how is that not a typescript error? having rogue slashes and/or brackets
@RedCMD
It's 1 divided by f(/u/g)
, the slashes in the function call being regex notation
Maybe related to microsoft/vscode#204824
@mirusky From what I understand, the linked issue was a duplicate of microsoft/vscode#203998, which has been traced back to the go formatter used, not vscode,
It's 1 divided by
f(/u/g)
my bad
looking at the TextMate code looks like a simple fix I'll make a PR soon
change ([dgimsuy]+|(?![\\/\\*])|(?=\\/\\*))
to (?!\\*)[dgimsuy]*((?!\\/)|(?=\\/\\*))
Does this issue occur when all extensions are disabled?: Yes
n/a
Putting a regular expression on a new line in JavaScript or TypeScript breaks the highlighter. Steps to Reproduce:
Actual:![Highlighting is wrong after the first line.](https://github.com/microsoft/vscode/assets/90388353/f5e8013f-2a97-4812-bb1d-0a37ac9c1505)
Theme:
@id:vscode.theme-defaults
: Dark +