hare.vim 633 B

1234567891011121314151617181920212223242526272829303132
  1. " Vim compiler file
  2. " Compiler: Hare Compiler
  3. " Maintainer: Amelia Clarke <me@rsaihe.dev>
  4. " Last Change: 2022-09-21
  5. if exists("g:current_compiler")
  6. finish
  7. endif
  8. let g:current_compiler = "hare"
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. if exists(':CompilerSet') != 2
  12. command -nargs=* CompilerSet setlocal <args>
  13. endif
  14. if filereadable("Makefile") || filereadable("makefile")
  15. CompilerSet makeprg=make
  16. else
  17. CompilerSet makeprg=hare\ build
  18. endif
  19. CompilerSet errorformat=
  20. \Error\ %f:%l:%c:\ %m,
  21. \Syntax\ error:\ %.%#\ at\ %f:%l:%c\\,\ %m,
  22. \%-G%.%#
  23. let &cpo = s:cpo_save
  24. unlet s:cpo_save
  25. " vim: tabstop=2 shiftwidth=2 expandtab