Modify the structure of the comments

The highlighting of the synta groups has been split in two. There are
now:

- the 'User Interface',

- and the 'Syntax'.
This commit is contained in:
Ludovic Koenig
2019-03-12 23:11:28 +01:00
parent b39cbb7072
commit ae834705c2
+9 -8
View File
@@ -15,7 +15,8 @@
" Maintainer: Ludovic Koenig <ludovic.koenig@gmail.com> " Maintainer: Ludovic Koenig <ludovic.koenig@gmail.com>
" License: MIT " License: MIT
" Release: 0.2.0 " Release: 0.2.0
" Initialisation {{{ "
" Prelude {{{
if !has('gui_running') if !has('gui_running')
if !(has('termguicolors') && &termguicolors) && &t_Co != 256 if !(has('termguicolors') && &termguicolors) && &t_Co != 256
@@ -36,7 +37,7 @@ endif
let g:colors_name = 'odyssey' let g:colors_name = 'odyssey'
" }}} " }}}
" Color Utilities {{{ " Color Helpers {{{
function! s:hsv2rgb(hue, saturation, value) function! s:hsv2rgb(hue, saturation, value)
let l:s = a:saturation / 100.0 let l:s = a:saturation / 100.0
@@ -151,7 +152,7 @@ let s:attributes['bold'] = { 'cterm': 'bold', 'gui': 'bold' }
let s:attributes['underline'] = { 'cterm': 'underline', 'gui': 'underline' } let s:attributes['underline'] = { 'cterm': 'underline', 'gui': 'underline' }
" }}} " }}}
" Highlight Utilities {{{ " Highlight Helpers {{{
function! s:HL(group, bg, fg, attr) function! s:HL(group, bg, fg, attr)
let l:hi = 'highlight ' . a:group . ' ' let l:hi = 'highlight ' . a:group . ' '
@@ -177,11 +178,7 @@ function! s:HL(group, bg, fg, attr)
endfunction endfunction
" }}} " }}}
" Default Highlights {{{ " User Interface {{{
"
" This section links the different default highlight groups with their
" associated colors. They appear in the same order than when the highlight
" command is used.
call s:HL( 'SpecialKey', 'background', 'warning', 'none') call s:HL( 'SpecialKey', 'background', 'warning', 'none')
call s:HL( 'EndOfBuffer', 'background', 'linenumber', 'none') call s:HL( 'EndOfBuffer', 'background', 'linenumber', 'none')
@@ -232,6 +229,10 @@ call s:HL( 'lCursor', 'background', 'foreground', 'reverse')
call s:HL( 'MatchParen', 'background', 'warning', 'underline') call s:HL( 'MatchParen', 'background', 'warning', 'underline')
call s:HL( 'ToolbarLine', 'linenumber', 'linenumber', 'none') call s:HL( 'ToolbarLine', 'linenumber', 'linenumber', 'none')
call s:HL( 'ToolbarButton', 'background', 'linenumber', 'reverse') call s:HL( 'ToolbarButton', 'background', 'linenumber', 'reverse')
" }}}
" Syntax {{{
call s:HL( 'Comment', 'background', 'linenumber', 'none') call s:HL( 'Comment', 'background', 'linenumber', 'none')
call s:HL( 'Constant', 'background', 'constant', 'none') call s:HL( 'Constant', 'background', 'constant', 'none')
call s:HL( 'Special', 'background', 'warning', 'none') call s:HL( 'Special', 'background', 'warning', 'none')