blob: 1a6813624c5005dd5bc2c4c36cfc2a6c797b1ffc [file] [log] [blame]
Bram Moolenaar60a795a2005-09-16 21:55:43 +00001" Vim compiler file
Bram Moolenaarc6249bb2006-04-15 20:25:09 +00002" Language: eRuby
3" Maintainer: Doug Kearns <dougkearns@gmail.com>
Bram Moolenaar5c736222010-01-06 20:54:52 +01004" Info: $Id: eruby.vim,v 1.7 2008/06/29 04:18:42 tpope Exp $
Bram Moolenaarc6249bb2006-04-15 20:25:09 +00005" URL: http://vim-ruby.rubyforge.org
6" Anon CVS: See above site
7" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
Bram Moolenaar60a795a2005-09-16 21:55:43 +00008
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
Bram Moolenaarc236c162008-07-13 17:41:49 +000041" vim: nowrap sw=2 sts=2 ts=8: