updated to user newer form of SyntasticLoadChecker('tcl')

This commit is contained in:
James Pickard 2013-01-15 18:55:59 -05:00
parent f5b9c3641f
commit 36393cd677

View File

@ -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')