add support for a custom efm_perl program

This commit is contained in:
Harley Pig 2012-08-01 07:54:46 -06:00
parent 1fb8366456
commit fb18ea177b

View File

@ -27,8 +27,15 @@ if !executable("perl")
finish finish
endif endif
"remove '-w' switch to change all warnings to errors " Any command line parameters needed for this program should be included in
let s:checker = 'perl ' . shellescape(expand('<sfile>:p:h') . '/efm_perl.pl') . ' -c -w' " the variable declaration. This program should expect a single parameter;
" the fully qualified filename of the file to be checked.
if exists("g:syntastic_perl_efm_program")
let s:checker = g:syntastic_perl_efm_program
else
let s:checker = 'perl ' . shellescape(expand('<sfile>:p:h') . '/efm_perl.pl') . ' -c -w'
endif
function! SyntaxCheckers_perl_GetLocList() function! SyntaxCheckers_perl_GetLocList()
if exists("g:perl_lib_path") if exists("g:perl_lib_path")