Skip to content

Commit f2cc21a

Browse files
committed
Fix coffee script compatible
1 parent b2a64cb commit f2cc21a

4 files changed

Lines changed: 16 additions & 8 deletions

File tree

after/syntax/coffee.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
" Vim plugin file
22
" Language:
33
" Maintainer: othree <othree@gmail.com>
4-
" Last Change: 2013/02/24
4+
" Last Change: 2013/04/22
55
" Version: 0.4
66
" URL: https://github.com/othree/javascript-libraries-syntax.vim
77

8-
call jslibsyntax#load()
8+
if &filetype == 'coffee'
9+
call jslibsyntax#load()
10+
endif

after/syntax/javascript.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
" Vim plugin file
22
" Language:
33
" Maintainer: othree <othree@gmail.com>
4-
" Last Change: 2013/02/24
4+
" Last Change: 2013/04/22
55
" Version: 0.4
66
" URL: https://github.com/othree/javascript-libraries-syntax.vim
77

8-
call jslibsyntax#load()
8+
if &filetype == 'javascript'
9+
call jslibsyntax#load()
10+
endif

after/syntax/ls.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
" Vim plugin file
22
" Language:
33
" Maintainer: othree <othree@gmail.com>
4-
" Last Change: 2013/02/24
4+
" Last Change: 2013/04/22
55
" Version: 0.4
66
" URL: https://github.com/othree/javascript-libraries-syntax.vim
77

8-
call jslibsyntax#load()
8+
if &filetype == 'ls'
9+
call jslibsyntax#load()
10+
endif

after/syntax/typescript.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
" Vim plugin file
22
" Language:
33
" Maintainer: othree <othree@gmail.com>
4-
" Last Change: 2013/02/24
4+
" Last Change: 2013/04/22
55
" Version: 0.4
66
" URL: https://github.com/othree/javascript-libraries-syntax.vim
77

8-
call jslibsyntax#load()
8+
if &filetype == 'typescript'
9+
call jslibsyntax#load()
10+
endif

0 commit comments

Comments
 (0)