hare.vim 574 B

123456789101112131415161718192021222324252627282930
  1. " Vim compiler file.
  2. " Compiler: Hare
  3. " Maintainer: Amelia Clarke <selene@perilune.dev>
  4. " Last Change: 2024-05-23
  5. " Upstream: https://git.sr.ht/~sircmpwn/hare.vim
  6. if exists('current_compiler')
  7. finish
  8. endif
  9. let current_compiler = 'hare'
  10. let s:cpo_save = &cpo
  11. set cpo&vim
  12. if filereadable('Makefile') || filereadable('makefile')
  13. CompilerSet makeprg=make
  14. else
  15. CompilerSet makeprg=hare\ build
  16. endif
  17. CompilerSet errorformat=
  18. \%f:%l:%c:\ syntax\ error:\ %m,
  19. \%f:%l:%c:\ error:\ %m,
  20. \%-G%.%#
  21. let &cpo = s:cpo_save
  22. unlet s:cpo_save
  23. " vim: et sts=2 sw=2 ts=8