json syntax highlighting changes color depending on the scope depth
K4LCIFER opened this issue · 1 comments
K4LCIFER commented
K4LCIFER commented
From what I can see, it has to do with lines 646-680 in the theme files. For example, in gruvbox-dark-medium.json
, (lines 646-680) we have
{
"name": "JSON Level 0",
"scope": [
"source.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {
"foreground": "#b8bb26"
}
},
{
"name": "JSON Level 1",
"scope": [
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {
"foreground": "#8ec07c"
}
},
{
"name": "JSON Level 2",
"scope": [
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {
"foreground": "#d3869b"
}
},
{
"name": "JSON Level 3",
"scope": [
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {
"foreground": "#b8bb26"
}
This is the source of the weirdness. I'm not entirely sure why this is all hardcoded in this way. I suspect that removing these lines might solve the problem.