gm2.vim 493 B

1234567891011121314151617181920212223
  1. " Vim compiler file
  2. " Compiler: GNU Modula-2 Compiler
  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 = "gm2"
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. CompilerSet makeprg=gm2
  12. CompilerSet errorformat=%-G%f:%l:%c:\ error:\ compilation\ failed,
  13. \%f:%l:%c:\ %trror:\ %m,
  14. \%f:%l:%c:\ %tarning:\ %m,
  15. \%f:%l:%c:\ %tote:\ %m,
  16. \%-G%.%#
  17. let &cpo = s:cpo_save
  18. unlet s:cpo_save