Bram Moolenaar | 60a795a | 2005-09-16 21:55:43 +0000 | [diff] [blame] | 1 | " Vim compiler file |
| 2 | " Language: eRuby |
| 3 | " Maintainer: Doug Kearns <djkea2 at gus.gscit.monash.edu.au> |
| 4 | " Info: $Id$ |
| 5 | " URL: http://vim-ruby.sourceforge.net |
| 6 | " Anon CVS: See above site |
| 7 | " Licence: GPL (http://www.gnu.org) |
| 8 | " Disclaimer: |
| 9 | " This program is distributed in the hope that it will be useful, |
| 10 | " but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | " GNU General Public License for more details. |
| 13 | " ---------------------------------------------------------------------------- |
| 14 | |
| 15 | if exists("current_compiler") |
| 16 | finish |
| 17 | endif |
| 18 | let current_compiler = "eruby" |
| 19 | |
| 20 | if exists(":CompilerSet") != 2 " older Vim always used :setlocal |
| 21 | command -nargs=* CompilerSet setlocal <args> |
| 22 | endif |
| 23 | |
| 24 | let s:cpo_save = &cpo |
| 25 | set cpo-=C |
| 26 | |
Bram Moolenaar | 1e01546 | 2005-09-25 22:16:38 +0000 | [diff] [blame] | 27 | if exists("eruby_compiler") && eruby_compiler == "eruby" |
| 28 | CompilerSet makeprg=eruby |
| 29 | else |
| 30 | CompilerSet makeprg=erb |
| 31 | endif |
Bram Moolenaar | 60a795a | 2005-09-16 21:55:43 +0000 | [diff] [blame] | 32 | |
Bram Moolenaar | 1e01546 | 2005-09-25 22:16:38 +0000 | [diff] [blame] | 33 | CompilerSet errorformat= |
| 34 | \eruby:\ %f:%l:%m, |
| 35 | \%+E%f:%l:\ parse\ error, |
| 36 | \%W%f:%l:\ warning:\ %m, |
| 37 | \%E%f:%l:in\ %*[^:]:\ %m, |
| 38 | \%E%f:%l:\ %m, |
| 39 | \%-C%\tfrom\ %f:%l:in\ %.%#, |
| 40 | \%-Z%\tfrom\ %f:%l, |
| 41 | \%-Z%p^, |
| 42 | \%-G%.%# |
Bram Moolenaar | 60a795a | 2005-09-16 21:55:43 +0000 | [diff] [blame] | 43 | |
| 44 | let &cpo = s:cpo_save |
| 45 | unlet s:cpo_save |
| 46 | |
| 47 | " vim: nowrap sw=2 sts=2 ts=8 ff=unix: |