icon.vim 837 B

12345678910111213141516171819202122232425262728293031323334
  1. " Vim compiler file
  2. " Compiler: Icon Compiler
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2022 Jun 16
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "icont"
  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=icont\ -s
  15. CompilerSet errorformat=%-G%\\d%\\+\ errors%\\=,
  16. \%ERun-time\ error\ %n,
  17. \%ERun-time\ error\ %n\ in\ %m,
  18. \%ZTraceback:,
  19. \%+Coffending\ value:\ %.%#,
  20. \%CFile\ %f;\ Line\ %l,
  21. \%EFile\ %f;\ Line\ %l\ #\ %m,
  22. \%EFile\ %f;\ %m,
  23. \%E%f:%l:\ #\ %m,
  24. \%E%f:\ %m,
  25. \%+C%.%#,
  26. \%-G%.%#
  27. let &cpo = s:cpo_save
  28. unlet s:cpo_save