php.vim 587 B

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