PATCH: new eruby compiler plugin

Doug Kearns dougkearns at gmail.com
Fri Sep 2 02:08:54 EDT 2005


On Fri, Sep 02, 2005 at 02:33:04AM +1000, Doug Kearns wrote:
> Here's a first cut at a compiler plugin for eruby. I suppose we should
> support erb as well, or perhaps instead?

erb, unfortunately, doesn't include the filename in it's output. I'll
submit a patch.
 
> It's not particularly useful yet. ;-)

This should be an improvement...

Regards,
Doug


Index: compiler/eruby.vim
===================================================================
RCS file: /var/cvs/vim-ruby/vim-ruby/compiler/eruby.vim,v
retrieving revision 1.1
diff -u -r1.1 eruby.vim
--- compiler/eruby.vim	1 Sep 2005 16:35:57 -0000	1.1
+++ compiler/eruby.vim	2 Sep 2005 06:08:24 -0000
@@ -1,7 +1,7 @@
 " Vim compiler file
 " Language:	eRuby
 " Maintainer:	Doug Kearns <djkea2 at gus.gscit.monash.edu.au>
-" Info:		$Id: eruby.vim,v 1.1 2005/09/01 16:35:57 dkearns Exp $
+" Info:		$Id$
 " URL:		http://vim-ruby.sourceforge.net
 " Anon CVS:	See above site
 " Licence:	GPL (http://www.gnu.org)
@@ -15,7 +15,7 @@
 if exists("current_compiler")
   finish
 endif
-let current_compiler = "rubyunit"
+let current_compiler = "eruby"
 
 if exists(":CompilerSet") != 2		" older Vim always used :setlocal
   command -nargs=* CompilerSet setlocal <args>
@@ -26,7 +26,10 @@
 
 CompilerSet makeprg=eruby
 
-CompilerSet errorformat=%E%f:%l:%m,
+CompilerSet errorformat=eruby:\ %f:%l:%m,
+		       \%E%f:%l:\ %m,
+		       \%-Z%p^,
+		       \%C%m,
 		       \%-G%.%#
 
 let &cpo = s:cpo_save


More information about the vim-ruby-devel mailing list