allow for custom perl efm program

This commit is contained in:
Harley Pig 2010-11-05 11:27:19 +08:00 committed by Martin Grenfell
parent 943d88877c
commit c9a23c0bdb

View File

@ -23,8 +23,12 @@ if !executable("perl")
finish finish
endif endif
if !exists("g:syntastic_perl_efm_program")
let g:syntastic_perl_efm_program = $VIMRUNTIME.'/tools/efm_perl.pl -c'
endif
function! SyntaxCheckers_perl_GetLocList() function! SyntaxCheckers_perl_GetLocList()
let makeprg = $VIMRUNTIME.'/tools/efm_perl.pl -c '.shellescape(expand('%')) let makeprg = g:syntastic_perl_efm_program . ' ' . shellescape(expand('%'))
let errorformat = '%f:%l:%m' let errorformat = '%f:%l:%m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })