blob: 48e8fa41abc5e4fde8165a05c6b9000682bd968f [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 Moolenaarec7944a2013-06-12 21:29:15 +02004" URL: https://github.com/vim-ruby/vim-ruby
Bram Moolenaar99ebf042006-04-15 20:28:54 +00005" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
Bram Moolenaard09091d2019-01-17 16:07:22 +01006" Last Change: 2014 Mar 23
Bram Moolenaar4463f292005-09-25 22:20:24 +00007
8if exists("current_compiler")
9 finish
10endif
11let current_compiler = "rubyunit"
12
13if exists(":CompilerSet") != 2 " older Vim always used :setlocal
14 command -nargs=* CompilerSet setlocal <args>
15endif
16
17let s:cpo_save = &cpo
18set cpo-=C
19
20CompilerSet makeprg=testrb
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020021" CompilerSet makeprg=ruby\ -Itest
22" CompilerSet makeprg=m
Bram Moolenaar4463f292005-09-25 22:20:24 +000023
24CompilerSet errorformat=\%W\ %\\+%\\d%\\+)\ Failure:,
25 \%C%m\ [%f:%l]:,
Bram Moolenaara5fb28b2005-10-10 21:00:54 +000026 \%E\ %\\+%\\d%\\+)\ Error:,
Bram Moolenaar4463f292005-09-25 22:20:24 +000027 \%C%m:,
28 \%C\ \ \ \ %f:%l:%.%#,
29 \%C%m,
30 \%Z\ %#,
31 \%-G%.%#
32
33let &cpo = s:cpo_save
34unlet s:cpo_save
35
Bram Moolenaar8c8de832008-06-24 22:58:06 +000036" vim: nowrap sw=2 sts=2 ts=8: