Skip to content

Literals are not highlighted nicely in objects #6

Open
@theneva

Description

@theneva

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions