In addition to this, it would be great if add_regions()
properly supported making text bold or italic as specified by the “fontStyle” setting in color schemes.
An alternative to this might be just to provide some way to programmatically change the scope of any region of text. Given the fact that add_regions()
doesn’t actually change scope and its weird behavior when either the background or both foreground and background of a scoped setting in a color scheme match those of the global setting or are absent, this could definitely prove a useful addition, as text colored by the scopes specified by syntax files don’t suffer from these problems.
Also, it seems others have expressed interest in such a feature.