aboutsummaryrefslogtreecommitdiffstats
path: root/compiler/beancount.vim
blob: b6db2d3643ca64bc7c8cd26a892e08bde29c78be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if exists('g:current_compiler')
    finish
endif
let g:current_compiler = 'beancount'

if exists(':CompilerSet') != 2		" older Vim always used :setlocal
  command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpoptions
set cpoptions-=C

CompilerSet makeprg=bean-check\ %
CompilerSet errorformat=%-G         " Skip blank lines
CompilerSet errorformat+=%f:%l:\ %m  " File:line: message
CompilerSet errorformat+=%-G\ %.%#   " Skip indented lines.

let &cpoptions = s:cpo_save
unlet s:cpo_save