blob: 2f4f032b9b5e43347fa313d69da15cc6d2cb34d1 [file] [log] [blame]
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +00001" Vim compiler file
2" Compiler: PHP
Bram Moolenaar293ee4d2004-12-09 21:34:53 +00003" 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
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +00006
7if exists("current_compiler")
8 finish
9endif
10let current_compiler = "php"
11
12if exists(":CompilerSet") != 2 " older Vim always used :setlocal
13 command -nargs=* CompilerSet setlocal <args>
14endif
15
16let s:cpo_save = &cpo
17set cpo-=C
18
19CompilerSet makeprg=php\ -lq
20
21CompilerSet 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
27let &cpo = s:cpo_save
28unlet s:cpo_save