Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/vim73/compiler/php.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim73/compiler/php.vim')
-rw-r--r--vim73/compiler/php.vim28
1 files changed, 28 insertions, 0 deletions
diff --git a/vim73/compiler/php.vim b/vim73/compiler/php.vim
new file mode 100644
index 0000000..2f4f032
--- /dev/null
+++ b/vim73/compiler/php.vim
@@ -0,0 +1,28 @@
+" Vim compiler file
+" Compiler: PHP
+" Maintainer: Doug Kearns <djkea2@gus.gscit.monash.edu.au>
+" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/compiler/php.vim
+" Last Change: 2004 Nov 27
+
+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