php.vim (587B)
1 " Vim compiler file 2 " Compiler: PHP CLI 3 " Maintainer: Doug Kearns <dougkearns@gmail.com> 4 " Last Change: 2024 Apr 03 5 6 if exists("current_compiler") 7 finish 8 endif 9 let current_compiler = "php" 10 11 let s:cpo_save = &cpo 12 set cpo-=C 13 14 CompilerSet makeprg=php\ -lq 15 CompilerSet errorformat=%E<b>%.%#Parse\ error</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />, 16 \%W<b>%.%#Notice</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />, 17 \%E%.%#Parse\ error:\ %m\ in\ %f\ on\ line\ %l, 18 \%W%.%#Notice:\ %m\ in\ %f\ on\ line\ %l, 19 \%-G%.%# 20 21 let &cpo = s:cpo_save 22 unlet s:cpo_save