updated to user newer form of SyntasticLoadChecker('tcl')
This commit is contained in:
parent
f5b9c3641f
commit
36393cd677
@ -14,28 +14,4 @@
|
||||
" If g:syntastic_tcl_checker is not set, just use the first syntax
|
||||
" checker that we find installed.
|
||||
"============================================================================
|
||||
if exists("loaded_tcl_syntax_checker")
|
||||
finish
|
||||
endif
|
||||
let loaded_tcl_syntax_checker = 1
|
||||
|
||||
let s:supported_checkers = ["tclsh", "nagelfar"]
|
||||
|
||||
function! s:load_checker(checker)
|
||||
exec "runtime syntax_checkers/tcl/" . a:checker . ".vim"
|
||||
endfunction
|
||||
|
||||
if exists("g:syntastic_tcl_checker")
|
||||
if index(s:supported_checkers, g:syntastic_tcl_checker) != -1 && executable(g:syntastic_tcl_checker)
|
||||
call s:load_checker(g:syntastic_tcl_checker)
|
||||
else
|
||||
echoerr "tcl syntax not supported or not installed."
|
||||
endif
|
||||
else
|
||||
for checker in s:supported_checkers
|
||||
if executable(checker)
|
||||
call s:load_checker(checker)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
call SyntasticLoadChecker('tcl')
|
||||
|
Loading…
Reference in New Issue
Block a user