diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-06-24 22:09:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-06-24 22:09:24 +0000 |
commit | c1a11ed54c7974b74be38f2aef6a200d7cfc878e (patch) | |
tree | cbd3d302d09444426d21d905b56dbfafb6cf2497 /runtime/compiler | |
parent | 446cb837a017fc1c1b144cb5c2a35cb90abfbbcf (diff) | |
download | vim-git-c1a11ed54c7974b74be38f2aef6a200d7cfc878e.tar.gz |
updated for version 7.2a
Diffstat (limited to 'runtime/compiler')
-rw-r--r-- | runtime/compiler/perl.vim | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/runtime/compiler/perl.vim b/runtime/compiler/perl.vim index 1d30472bb..2b7c94a89 100644 --- a/runtime/compiler/perl.vim +++ b/runtime/compiler/perl.vim @@ -1,7 +1,7 @@ " Vim Compiler File " Compiler: Perl syntax checks (perl -Wc) " Maintainer: Christian J. Robinson <infynity@onewest.net> -" Last Change: 2004 Mar 27 +" Last Change: 2006 Aug 13 if exists("current_compiler") finish @@ -15,12 +15,20 @@ endif let s:savecpo = &cpo set cpo&vim +if exists('g:perl_compiler_force_warnings') && g:perl_compiler_force_warnings == 0 + let s:warnopt = 'w' +else + let s:warnopt = 'W' +endif + if getline(1) =~# '-[^ ]*T' - CompilerSet makeprg=perl\ -WTc\ % + let s:taintopt = 'T' else - CompilerSet makeprg=perl\ -Wc\ % + let s:taintopt = '' endif +exe 'CompilerSet makeprg=perl\ -' . s:warnopt . s:taintopt . 'c\ %' + CompilerSet errorformat= \%-G%.%#had\ compilation\ errors., \%-G%.%#syntax\ OK, |