summaryrefslogtreecommitdiffstats
path: root/runtime/compiler/php.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-09-06 17:44:46 +0000
committerBram Moolenaar <Bram@vim.org>2004-09-06 17:44:46 +0000
commit15d0a8c77dad867b69822e2fd8f9f6bbcf765c48 (patch)
treee84faedc007f9c2b81b9056a400dccade2b947e5 /runtime/compiler/php.vim
parentd4755bb0e04fca334675f1503bd6474b017a9bba (diff)
updated for version 7.0015v7.0015
Diffstat (limited to 'runtime/compiler/php.vim')
-rw-r--r--runtime/compiler/php.vim28
1 files changed, 28 insertions, 0 deletions
diff --git a/runtime/compiler/php.vim b/runtime/compiler/php.vim
new file mode 100644
index 0000000000..5dad2710a9
--- /dev/null
+++ b/runtime/compiler/php.vim
@@ -0,0 +1,28 @@
+" Vim compiler file
+" Compiler: PHP
+" Maintainer: Doug Kearns <djkea2@mugca.its.monash.edu.au>
+" URL: http://mugca.its.monash.edu.au/~djkea2/vim/compiler/php.vim
+" Last Change: 2004 Sep 05
+
+if exists("current_compiler")
+ finish
+endif
+let current_compiler = "php"
+
+if exists(":CompilerSet") != 2 " older Vim always used :setlocal
+ command -nargs=* CompilerSet setlocal <args>
+endif
+
+let s:cpo_save = &cpo
+set cpo-=C
+
+CompilerSet makeprg=php\ -lq
+
+CompilerSet errorformat=%E<b>Parse\ error</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
+ \%W<b>Notice</b>:\ %m\ in\ <b>%f</b>\ on\ line\ <b>%l</b><br\ />,
+ \%EParse\ error:\ %m\ in\ %f\ on\ line\ %l,
+ \%WNotice:\ %m\ in\ %f</b>\ on\ line\ %l,
+ \%-G%.%#
+
+let &cpo = s:cpo_save
+unlet s:cpo_save