vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Javascript objects not highlighting correctly on master

Open devnulljason opened this issue 10 years ago • 3 comments

It looks like highlighting of JavaScript objects was broken on the current master. For reference, here's what it looks like on the current production build (0.10.3):

0.10.3 JS Objects

And here's how it looks on master:

Master JS Objects

I tried fiddling around with tokens.css a little but reverting the changes there didn't do anything. I think this may be related to the changes made to JavaScript.tmLanguage as a result of #133.

devnulljason avatar Dec 09 '15 06:12 devnulljason

Yes, that's related to the change to use the TypeScript textmate grammar. The new grammar has chosen to not emmit specific tokens for object keys. Moving as an enhancement request to the typescript grammar repo.

aeschli avatar Dec 09 '15 09:12 aeschli

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

aeschli avatar Dec 09 '15 09:12 aeschli

This issue seems to be there in plain javascript as well.

image

The same snippet in Atom

image

rajanand02 avatar Sep 30 '16 05:09 rajanand02