Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbitrary Color Patterns #837

Open
bmos opened this issue Aug 16, 2022 · 0 comments
Open

Arbitrary Color Patterns #837

bmos opened this issue Aug 16, 2022 · 0 comments

Comments

@bmos
Copy link

bmos commented Aug 16, 2022

I'd love a way to define custom color matching patterns so this would work with more color formats.

I use this in VSCodium to work with lua code from FantasyGrounds (a virtual tabletop for playing RPGs) where colors are represented in two rather strange ways:

A string with 6 characters such as
ColorManager.COLOR_FULL = "DDDDDD"; -- Replaceable Color: Usage Full

A table of r g b values such as
ColorManager.COLOR_GRADIENT_TOP = { r = 0, g = 0, b = 0 }; -- Replaceable Channels: Gradient Top

For example:
https://github.com/SirMotte/FGU-Theme-Hearth/blob/Hearth-Edition-Main/scripts/manager_color_2.lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant