1" Vim compiler file
2" Language:	Test::Unit - Ruby Unit Testing Framework
3" Maintainer:	Doug Kearns <djkea2 at gus.gscit.monash.edu.au>
4" Info:		$Id$
5" URL:		http://vim-ruby.sourceforge.net
6" Anon CVS:	See above site
7" Licence:	GPL (http://www.gnu.org)
8" Disclaimer:
9"    This program is distributed in the hope that it will be useful,
10"    but WITHOUT ANY WARRANTY; without even the implied warranty of
11"    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12"    GNU General Public License for more details.
13" ----------------------------------------------------------------------------
14
15if exists("current_compiler")
16  finish
17endif
18let current_compiler = "rubyunit"
19
20if exists(":CompilerSet") != 2		" older Vim always used :setlocal
21  command -nargs=* CompilerSet setlocal <args>
22endif
23
24let s:cpo_save = &cpo
25set cpo-=C
26
27CompilerSet makeprg=testrb
28
29CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
30			\%C%m\ [%f:%l]:,
31		        \%E\ %\\+%\\d%\\+)\ Error:,
32			\%C%m:,
33			\%C\ \ \ \ %f:%l:%.%#,
34			\%C%m,
35			\%Z\ %#,
36			\%-G%.%#
37
38let &cpo = s:cpo_save
39unlet s:cpo_save
40
41" vim: nowrap sw=2 sts=2 ts=8 ff=unix:
42