joshpeng / Sublime-Babel-VSCode

Sublime Text's babel-sublime grammar in VS Code.
MIT License
49 stars 16 forks source link

for..in breaks syntax highlighting #34

Open d07RiV opened 6 years ago

d07RiV commented 6 years ago

Using for-in statement breaks syntax highlighting for the for statement (after and including in keyword) and up until the next semicolon.

for (let type in attachments) {
  const desc = attachments[type];

is displayed as

image

Note how in and const are not highlighted.