blob: a656223e513f557fe2a23d20ff515862ccec2e6a [file] [log] [blame]
Vito79952b92024-04-26 22:36:20 +02001" Vim compiler file
2" Compiler: jq
3" Maintainer: Vito <vito.blog@gmail.com>
4" Last Change: 2024 Apr 17
5" Upstream: https://github.com/vito-c/jq.vim
6
7if exists('b:current_compiler')
8 finish
9endif
10let b:current_compiler = 'jq'
11
12let s:save_cpoptions = &cpoptions
13set cpoptions&vim
14
15if has('unix')
16 CompilerSet makeprg=jq\ -f\ %:S\ /dev/null
17else
18 CompilerSet makeprg=jq\ -f\ %:S\ nul
19endif
20CompilerSet errorformat=%E%m\ at\ \\<%o\\>\\,\ line\ %l:,
21 \%Z,
22 \%-G%.%#
23
24let &cpoptions = s:save_cpoptions
25unlet s:save_cpoptions