1
0
Fork 0
mirror of synced 2024-07-02 05:21:09 -04:00
ultimate-vim/sources_non_forked/vim-css-color/after/syntax/javascript.vim
2017-11-27 13:43:13 +08:00

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'
\)