Skip to content

Commit

Permalink
fix erroneous highlighting of white-space properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ap committed Mar 9, 2013
1 parent fb435e4 commit 9b164ea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions after/syntax/css.vim
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ if has("gui_running") || &t_Co==256
syn keyword cssColor000000 black contained
syn keyword cssColorc0c0c0 silver contained
syn keyword cssColor808080 gray contained
syn keyword cssColorffffff white contained
syn match cssColorffffff "\<white\(-\)\@!\>" contained
syn keyword cssColor800000 maroon contained
syn keyword cssColorff0000 red contained
syn keyword cssColor800080 purple contained
Expand Down Expand Up @@ -493,10 +493,6 @@ if has("gui_running") || &t_Co==256
%call s:PreviewCSSColorInLine()
call winrestview(view)

" fix highlighting of "white" in `white-space` etc
" this really belongs in Vim's own syntax/css.vim ...
setlocal iskeyword+=-

autocmd CursorMoved <buffer> silent call s:PreviewCSSColorInLine()
autocmd CursorMovedI <buffer> silent call s:PreviewCSSColorInLine()
endif

0 comments on commit 9b164ea

Please sign in to comment.