xref: /vim-8.2.3635/runtime/compiler/eruby.vim (revision ec7944aa)
1" Vim compiler file
2" Language:		eRuby
3" Maintainer:		Doug Kearns <[email protected]>
4" URL:			https://github.com/vim-ruby/vim-ruby
5" Release Coordinator:	Doug Kearns <[email protected]>
6
7if exists("current_compiler")
8  finish
9endif
10let current_compiler = "eruby"
11
12if exists(":CompilerSet") != 2		" older Vim always used :setlocal
13  command -nargs=* CompilerSet setlocal <args>
14endif
15
16let s:cpo_save = &cpo
17set cpo-=C
18
19if exists("eruby_compiler") && eruby_compiler == "eruby"
20  CompilerSet makeprg=eruby
21else
22  CompilerSet makeprg=erb
23endif
24
25CompilerSet 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%.%#
35
36let &cpo = s:cpo_save
37unlet s:cpo_save
38
39" vim: nowrap sw=2 sts=2 ts=8:
40