1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-21 17:25:11 +01:00
vim/runtime/compiler/ruby.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
966 B
VimL
Raw Permalink Normal View History

2004-06-13 20:20:40 +00:00
" Vim compiler file
2006-04-15 20:25:09 +00:00
" Language: Ruby
" Function: Syntax check and/or error reporting
2013-06-12 21:29:15 +02:00
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
" URL: https://github.com/vim-ruby/vim-ruby
2006-04-15 20:25:09 +00:00
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
2019-01-17 16:07:22 +01:00
" Last Change: 2019 Jan 06
" 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
2004-06-13 20:20:40 +00:00
if exists("current_compiler")
finish
endif
let current_compiler = "ruby"
let s:cpo_save = &cpo
set cpo-=C
" default settings runs script normally
" add '-c' switch to run syntax check only:
"
2019-01-17 16:07:22 +01:00
" CompilerSet makeprg=ruby\ -c
2004-06-13 20:20:40 +00:00
"
" or add '-c' at :make command line:
"
" :make -c %<CR>
"
2019-01-17 16:07:22 +01:00
CompilerSet makeprg=ruby
2004-06-13 20:20:40 +00:00
CompilerSet errorformat=
\%+E%f:%l:\ parse\ error,
\%W%f:%l:\ warning:\ %m,
\%E%f:%l:in\ %*[^:]:\ %m,
\%E%f:%l:\ %m,
2019-01-17 16:07:22 +01:00
\%-C%\t%\\d%#:%#\ %#from\ %f:%l:in\ %.%#,
\%-Z%\t%\\d%#:%#\ %#from\ %f:%l,
2004-06-13 20:20:40 +00:00
\%-Z%p^,
\%-G%.%#
let &cpo = s:cpo_save
unlet s:cpo_save
2008-06-24 21:16:56 +00:00
" vim: nowrap sw=2 sts=2 ts=8: