blob: c185bc79d358ebf6057fdbb5b49771f1dd5e2ba2 [file] [log] [blame]
Bram Moolenaarc236c162008-07-13 17:41:49 +00001" Vim compiler file
2" Language: RSpec
3" Maintainer: Tim Pope <vimNOSPAM@tpope.info>
Bram Moolenaar5c736222010-01-06 20:54:52 +01004" Info: $Id: rspec.vim,v 1.2 2008/06/29 04:18:42 tpope Exp $
Bram Moolenaarc236c162008-07-13 17:41:49 +00005" URL: http://vim-ruby.rubyforge.org
6" Anon CVS: See above site
7" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
8
9if exists("current_compiler")
10 finish
11endif
12let current_compiler = "rspec"
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=spec
22
23CompilerSet errorformat=
24 \%+W'%.%#'\ FAILED,
25 \%+I'%.%#'\ FIXED,
26 \%-Cexpected:%.%#,
27 \%-C\ \ \ \ \ got:%.%#,
28 \%E%.%#:in\ `load':\ %f:%l:%m,
29 \%C%f:%l:,
30 \%W%f:%l:\ warning:\ %m,
31 \%E%f:%l:in\ %*[^:]:\ %m,
32 \%E%f:%l:\ %m,
33 \%-Z%\tfrom\ %f:%l,
34 \%-Z%p^%.%#,
35 \%-C%.%#,
36 \%-G%.%#
37
38let &cpo = s:cpo_save
39unlet s:cpo_save
40
41" vim: nowrap sw=2 sts=2 ts=8: