vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

hare.vim (974B)


      1 vim9script
      2 
      3 # Vim compiler file.
      4 # Compiler:    Hare
      5 # Maintainer:  Amelia Clarke <selene@perilune.dev>
      6 # Last Change: 2026 Jan 24
      7 # Upstream:    https://git.sr.ht/~sircmpwn/hare.vim
      8 
      9 if exists('g:current_compiler')
     10   finish
     11 endif
     12 g:current_compiler = 'hare'
     13 
     14 if filereadable('Makefile') || filereadable('makefile')
     15   CompilerSet makeprg=make
     16 else
     17   const makeprg = 'hare build ' .. get(g:, 'hare_makeprg_params', '-q')
     18   execute 'CompilerSet makeprg=' .. escape(makeprg, ' "\|')
     19 endif
     20 
     21 CompilerSet errorformat=
     22   \%E%o:%l:%v:\ error:\ %m,
     23   \%E%o:%l:%v:\ syntax\ error:\ %m,
     24   \%E%o:%l:%v:\ %\\%%(unexpected\ name\ %\\)%\\@=%m,
     25   \%C,%C\ %.%#,%C%l\ %.%#,
     26   \%trror:\ %o:\ %\\%%(%\\h%\\w%\\+%\\%%(::%\\h%\\w%\\+%\\)%#:\ %\\)%\\@=%m,
     27   \%trror:\ %m,
     28   \%+EAbort:\ %m%>,
     29   \%C%.%#,
     30   \%-G%.%#
     31 
     32 augroup HareQuickFix
     33   autocmd!
     34   autocmd QuickFixCmdPost make hare#QuickFixPaths()
     35   autocmd QuickFixCmdPost lmake hare#QuickFixPaths()
     36 augroup END
     37 
     38 # vim: et sts=2 sw=2 ts=8 tw=80