Skip to content

Commit

Permalink
Improve Ruby highlighting of symbols and Boolean constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
lifepillar committed Sep 30, 2017
1 parent fe94479 commit 2e4943c
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions colors/solarized8_dark.vim
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=8 guibg=#002b36 cterm=NONE gu
hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=8 guibg=#002b36 cterm=NONE gui=NONE
hi! texRefLabel ctermfg=3 guifg=#b58900 ctermbg=8 guibg=#002b36 cterm=NONE gui=NONE
hi! rubyDefine ctermfg=14 guifg=#93a1a1 ctermbg=8 guibg=#002b36 cterm=NONE,bold gui=NONE,bold
hi! link rubySymbol Type
hi! rubyBoolean ctermfg=5 guifg=#d33682 ctermbg=8 guibg=#002b36
hi! cPreCondit ctermfg=9 guifg=#cb4b16 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! VarId ctermfg=4 guifg=#268bd2 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! ConId ctermfg=3 guifg=#b58900 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
Expand Down
2 changes: 2 additions & 0 deletions colors/solarized8_dark_flat.vim
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=8 guibg=#002b36 cterm=NONE gu
hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=8 guibg=#002b36 cterm=NONE gui=NONE
hi! texRefLabel ctermfg=3 guifg=#b58900 ctermbg=8 guibg=#002b36 cterm=NONE gui=NONE
hi! rubyDefine ctermfg=14 guifg=#93a1a1 ctermbg=8 guibg=#002b36 cterm=NONE,bold gui=NONE,bold
hi! link rubySymbol Type
hi! rubyBoolean ctermfg=5 guifg=#d33682 ctermbg=8 guibg=#002b36
hi! cPreCondit ctermfg=9 guifg=#cb4b16 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! VarId ctermfg=4 guifg=#268bd2 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! ConId ctermfg=3 guifg=#b58900 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
Expand Down
2 changes: 2 additions & 0 deletions colors/solarized8_dark_high.vim
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=8 guibg=#002b36 cterm=NONE gu
hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=8 guibg=#002b36 cterm=NONE gui=NONE
hi! texRefLabel ctermfg=3 guifg=#b58900 ctermbg=8 guibg=#002b36 cterm=NONE gui=NONE
hi! rubyDefine ctermfg=7 guifg=#eee8d5 ctermbg=8 guibg=#002b36 cterm=NONE,bold gui=NONE,bold
hi! link rubySymbol Type
hi! rubyBoolean ctermfg=5 guifg=#d33682 ctermbg=8 guibg=#002b36
hi! cPreCondit ctermfg=9 guifg=#cb4b16 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! VarId ctermfg=4 guifg=#268bd2 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! ConId ctermfg=3 guifg=#b58900 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
Expand Down
2 changes: 2 additions & 0 deletions colors/solarized8_dark_low.vim
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=0 guibg=#073642 cterm=NONE gu
hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=0 guibg=#073642 cterm=NONE gui=NONE
hi! texRefLabel ctermfg=3 guifg=#b58900 ctermbg=0 guibg=#073642 cterm=NONE gui=NONE
hi! rubyDefine ctermfg=14 guifg=#93a1a1 ctermbg=0 guibg=#073642 cterm=NONE,bold gui=NONE,bold
hi! link rubySymbol Type
hi! rubyBoolean ctermfg=5 guifg=#d33682 ctermbg=0 guibg=#073642
hi! cPreCondit ctermfg=9 guifg=#cb4b16 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! VarId ctermfg=4 guifg=#268bd2 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! ConId ctermfg=3 guifg=#b58900 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
Expand Down
2 changes: 2 additions & 0 deletions colors/solarized8_light.vim
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=15 guibg=#fdf6e3 cterm=NONE g
hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=15 guibg=#fdf6e3 cterm=NONE gui=NONE
hi! texRefLabel ctermfg=3 guifg=#b58900 ctermbg=15 guibg=#fdf6e3 cterm=NONE gui=NONE
hi! rubyDefine ctermfg=10 guifg=#586e75 ctermbg=15 guibg=#fdf6e3 cterm=NONE,bold gui=NONE,bold
hi! link rubySymbol Type
hi! rubyBoolean ctermfg=5 guifg=#d33682 ctermbg=15 guibg=#fdf6e3
hi! cPreCondit ctermfg=9 guifg=#cb4b16 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! VarId ctermfg=4 guifg=#268bd2 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! ConId ctermfg=3 guifg=#b58900 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
Expand Down
2 changes: 2 additions & 0 deletions colors/solarized8_light_flat.vim
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=15 guibg=#fdf6e3 cterm=NONE g
hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=15 guibg=#fdf6e3 cterm=NONE gui=NONE
hi! texRefLabel ctermfg=3 guifg=#b58900 ctermbg=15 guibg=#fdf6e3 cterm=NONE gui=NONE
hi! rubyDefine ctermfg=10 guifg=#586e75 ctermbg=15 guibg=#fdf6e3 cterm=NONE,bold gui=NONE,bold
hi! link rubySymbol Type
hi! rubyBoolean ctermfg=5 guifg=#d33682 ctermbg=15 guibg=#fdf6e3
hi! cPreCondit ctermfg=9 guifg=#cb4b16 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! VarId ctermfg=4 guifg=#268bd2 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! ConId ctermfg=3 guifg=#b58900 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
Expand Down
2 changes: 2 additions & 0 deletions colors/solarized8_light_high.vim
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=15 guibg=#fdf6e3 cterm=NONE g
hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=15 guibg=#fdf6e3 cterm=NONE gui=NONE
hi! texRefLabel ctermfg=3 guifg=#b58900 ctermbg=15 guibg=#fdf6e3 cterm=NONE gui=NONE
hi! rubyDefine ctermfg=0 guifg=#073642 ctermbg=15 guibg=#fdf6e3 cterm=NONE,bold gui=NONE,bold
hi! link rubySymbol Type
hi! rubyBoolean ctermfg=5 guifg=#d33682 ctermbg=15 guibg=#fdf6e3
hi! cPreCondit ctermfg=9 guifg=#cb4b16 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! VarId ctermfg=4 guifg=#268bd2 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! ConId ctermfg=3 guifg=#b58900 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
Expand Down
2 changes: 2 additions & 0 deletions colors/solarized8_light_low.vim
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=7 guibg=#eee8d5 cterm=NONE gu
hi! texMathMatcher ctermfg=3 guifg=#b58900 ctermbg=7 guibg=#eee8d5 cterm=NONE gui=NONE
hi! texRefLabel ctermfg=3 guifg=#b58900 ctermbg=7 guibg=#eee8d5 cterm=NONE gui=NONE
hi! rubyDefine ctermfg=10 guifg=#586e75 ctermbg=7 guibg=#eee8d5 cterm=NONE,bold gui=NONE,bold
hi! link rubySymbol Type
hi! rubyBoolean ctermfg=5 guifg=#d33682 ctermbg=7 guibg=#eee8d5
hi! cPreCondit ctermfg=9 guifg=#cb4b16 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! VarId ctermfg=4 guifg=#268bd2 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
hi! ConId ctermfg=3 guifg=#b58900 ctermbg=NONE guibg=NONE cterm=NONE gui=NONE
Expand Down
2 changes: 2 additions & 0 deletions src/solarized8.vim
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,8 @@ for s:solarized_background in ["dark", "light"]
" ruby highlighting "{{{
" ---------------------------------------------------------------------
call s:put("hi! rubyDefine" . s:fg_base1 .s:bg_back .s:fmt_bold)
call s:put("hi! link rubySymbol Type")
call s:put("hi! rubyBoolean " . s:fg_magenta.s:bg_back)
"rubyInclude
"rubySharpBang
"rubyAccess
Expand Down

0 comments on commit 2e4943c

Please sign in to comment.