microsoft/TypeScript-TmLanguage

Incorrect TypeScript syntax highlighting with variable type starting on a new line

Ilyat1337 opened this issue · 0 comments

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

  • VS Code Version: 1.78.1
  • OS Version: Windows_NT x64 10.0.22621 (Windows 11)

Steps to Reproduce:
(This issue can also be reproduced in VSCode Web)

  1. Create new text file
  2. Select TypeScript language
  3. Paste the following code:
let a:
  number
for (;;);
  1. Syntax highlighting starting with 'for' is broken. It does not occur if type specifier is on the same line as variable declaration.