Currently when I edit a JSON file, it looks like this. Almost everything is in yellow (which is my default color for strings):
I would love to have a different color for JSON keys (here in pink but it doesn’t matter):
This way, I reckon it is way easier to spot string as values vs keys!
Here are the regions highlighters currently defined in json.kak:
add-highlighter shared/json regions add-highlighter shared/json/code default-region group add-highlighter shared/json/string region '"' (?<!\\)(\\\\)*" fill string add-highlighter shared/json/code/ regex \b(true|false|null|\d+(?:\.\d+)?(?:[eE][+-]?\d*)?)\b 0:value
I must admit that I’m very lame at writing regions delimiter and I failed to achieve what I depicted on the 2nd screenshot.
Does someone have the magic incantation for this?