move the syntastic_jsl_conf option out of the core plugin

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.
This commit is contained in:
Martin Grenfell 2011-02-15 19:49:13 +13:00
parent 5bc6c2226f
commit 09d0a091f0
2 changed files with 4 additions and 4 deletions

View File

@ -39,10 +39,6 @@ if !exists("g:syntastic_disabled_filetypes")
let g:syntastic_disabled_filetypes = [] let g:syntastic_disabled_filetypes = []
endif endif
if !exists("g:syntastic_jsl_conf")
let g:syntastic_jsl_conf = ""
endif
"load all the syntax checkers "load all the syntax checkers
runtime! syntax_checkers/*.vim runtime! syntax_checkers/*.vim

View File

@ -19,6 +19,10 @@ if !executable("jsl")
finish finish
endif endif
if !exists("g:syntastic_jsl_conf")
let g:syntastic_jsl_conf = ""
endif
function! SyntaxCheckers_javascript_GetLocList() function! SyntaxCheckers_javascript_GetLocList()
if empty(g:syntastic_jsl_conf) if empty(g:syntastic_jsl_conf)
let jslconf = "" let jslconf = ""