annotate runtime/compiler/php.vim @ 200:3585d1a53fa5

updated for version 7.0059
author vimboss
date Fri, 11 Mar 2005 22:49:40 +0000
parents 125e80798a85
children f7add3891e95
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
1 " Vim compiler file
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
2 " Compiler: PHP
36
125e80798a85 updated for version 7.0021
vimboss
parents: 23
diff changeset
3 " Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
125e80798a85 updated for version 7.0021
vimboss
parents: 23
diff changeset
4 " URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/php.vim
125e80798a85 updated for version 7.0021
vimboss
parents: 23
diff changeset
5 " Last Change: 2004 Nov 27
23
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
6
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
7 if exists("current_compiler")
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
8 finish
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
9 endif
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
10 let current_compiler = "php"
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
11
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
12 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
13 command -nargs=* CompilerSet setlocal <args>
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
14 endif
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
15
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
16 let s:cpo_save = &cpo
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
17 set cpo-=C
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
18
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
19 CompilerSet makeprg=php\ -lq
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
20
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
21 CompilerSet errorformat=%E<b>Parse\ error</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
22 \%W<b>Notice</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
23 \%EParse\ error:\ %m\ in\ %f\ on\ line\ %l,
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
24 \%WNotice:\ %m\ in\ %f</b>\ on\ line\ %l,
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
25 \%-G%.%#
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
26
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
27 let &cpo = s:cpo_save
3f44e9abe4ec updated for version 7.0015
vimboss
parents:
diff changeset
28 unlet s:cpo_save