Merged from the latest developing branch.
[MacVim/KaoriYa.git] / runtime / compiler / rspec.vim
blobbd16bd9e81bcc8dcfe41da31d30517b49921448d
1 " Vim compiler file
2 " Language:             RSpec
3 " Maintainer:           Tim Pope <vimNOSPAM@tpope.info>
4 " Info:                 $Id: rspec.vim,v 1.3 2008/08/09 17:44:17 vimboss Exp $
5 " URL:                  http://vim-ruby.rubyforge.org
6 " Anon CVS:             See above site
7 " Release Coordinator:  Doug Kearns <dougkearns@gmail.com>
9 if exists("current_compiler")
10   finish
11 endif
12 let current_compiler = "rspec"
14 if exists(":CompilerSet") != 2          " older Vim always used :setlocal
15   command -nargs=* CompilerSet setlocal <args>
16 endif
18 let s:cpo_save = &cpo
19 set cpo-=C
21 CompilerSet makeprg=spec
23 CompilerSet 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%.%#
38 let &cpo = s:cpo_save
39 unlet s:cpo_save
41 " vim: nowrap sw=2 sts=2 ts=8: