rhino.vim 795 B

12345678910111213141516171819202122232425262728293031
  1. " Vim compiler file
  2. " Compiler: Rhino Shell (JavaScript in Java)
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2019 Jul 10
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "rhino"
  9. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  10. command -nargs=* CompilerSet setlocal <args>
  11. endif
  12. let s:cpo_save = &cpo
  13. set cpo&vim
  14. " CompilerSet makeprg=java\ -jar\ lib/rhino-X.X.XX.jar\ -w\ -strict
  15. CompilerSet makeprg=rhino
  16. CompilerSet errorformat=%-Gjs:\ %.%#Compilation\ produced%.%#,
  17. \%Ejs:\ \"%f\"\\,\ line\ %l:\ %m,
  18. \%Ejs:\ uncaught\ JavaScript\ runtime\ exception:\ %m,
  19. \%Wjs:\ warning:\ \"%f\"\\,\ line\ %l:\ %m,
  20. \%Zjs:\ %p^,
  21. \%Cjs:\ %.%#,
  22. \%-G%.%#
  23. let &cpo = s:cpo_save
  24. unlet s:cpo_save