16 lines
815 B
VimL
16 lines
815 B
VimL
|
" Language: Colorful CSS Color Preview
|
||
|
" Author: Aristotle Pagaltzis <pagaltzis@gmx.de>
|
||
|
" Author: Greg Werbin <ourobourbon@gmail.com>
|
||
|
|
||
|
" ft=coffee includes javascript, but mostly sets up own syntax groups
|
||
|
" so until it has specific support there's no point in loading anyway
|
||
|
" and for some reason the W3C syntax color keywords break its highlighting
|
||
|
" (this refers to the https://github.com/kchmck/vim-coffee-script plugin)
|
||
|
if -1 < index( split( &filetype, '[.]' ), 'coffee' ) | finish | endif
|
||
|
|
||
|
" javaScriptX = default Vim syntax, jsX = https://github.com/pangloss/vim-javascript
|
||
|
call css_color#init('hex', 'extended'
|
||
|
\, 'javaScriptComment,javaScriptLineComment,javaScriptStringS,javaScriptStringD'
|
||
|
\. 'jsComment,jsString,jsTemplateString,jsObjectKeyString,jsObjectStringKey,jsClassStringKey'
|
||
|
\)
|