Permalink
Browse files

allow for custom perl efm program

  • Loading branch information...
1 parent 943d888 commit c9a23c0bdbdd44dc859f47182b0342be4e2802ee @harleypig harleypig committed with scrooloose Nov 5, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 syntax_checkers/perl.vim
View
6 syntax_checkers/perl.vim
@@ -23,8 +23,12 @@ if !executable("perl")
finish
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()
- let makeprg = $VIMRUNTIME.'/tools/efm_perl.pl -c '.shellescape(expand('%'))
+ let makeprg = g:syntastic_perl_efm_program . ' ' . shellescape(expand('%'))
let errorformat = '%f:%l:%m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })

0 comments on commit c9a23c0

Please sign in to comment.