ref(colors): extract help groups

There were help syntax highlights scattered around. THis moves them to
one, dedicated spot.

Additionally, there were some incorrect settings for markdown help
blocks, and they were corrected.
This commit is contained in:
Iron-E 2020-12-17 14:18:02 -05:00
parent aabed249a1
commit d1b8699983
No known key found for this signature in database
GPG Key ID: 19B71B7B7B021D22
1 changed files with 14 additions and 12 deletions

View File

@ -295,8 +295,6 @@ local highlight_groups = {
Ignore = {fg=gray}, Ignore = {fg=gray},
Error = {fg=white, bg=red_dark, style='bold'}, Error = {fg=white, bg=red_dark, style='bold'},
Todo = {fg=yellow, style={'bold', 'underline'}}, Todo = {fg=yellow, style={'bold', 'underline'}},
helpHyperTextJump = 'Underlined',
helpSpecial = 'Function',
Hint = {fg=black, bg=magenta, style='bold'}, Hint = {fg=black, bg=magenta, style='bold'},
Info = function(self) return {fg=self.Hint.fg, bg=pink_light, style=self.Hint.style} end, Info = function(self) return {fg=self.Hint.fg, bg=pink_light, style=self.Hint.style} end,
Warning = function(self) return {fg=self.Hint.fg, bg=orange, style=self.Hint.style} end, Warning = function(self) return {fg=self.Hint.fg, bg=orange, style=self.Hint.style} end,
@ -550,9 +548,9 @@ local highlight_groups = {
mkdCodeEnd = 'mkdCodeStart', mkdCodeEnd = 'mkdCodeStart',
mkdHeading = 'Delimiter', mkdHeading = 'Delimiter',
mkdItalic = 'mkdBold', mkdItalic = 'mkdBold',
mkdLineBreak = NONE, mkdLineBreak = 'NonText',
mkdListItem = 'Special', mkdListItem = 'Special',
mkdRule = 'Underlined', mkdRule = function(self) return {fg=self.Ignore.fg, style={'underline', color=self.Delimiter.fg}} end,
--[[ 4.3.20. Python ]] --[[ 4.3.20. Python ]]
pythonBrackets = 'Delimiter', pythonBrackets = 'Delimiter',
@ -618,10 +616,6 @@ local highlight_groups = {
tomlTable = 'Structure', tomlTable = 'Structure',
--[[ 4.3.27. VimScript ]] --[[ 4.3.27. VimScript ]]
helpSpecial = 'Special',
helpHeader = 'Label',
helpHeadline = 'Title',
helpSectionDelim = 'Delimiter',
vimCmdSep = 'Delimiter', vimCmdSep = 'Delimiter',
vimFunction = 'Function', vimFunction = 'Function',
vimFgBgAttrib = 'Constant', vimFgBgAttrib = 'Constant',
@ -712,6 +706,14 @@ local highlight_groups = {
coqVernacCmd = 'Statement', coqVernacCmd = 'Statement',
coqVernacPunctuation = 'coqTermPunctuation', coqVernacPunctuation = 'coqTermPunctuation',
--[[ 4.3.37 Help ]]
helpSpecial = 'Special',
helpHeader = 'Label',
helpHeadline = 'Title',
helpSectionDelim = 'Delimiter',
helpHyperTextJump = 'Underlined',
helpSpecial = 'Function',
--[[ 4.4. Plugins --[[ 4.4. Plugins
Everything in this section is OPTIONAL. Feel free to remove everything Everything in this section is OPTIONAL. Feel free to remove everything
here if you don't want to define it, or add more if there's something here if you don't want to define it, or add more if there's something