[PackageDev] Add support for var()
See original GitHub issueDescription
The support for PackageDev themes and color schemes is great - it’s what I most often use this plugin for. Would it be possible to add previews for the simple "var(some_color_variable)"
syntax?
For example, in a color scheme, I define a variable and then use it for a global:
{
"variables": {
"blue": "#0042FF"
},
"globals": {
"selection": "var(blue)"
}
}
The color preview shows up next to the #0042FF
as it should, but I would like that same preview to show up next to var(blue)
. I don’t use any of the color()
mod function options, but I imagine those that do would probably like to see previews of those, too (if possible, given they’re implemented within Sublime and not exposed via the API, that I know of). However, even if you can’t do that or it would take a long time, I should think it would be fairly straightforward to highlight var()
. Unless the variables themselves are made using color()
…
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:15 (8 by maintainers)
Top GitHub Comments
Can you elaborate? I’m not sure what your mean.
Oh, I meant in the context of the command palette.