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>
|
15512
|
6 " Last Change: 2018 Jan 25
|
530
|
7
|
|
8 if exists("current_compiler")
|
|
9 finish
|
|
10 endif
|
|
11 let current_compiler = "eruby"
|
|
12
|
|
13 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
|
14 command -nargs=* CompilerSet setlocal <args>
|
|
15 endif
|
|
16
|
|
17 let s:cpo_save = &cpo
|
|
18 set cpo-=C
|
|
19
|
532
|
20 if exists("eruby_compiler") && eruby_compiler == "eruby"
|
|
21 CompilerSet makeprg=eruby
|
|
22 else
|
|
23 CompilerSet makeprg=erb
|
|
24 endif
|
530
|
25
|
532
|
26 CompilerSet errorformat=
|
|
27 \eruby:\ %f:%l:%m,
|
|
28 \%+E%f:%l:\ parse\ error,
|
|
29 \%W%f:%l:\ warning:\ %m,
|
|
30 \%E%f:%l:in\ %*[^:]:\ %m,
|
|
31 \%E%f:%l:\ %m,
|
15512
|
32 \%-C%\t%\\d%#:%#\ %#from\ %f:%l:in\ %.%#,
|
|
33 \%-Z%\t%\\d%#:%#\ %#from\ %f:%l,
|
532
|
34 \%-Z%p^,
|
|
35 \%-G%.%#
|
530
|
36
|
|
37 let &cpo = s:cpo_save
|
|
38 unlet s:cpo_save
|
|
39
|
1668
|
40 " vim: nowrap sw=2 sts=2 ts=8:
|