Skip to content

Commit 556691f

Browse files
committed
fix keyword matching
1 parent 97d7f86 commit 556691f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

after/syntax/css.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ if has("gui_running") || &t_Co==256
334334
%call s:PreviewCSSColorInLine()
335335
call winrestview(view)
336336

337+
" fix highlighting of "white" in `white-space` etc
338+
" this really belongs in Vim's own syntax/css.vim ...
339+
setlocal iskeyword+=-
340+
337341
autocmd CursorMoved * silent call s:PreviewCSSColorInLine()
338342
autocmd CursorMovedI * silent call s:PreviewCSSColorInLine()
339343
autocmd FileType sass,stylus syn cluster sassCssAttributes add=@cssColors

0 commit comments

Comments
 (0)