Add option to not "hide" the colon when 'keyword' highlight is "wide" #199
+11
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I find it helpful to be able to see the colon after any keywords (though the default wide_bg does look nice). Found out that when the highlighter is configured with a wide-background
keyword
and foregroundafter
, the colon will have its background and foreground set to the same color.It's still the default to hide the colon in the above manner. To make it visible, I added a boolean option to config.highlight called
colon_in_wide
. Please change the naming if you have something that's clearer; I thinkcolon_in_wide
is a little clunky.Here's how the options interact (no effect if "keyword" and "after" are both fg or bg):