blob: 524c205f8a694fb21a2a90cd9776ac0abfb2c73f [file] [log] [blame]
Bram Moolenaar4463f292005-09-25 22:20:24 +00001" Vim compiler file
Bram Moolenaar99ebf042006-04-15 20:28:54 +00002" Language: Test::Unit - Ruby Unit Testing Framework
3" Maintainer: Doug Kearns <dougkearns@gmail.com>
Bram Moolenaar1d689522010-05-28 20:54:39 +02004" Last Change: 2008 Aug 1
Bram Moolenaar99ebf042006-04-15 20:28:54 +00005" URL: http://vim-ruby.rubyforge.org
6" Anon CVS: See above site
7" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
Bram Moolenaar4463f292005-09-25 22:20:24 +00008
9if exists("current_compiler")
10 finish
11endif
12let current_compiler = "rubyunit"
13
14if exists(":CompilerSet") != 2 " older Vim always used :setlocal
15 command -nargs=* CompilerSet setlocal <args>
16endif
17
18let s:cpo_save = &cpo
19set cpo-=C
20
21CompilerSet makeprg=testrb
22
23CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
24 \%C%m\ [%f:%l]:,
Bram Moolenaara5fb28b2005-10-10 21:00:54 +000025 \%E\ %\\+%\\d%\\+)\ Error:,
Bram Moolenaar4463f292005-09-25 22:20:24 +000026 \%C%m:,
27 \%C\ \ \ \ %f:%l:%.%#,
28 \%C%m,
29 \%Z\ %#,
30 \%-G%.%#
31
32let &cpo = s:cpo_save
33unlet s:cpo_save
34
Bram Moolenaar8c8de832008-06-24 22:58:06 +000035" vim: nowrap sw=2 sts=2 ts=8: