Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ilyat1337 opened this issue May 11, 2023 · 0 comments

Comments

@Ilyat1337
Copy link

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.
@mjbvz mjbvz transferred this issue from microsoft/vscode May 11, 2023
@mjbvz mjbvz removed their assignment May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants