robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
c3defb4b45
master
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 9if exists ( "current_compiler" ) 10finish 11endif 12let current_compiler = "ruby" 13 14let s: cpo_save = & cpo 15set 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" 26CompilerSet makeprg=ruby 27 28CompilerSet 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 38let & cpo = s: cpo_save 39unlet s: cpo_save 40 41" vim: nowrap sw=2 sts=2 ts=8: