1" Vim compiler file 2" Compiler: PHP 3" Maintainer: Doug Kearns <[email protected]> 4" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/php.vim 5" Last Change: 2004 Nov 27 6 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 29