rhino.vim 675 B

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