Question: Is it possible to consider variable scope for colours?
Closed this issue · 1 comments
sladiri commented
Thank you for the nice theme. I am not sure, if this is possible, here is an example:
function f (x) {
return function g(y) {
// Ideally, x and y would be coloured according to the function scope, they are declared in :)
return x + y
}
}
pouyakary commented
Dear @sladiri hi! Thanks a lot for asking this and for using our theme ❤️
In some editors such and Emacs and Vim themes are defined using a script that parses and colorizes the theme, in those themes it's possible to have things colored with their scopes (such as parentheses pairs in Lisp languages.). However VSCode uses a format called tmTheme
. Sadly this format only specifies the resulting tokens generated by the editor which lacks any programming tooling. So if you look:
It's not possible to distinguish the branch/scope level in the themes.