530
|
1 " Vim compiler file
|
831
|
2 " Language: eRuby
|
|
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
|
4869
|
4 " URL: https://github.com/vim-ruby/vim-ruby
|
831
|
5 " Release Coordinator: Doug Kearns <dougkearns@gmail.com>
|
530
|
6
|
|
7 if exists("current_compiler")
|
|
8 finish
|
|
9 endif
|
|
10 let current_compiler = "eruby"
|
|
11
|
|
12 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
|
13 command -nargs=* CompilerSet setlocal <args>
|
|
14 endif
|
|
15
|
|
16 let s:cpo_save = &cpo
|
|
17 set cpo-=C
|
|
18
|
532
|
19 if exists("eruby_compiler") && eruby_compiler == "eruby"
|
|
20 CompilerSet makeprg=eruby
|
|
21 else
|
|
22 CompilerSet makeprg=erb
|
|
23 endif
|
530
|
24
|
532
|
25 CompilerSet errorformat=
|
|
26 \eruby:\ %f:%l:%m,
|
|
27 \%+E%f:%l:\ parse\ error,
|
|
28 \%W%f:%l:\ warning:\ %m,
|
|
29 \%E%f:%l:in\ %*[^:]:\ %m,
|
|
30 \%E%f:%l:\ %m,
|
|
31 \%-C%\tfrom\ %f:%l:in\ %.%#,
|
|
32 \%-Z%\tfrom\ %f:%l,
|
|
33 \%-Z%p^,
|
|
34 \%-G%.%#
|
530
|
35
|
|
36 let &cpo = s:cpo_save
|
|
37 unlet s:cpo_save
|
|
38
|
1668
|
39 " vim: nowrap sw=2 sts=2 ts=8:
|