bathos / Ecmascript-Sublime

ECMAScript/JavaScript syntax (ES2015-ES2018, JSX, template highlighting, etc) with absurdly specific scopes
88 stars 8 forks source link

Need 2 semicolons to recover `static` keyword #49

Closed dangh closed 6 years ago

dangh commented 6 years ago

As you can see in the screenshot. It used to work before this commit

The first semicolon has scope punctuation.terminator.property.es. The second semicolon has scope punctuation.terminator.statement.es.

screen shot 2018-04-09 at 3 41 05 am
bathos commented 6 years ago

Thanks, esp for including the scope info — there were a few problems with that overhaul, and I thought I’d fixed them all since then, but I forgot to check ASI recovery cases (this affected non-static as well). Part of it was a straight up typo (two scopes intended as distinct were accidentally merged in a "set" stack).

Should be good in 1.6.2.