File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
" so until it has specific support there's no point in loading anyway
7
7
" and for some reason the W3C syntax color keywords break its highlighting
8
8
" (this refers to the https://github.com/kchmck/vim-coffee-script plugin)
9
- if &filetype == ' coffee' | finish | endif
9
+ if -1 < index ( split ( &filetype , ' [.] ' ), ' coffee' ) | finish | endif
10
10
11
11
" javaScriptX = default Vim syntax, jsX = https://github.com/pangloss/vim-javascript
12
12
call css_color#init (' hex' , ' extended'
Original file line number Diff line number Diff line change @@ -255,14 +255,14 @@ function! css_color#reinit()
255
255
endfunction
256
256
257
257
function ! css_color#enable ()
258
- exe ' syn cluster colorableGroup add=' . join ( b: css_color_grp , ' ,' )
258
+ if len ( b: css_color_grp ) | exe ' syn cluster colorableGroup add=' . join ( b: css_color_grp , ' ,' ) | endif
259
259
autocmd CSSColor CursorMoved,CursorMovedI <buffer> call s: parse_screen ()
260
260
let b: css_color_off = 0
261
261
call s: parse_screen ()
262
262
endfunction
263
263
264
264
function ! css_color#disable ()
265
- exe ' syn cluster colorableGroup remove=' . join ( b: css_color_grp , ' ,' )
265
+ if len ( b: css_color_grp ) | exe ' syn cluster colorableGroup remove=' . join ( b: css_color_grp , ' ,' ) | endif
266
266
autocmd ! CSSColor CursorMoved ,CursorMovedI <buffer>
267
267
let b: css_color_off = 1
268
268
endfunction
You can’t perform that action at this time.
0 commit comments