2 " Compiler: Perl syntax checks (perl -Wc)
3 " Maintainer: Christian J. Robinson <infynity@onewest.net>
4 " Last Change: 2004 Mar 27
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 getline(1) =~# '-[^ ]*T'
19 CompilerSet makeprg=perl\ -WTc\ %
21 CompilerSet makeprg=perl\ -Wc\ %
24 CompilerSet errorformat=
25 \%-G%.%#had\ compilation\ errors.,
27 \%m\ at\ %f\ line\ %l.,
28 \%+A%.%#\ at\ %f\ line\ %l\\,%.%#,
32 " %-G%.%#had\ compilation\ errors., - Ignore the obvious.
33 " %-G%.%#syntax\ OK, - Don't include the 'a-okay' message.
34 " %m\ at\ %f\ line\ %l., - Most errors...
35 " %+A%.%#\ at\ %f\ line\ %l\\,%.%#, - As above, including ', near ...'
36 " %+C%.%# - ... Which can be multi-line.