eruby.vim 913 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. " Vim compiler file
  2. " Language: eRuby
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " URL: https://github.com/vim-ruby/vim-ruby
  5. " Release Coordinator: Doug Kearns <dougkearns@gmail.com>
  6. " Last Change: 2018 Jan 25
  7. if exists("current_compiler")
  8. finish
  9. endif
  10. let current_compiler = "eruby"
  11. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  12. command -nargs=* CompilerSet setlocal <args>
  13. endif
  14. let s:cpo_save = &cpo
  15. set cpo-=C
  16. if exists("eruby_compiler") && eruby_compiler == "eruby"
  17. CompilerSet makeprg=eruby
  18. else
  19. CompilerSet makeprg=erb
  20. endif
  21. CompilerSet errorformat=
  22. \eruby:\ %f:%l:%m,
  23. \%+E%f:%l:\ parse\ error,
  24. \%W%f:%l:\ warning:\ %m,
  25. \%E%f:%l:in\ %*[^:]:\ %m,
  26. \%E%f:%l:\ %m,
  27. \%-C%\t%\\d%#:%#\ %#from\ %f:%l:in\ %.%#,
  28. \%-Z%\t%\\d%#:%#\ %#from\ %f:%l,
  29. \%-Z%p^,
  30. \%-G%.%#
  31. let &cpo = s:cpo_save
  32. unlet s:cpo_save
  33. " vim: nowrap sw=2 sts=2 ts=8: