blob: 92f93b89fcb74120d26c974448b82ef895b315cf [file] [log] [blame]
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +00001" Vim compiler file
Bram Moolenaardd007ed2013-07-09 15:44:17 +02002" Compiler: PHP CLI
3" Maintainer: Doug Kearns <dougkearns@gmail.com>
4" Last Change: 2013 Jun 25
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +00005
6if exists("current_compiler")
7 finish
8endif
9let current_compiler = "php"
10
11if exists(":CompilerSet") != 2 " older Vim always used :setlocal
12 command -nargs=* CompilerSet setlocal <args>
13endif
14
15let s:cpo_save = &cpo
16set cpo-=C
17
18CompilerSet makeprg=php\ -lq
Bram Moolenaardd007ed2013-07-09 15:44:17 +020019CompilerSet errorformat=%E<b>%.%#Parse\ error</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
20 \%W<b>%.%#Notice</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
21 \%E%.%#Parse\ error:\ %m\ in\ %f\ on\ line\ %l,
22 \%W%.%#Notice:\ %m\ in\ %f\ on\ line\ %l,
23 \%-G%.%#
Bram Moolenaar15d0a8c2004-09-06 17:44:46 +000024
25let &cpo = s:cpo_save
26unlet s:cpo_save