php.vim 707 B

123456789101112131415161718192021222324252627
  1. " Vim compiler file
  2. " Compiler: PHP CLI
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2013 Jun 25
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "php"
  9. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  10. command -nargs=* CompilerSet setlocal <args>
  11. endif
  12. let s:cpo_save = &cpo
  13. set cpo-=C
  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. let &cpo = s:cpo_save
  21. unlet s:cpo_save