blob: 474dafeecef8dac38cd13fa809fee504ab7ca8fb [file] [log] [blame]
Bram Moolenaar60a795a2005-09-16 21:55:43 +00001" Vim compiler file
2" Language: eRuby
3" Maintainer: Doug Kearns <djkea2 at gus.gscit.monash.edu.au>
4" Info: $Id$
Bram Moolenaara5792f52005-11-23 21:25:05 +00005" URL: http://vim-ruby.rubyforge.org
Bram Moolenaar60a795a2005-09-16 21:55:43 +00006" Anon CVS: See above site
Bram Moolenaar60a795a2005-09-16 21:55:43 +00007" ----------------------------------------------------------------------------
8
9if exists("current_compiler")
10 finish
11endif
12let current_compiler = "eruby"
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
Bram Moolenaar1e015462005-09-25 22:16:38 +000021if exists("eruby_compiler") && eruby_compiler == "eruby"
22 CompilerSet makeprg=eruby
23else
24 CompilerSet makeprg=erb
25endif
Bram Moolenaar60a795a2005-09-16 21:55:43 +000026
Bram Moolenaar1e015462005-09-25 22:16:38 +000027CompilerSet errorformat=
28 \eruby:\ %f:%l:%m,
29 \%+E%f:%l:\ parse\ error,
30 \%W%f:%l:\ warning:\ %m,
31 \%E%f:%l:in\ %*[^:]:\ %m,
32 \%E%f:%l:\ %m,
33 \%-C%\tfrom\ %f:%l:in\ %.%#,
34 \%-Z%\tfrom\ %f:%l,
35 \%-Z%p^,
36 \%-G%.%#
Bram Moolenaar60a795a2005-09-16 21:55:43 +000037
38let &cpo = s:cpo_save
39unlet s:cpo_save
40
41" vim: nowrap sw=2 sts=2 ts=8 ff=unix: