Skip to content

Commit

Permalink
move the syntastic_jsl_conf option out of the core plugin
Browse files Browse the repository at this point in the history
Move this variable out of syntastic.vim since we dont the core plugin
shouldn't know any details of how the individual syntax checkers work.
  • Loading branch information
scrooloose committed Feb 15, 2011
1 parent 5bc6c22 commit 09d0a09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugin/syntastic.vim
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ if !exists("g:syntastic_disabled_filetypes")
let g:syntastic_disabled_filetypes = []
endif

if !exists("g:syntastic_jsl_conf")
let g:syntastic_jsl_conf = ""
endif

"load all the syntax checkers
runtime! syntax_checkers/*.vim

Expand Down
4 changes: 4 additions & 0 deletions syntax_checkers/javascript.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ if !executable("jsl")
finish
endif

if !exists("g:syntastic_jsl_conf")
let g:syntastic_jsl_conf = ""
endif

function! SyntaxCheckers_javascript_GetLocList()
if empty(g:syntastic_jsl_conf)
let jslconf = ""
Expand Down

0 comments on commit 09d0a09

Please sign in to comment.