Redefine some highlights for Ruby

Some highlight of the Ruby have been redefined entirely or are now
linked to other default highlights.
This commit is contained in:
Ludovic Koenig
2019-03-26 21:57:54 +01:00
parent daca076ad0
commit 9d50a66ec9
+17 -15
View File
@@ -147,9 +147,10 @@ let s:colors.constant = s:colorize(210, 45, 70)
let s:attributes = {} let s:attributes = {}
let s:attributes['reverse'] = { 'cterm': 'reverse', 'gui': 'reverse' } let s:attributes[ 'reverse'] = { 'cterm': 'reverse' , 'gui': 'reverse' }
let s:attributes['bold'] = { 'cterm': 'bold', 'gui': 'bold' } let s:attributes[ 'bold'] = { 'cterm': 'bold' , 'gui': 'bold' }
let s:attributes['underline'] = { 'cterm': 'underline', 'gui': 'underline' } let s:attributes['underline'] = { 'cterm': 'underline', 'gui': 'underline' }
let s:attributes[ 'italic'] = { 'cterm': 'italic' , 'gui': 'italic' }
" }}} " }}}
" Highlight Helpers {{{ " Highlight Helpers {{{
@@ -183,7 +184,7 @@ function! s:l(origin, target)
endfunction endfunction
" }}} " }}}
" User Interface {{{ " Interface Highlights {{{
call s:h( 'SpecialKey', 'background', 'warning', 'none') call s:h( 'SpecialKey', 'background', 'warning', 'none')
call s:h( 'EndOfBuffer', 'background', 'linenumber', 'none') call s:h( 'EndOfBuffer', 'background', 'linenumber', 'none')
@@ -237,33 +238,34 @@ call s:h( 'ToolbarButton', 'background', 'linenumber', 'reverse')
call s:h( 'Normal', 'background', 'foreground', 'none') call s:h( 'Normal', 'background', 'foreground', 'none')
" }}} " }}}
" Default Syntax {{{ " Default Highlights {{{
call s:h( 'Comment', 'background', 'linenumber', 'none') call s:h( 'Comment', 'background', 'linenumber', 'none')
call s:h( 'Constant', 'background', 'constant', 'none') call s:h( 'Constant', 'background', 'constant', 'none')
call s:h( 'Identifier', 'background', 'procedure', 'none') call s:h( 'Identifier', 'background', 'procedure', 'none')
call s:h( 'Statement', 'background', 'keyword', 'none') call s:h( 'Statement', 'background', 'keyword', 'none')
call s:l( 'Operator', 'Identifier') call s:l( 'Operator', 'Identifier')
call s:h( 'Preproc', 'background', 'warning', 'none') call s:h( 'Preproc', 'background', 'warning', 'none')
call s:h( 'Type', 'background', 'type', 'italic')
call s:h( 'Type', 'background', 'type', 'none')
call s:l('StorageClass', 'Statement') call s:l('StorageClass', 'Statement')
call s:l( 'Structure', 'Statement') call s:l( 'Structure', 'Statement')
call s:l( 'Typedef', 'Statement') call s:l( 'Typedef', 'Statement')
call s:h( 'Special', 'background', 'warning', 'none') call s:h( 'Special', 'background', 'warning', 'none')
call s:h( 'Underlined', 'background', 'foreground', 'underline') call s:h( 'Underlined', 'background', 'foreground', 'underline')
call s:h( 'Ignore', 'background', 'background', 'none') call s:h( 'Ignore', 'background', 'background', 'none')
call s:h( 'Error', 'background', 'error', 'bold') call s:h( 'Error', 'background', 'error', 'bold')
call s:h( 'Todo', 'background', 'warning', 'bold') call s:h( 'Todo', 'background', 'warning', 'bold')
" }}}
" Ruby Highlights {{{
call s:l( 'rubyClass', 'Statement')
call s:h( 'rubyClassVariable', 'background', 'warning', 'italic')
call s:l( 'rubyDefine', 'Statement')
call s:l( 'rubyInclude', 'Statement')
call s:h( 'rubyInstanceVariable', 'background', 'warning', 'italic')
call s:h('rubyInterpolationDelimiter', 'background', 'constant', 'italic')
call s:l( 'rubyStringDelimiter', 'Constant')
" }}} " }}}
" vim: foldmethod=marker " vim: foldmethod=marker