Merge branch 'vim-with-runtime' into feat/quickfix-title
[vim_extended.git] / runtime / compiler / php.vim
blob2f4f032b9b5e43347fa313d69da15cc6d2cb34d1
1 " Vim compiler file
2 " Compiler:     PHP
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
7 if exists("current_compiler")
8   finish
9 endif
10 let current_compiler = "php"
12 if exists(":CompilerSet") != 2          " older Vim always used :setlocal
13   command -nargs=* CompilerSet setlocal <args>
14 endif
16 let s:cpo_save = &cpo
17 set cpo-=C
19 CompilerSet makeprg=php\ -lq
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%.%#
27 let &cpo = s:cpo_save
28 unlet s:cpo_save