isRuslan/vim-es6

Literals are not highlighted nicely in objects

theneva opened this issue · 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 Thanks, for the suggestion!
I will check all around this issue and point here what can we do for this.

Sweet!