microsoft / TypeScript-Sublime-Plugin

IO wrapper around TypeScript language services, allowing for easy consumption by editor plugins
Apache License 2.0
1.72k stars 235 forks source link

Syntax highlighting error, when comments before 'if' line #672

Closed wlchn closed 5 years ago

wlchn commented 6 years ago

Syntax highlighting error, when comments before 'if' line and previous line without semicolon. eg. no comments no error: image with semicolon no error: image without semicolon cause highlighting error in "if" line: image

DanielRosenwasser commented 5 years ago

Here's the repro:

let a = "a" //blah
if (a) {
    console.log(a);
}
DanielRosenwasser commented 5 years ago

This issue was moved to Microsoft/TypeScript-TmLanguage#669