Directly accept colors in add_regions
Importance: Major
Description: Change the add_regions
method to accept rgb encoded colors. The function add_regions(key, [regions], <scope>, <icon>, <flags>)
currently only accepts a scope and retrieves the color from the colorscheme. It would be nice, if it was possible to pass rbg encoded colors as an argument. This could either be done by changing the signature to accept an additional keyword argument <color>
or by adding a flag sublime.SCOPE_IS_COLOR
to treat the scope as a color.
Motivation: When creating a highlighted region one often just wants to define the color itself instead of a scope with a similar color.
At the moment some packages (e.g. SublimeLinter and ColorHighlighter) even change the colorscheme of the user to inject their colors. This has some disadvantages for the user and does not scale as a general solution.