add support for a custom efm_perl program
This commit is contained in:
parent
1fb8366456
commit
fb18ea177b
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user