annotate runtime/compiler/perl.vim @ 924:ba9375e24d49 v7.0.050

updated for version 7.0-050
author vimboss
date Tue, 08 Aug 2006 19:34:19 +0000
parents 3fc0f57ecb91
children 149d8b46404c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim Compiler File
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Compiler: Perl syntax checks (perl -Wc)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Christian J. Robinson <infynity@onewest.net>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2004 Mar 27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 if exists("current_compiler")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 let current_compiler = "perl"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 command -nargs=* CompilerSet setlocal <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 let s:savecpo = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 set cpo&vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 if getline(1) =~# '-[^ ]*T'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 CompilerSet makeprg=perl\ -WTc\ %
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 CompilerSet makeprg=perl\ -Wc\ %
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 CompilerSet errorformat=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 \%-G%.%#had\ compilation\ errors.,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 \%-G%.%#syntax\ OK,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 \%m\ at\ %f\ line\ %l.,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 \%+A%.%#\ at\ %f\ line\ %l\\,%.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 \%+C%.%#
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Explanation:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " %-G%.%#had\ compilation\ errors., - Ignore the obvious.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " %-G%.%#syntax\ OK, - Don't include the 'a-okay' message.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " %m\ at\ %f\ line\ %l., - Most errors...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " %+A%.%#\ at\ %f\ line\ %l\\,%.%#, - As above, including ', near ...'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " %+C%.%# - ... Which can be multi-line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 let &cpo = s:savecpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 unlet s:savecpo