Merge pull request #34 from gladiac/master

Improve gruvbox with C code
This commit is contained in:
Pavel Pertsev
2015-01-24 23:59:25 +03:00

View File

@@ -45,6 +45,14 @@ if !exists('g:gruvbox_italicize_strings')
let g:gruvbox_italicize_strings=0 let g:gruvbox_italicize_strings=0
endif endif
if !exists('g:gruvbox_improved_strings')
let g:gruvbox_improved_strings=0
endif
if !exists('g:gruvbox_improved_warnings')
let g:gruvbox_improved_warnings=0
endif
if !exists('g:gruvbox_termcolors') if !exists('g:gruvbox_termcolors')
let g:gruvbox_termcolors=256 let g:gruvbox_termcolors=256
endif endif
@@ -440,7 +448,12 @@ call s:HL('lCursor', 'none', 'none', 'inverse')
" }}} " }}}
" Syntax Highlighting: {{{ " Syntax Highlighting: {{{
call s:HL('Special', 'orange') if g:gruvbox_improved_strings == 0
call s:HL('Special', 'orange')
else
call s:HL('Special', 'dark1', 'orange', 'italic')
endif
if g:gruvbox_italicize_comments == 0 if g:gruvbox_italicize_comments == 0
call s:HL('Comment', 'medium', 'none') call s:HL('Comment', 'medium', 'none')
else else
@@ -488,7 +501,11 @@ call s:HL('Character', 'purple')
if g:gruvbox_italicize_strings == 0 if g:gruvbox_italicize_strings == 0
call s:HL('String', 'green') call s:HL('String', 'green')
else else
call s:HL('String', 'green', 'none', 'italic') if g:gruvbox_improved_strings == 0
call s:HL('String', 'green', 'none', 'italic')
else
call s:HL('String', 'dark1', 'light1', 'italic')
endif
endif endif
" Boolean constant: TRUE, false " Boolean constant: TRUE, false
call s:HL('Boolean', 'purple') call s:HL('Boolean', 'purple')
@@ -536,8 +553,12 @@ call s:HL('DiffText', 'dark0', 'yellow')
" Spelling: {{{ " Spelling: {{{
if has("spell") if has("spell")
" Not capitalised word " Not capitalised word, or compile warnings
call s:HL('SpellCap', 'none', 'none', 'undercurl', 'red') if g:gruvbox_improved_warnings == 0
call s:HL('SpellCap', 'none', 'none', 'undercurl', 'red')
else
call s:HL('SpellCap', 'green', 'none', 'italic,bold')
endif
" Not recognized word " Not recognized word
call s:HL('SpellBad', 'none', 'none', 'undercurl', 'blue') call s:HL('SpellBad', 'none', 'none', 'undercurl', 'blue')
" Wrong spelling for selected region " Wrong spelling for selected region