cm3.vim 633 B

123456789101112131415161718192021222324252627
  1. " Vim compiler file
  2. " Compiler: Critical Mass Modula-3 Compiler
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2021 Apr 08
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "cm3"
  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. " TODO: better handling of Quake errors
  15. CompilerSet makeprg=cm3
  16. CompilerSet errorformat=%D---\ building\ in\ %f\ ---,
  17. \%W\"%f\"\\,\ line\ %l:\ warning:\ %m,
  18. \%E\"%f\"\\,\ line\ %l:\ %m,
  19. \%-G%.%#
  20. let &cpo = s:cpo_save
  21. unlet s:cpo_save