2 " Compiler: Perl syntax checks (perl -Wc)
3 " Maintainer: Christian J. Robinson <infynity@onewest.net>
4 " Last Change: 2006 Aug 13
6 if exists("current_compiler")
9 let current_compiler = "perl"
11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
12 command -nargs=* CompilerSet setlocal <args>
18 if exists('g:perl_compiler_force_warnings') && g:perl_compiler_force_warnings == 0
24 if getline(1) =~# '-[^ ]*T'
30 exe 'CompilerSet makeprg=perl\ -' . s:warnopt . s:taintopt . 'c\ %'
32 CompilerSet errorformat=
33 \%-G%.%#had\ compilation\ errors.,
35 \%m\ at\ %f\ line\ %l.,
36 \%+A%.%#\ at\ %f\ line\ %l\\,%.%#,
40 " %-G%.%#had\ compilation\ errors., - Ignore the obvious.
41 " %-G%.%#syntax\ OK, - Don't include the 'a-okay' message.
42 " %m\ at\ %f\ line\ %l., - Most errors...
43 " %+A%.%#\ at\ %f\ line\ %l\\,%.%#, - As above, including ', near ...'
44 " %+C%.%# - ... Which can be multi-line.