Assign color to `variable` scope in Mariana
Problem description
Mariana doesn't specify a dedicated rule to highlight variable scope. Instead it relies on them not being highlighted by forground text color.
If a variable however is stacked with another scope, like string.unquoted variable, it is highlighted as ordinary string.
This results in issues like: https://github.com/sublimehq/Packages/issues/4321
Even though it would be desirable to remove string scope in such cases, it is sometimes hard, expensive or even impossible to achieve (reliably).
Preferred solution
Add a highlihghting rule for variable scope to Mariana.
{
"scope": "variable",
"foreground": "var(white3)",
},
Alternatives
Let variables be highlighted by whatever rule applies, depending on stacked scopes.
Additional Information
No response
I thought that this already existed, and then I realized that I have exactly the rule above in my overrides.
Maybe also worth considdering python objects.
{
"scope": "meta.generic-name, variable",
"foreground": "var(white3)",
},