vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Syntax highlighting in Typescript not handling identifiers that start with var correctly

Open cliffkoh opened this issue 10 years ago • 2 comments

  • VSCode Version: 0.10.11
  • OS Version: Windows 10 1511

Steps to Reproduce:

In a typescript file, have

let varName = "";
varName = "a";

The issue is that the 'var' substring in varName is highlighted the way the var construct would ordinarily be.

cliffkoh avatar Mar 23 '16 16:03 cliffkoh

Even worse is if you have varName = ...;, the rest of the document after the second backtick is colorized incorrectly...

cliffkoh avatar Mar 23 '16 17:03 cliffkoh

duplicate of https://github.com/Microsoft/TypeScript-TmLanguage/issues/96

aeschli avatar Mar 24 '16 08:03 aeschli