Skip to content

Commit 27903ef

Browse files
committed
check &syntax instead of &filetype
1 parent 499a376 commit 27903ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

after/syntax/javascript.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
" so until it has specific support there's no point in loading anyway
77
" and for some reason the W3C syntax color keywords break its highlighting
88
" (this refers to the https://github.com/kchmck/vim-coffee-script plugin)
9-
if -1 < index( split( &filetype, '[.]' ), 'coffee' ) | finish | endif
9+
if &syntax =~# '\(^\|\.\)coffee\($\|\.\)' | finish | endif
1010

1111
" javaScriptX = default Vim syntax, jsX = https://github.com/pangloss/vim-javascript
1212
call css_color#init('hex', 'extended'

0 commit comments

Comments
 (0)