23
|
1 " Vim compiler file
|
|
2 " Compiler: PHP
|
36
|
3 " Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
|
|
4 " URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/php.vim
|
|
5 " Last Change: 2004 Nov 27
|
23
|
6
|
|
7 if exists("current_compiler")
|
|
8 finish
|
|
9 endif
|
|
10 let current_compiler = "php"
|
|
11
|
|
12 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
|
13 command -nargs=* CompilerSet setlocal <args>
|
|
14 endif
|
|
15
|
|
16 let s:cpo_save = &cpo
|
|
17 set cpo-=C
|
|
18
|
|
19 CompilerSet makeprg=php\ -lq
|
|
20
|
|
21 CompilerSet errorformat=%E<b>Parse\ error</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
|
|
22 \%W<b>Notice</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
|
|
23 \%EParse\ error:\ %m\ in\ %f\ on\ line\ %l,
|
|
24 \%WNotice:\ %m\ in\ %f</b>\ on\ line\ %l,
|
|
25 \%-G%.%#
|
|
26
|
|
27 let &cpo = s:cpo_save
|
|
28 unlet s:cpo_save
|