vim-es6 icon indicating copy to clipboard operation
vim-es6 copied to clipboard

Literals are not highlighted nicely in objects

Open theneva opened this issue 10 years ago • 2 comments

First of all, thank you for this plugin!

I have a suggestion for highlighting in objects. As it stands, everything is purple except non-string keys:

image

The problem becomes especially apparent when the object keys are also strings, as they become the same colour as everything else.

It would be great if the highlighting somehow differentiated between keys, literals (true, false, 10, 4.2), and strings. For example, the default highlighting "solves" this problem by simply ignoring numbers:

image

An even better solution would be greatly appreciated, though.

theneva avatar Oct 26 '15 09:10 theneva

@theneva Thanks, for the suggestion! I will check all around this issue and point here what can we do for this.

isRuslan avatar Oct 26 '15 11:10 isRuslan

Sweet!

theneva avatar Oct 26 '15 13:10 theneva