Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow for custom perl efm program

  • Loading branch information...
commit c9a23c0bdbdd44dc859f47182b0342be4e2802ee 1 parent 943d888
Alan Young harleypig authored scrooloose committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 syntax_checkers/perl.vim
6 syntax_checkers/perl.vim
View
@@ -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 })
Please sign in to comment.
Something went wrong with that request. Please try again.