neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

ruby.vim (908B)


      1 " Vim compiler file
      2 " Language:		Ruby
      3 " Function:		Syntax check and/or error reporting
      4 " Maintainer:		Tim Pope <vimNOSPAM@tpope.org>
      5 " URL:			https://github.com/vim-ruby/vim-ruby
      6 " Last Change:		2019 Jan 06
      7 "			2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
      8 
      9 if exists("current_compiler")
     10  finish
     11 endif
     12 let current_compiler = "ruby"
     13 
     14 let s:cpo_save = &cpo
     15 set cpo-=C
     16 
     17 " default settings runs script normally
     18 " add '-c' switch to run syntax check only:
     19 "
     20 "   CompilerSet makeprg=ruby\ -c
     21 "
     22 " or add '-c' at :make command line:
     23 "
     24 "   :make -c %<CR>
     25 "
     26 CompilerSet makeprg=ruby
     27 
     28 CompilerSet errorformat=
     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%\t%\\d%#:%#\ %#from\ %f:%l:in\ %.%#,
     34    \%-Z%\t%\\d%#:%#\ %#from\ %f:%l,
     35    \%-Z%p^,
     36    \%-G%.%#
     37 
     38 let &cpo = s:cpo_save
     39 unlet s:cpo_save
     40 
     41 " vim: nowrap sw=2 sts=2 ts=8: