ruby.vim 966 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. " Release Coordinator: Doug Kearns <dougkearns@gmail.com>
  7. " Last Change: 2019 Jan 06
  8. " 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
  9. if exists("current_compiler")
  10. finish
  11. endif
  12. let current_compiler = "ruby"
  13. let s:cpo_save = &cpo
  14. set cpo-=C
  15. " default settings runs script normally
  16. " add '-c' switch to run syntax check only:
  17. "
  18. " CompilerSet makeprg=ruby\ -c
  19. "
  20. " or add '-c' at :make command line:
  21. "
  22. " :make -c %<CR>
  23. "
  24. CompilerSet makeprg=ruby
  25. CompilerSet errorformat=
  26. \%+E%f:%l:\ parse\ error,
  27. \%W%f:%l:\ warning:\ %m,
  28. \%E%f:%l:in\ %*[^:]:\ %m,
  29. \%E%f:%l:\ %m,
  30. \%-C%\t%\\d%#:%#\ %#from\ %f:%l:in\ %.%#,
  31. \%-Z%\t%\\d%#:%#\ %#from\ %f:%l,
  32. \%-Z%p^,
  33. \%-G%.%#
  34. let &cpo = s:cpo_save
  35. unlet s:cpo_save
  36. " vim: nowrap sw=2 sts=2 ts=8: