diff options
Diffstat (limited to 'mnv/runtime/compiler/jq.mnv')
| -rw-r--r-- | mnv/runtime/compiler/jq.mnv | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mnv/runtime/compiler/jq.mnv b/mnv/runtime/compiler/jq.mnv new file mode 100644 index 0000000000..cd795fd34b --- /dev/null +++ b/mnv/runtime/compiler/jq.mnv @@ -0,0 +1,25 @@ +" MNV compiler file +" Compiler: jq +" Maintainer: Vito <vito.blog@gmail.com> +" Last Change: 2024 Apr 17 +" Upstream: https://github.com/vito-c/jq.mnv + +if exists('b:current_compiler') + finish +endif +let b:current_compiler = 'jq' + +let s:save_cpoptions = &cpoptions +set cpoptions&mnv + +if has('unix') + CompilerSet makeprg=jq\ -f\ %:S\ /dev/null +else + CompilerSet makeprg=jq\ -f\ %:S\ nul +endif +CompilerSet errorformat=%E%m\ at\ \\<%o\\>\\,\ line\ %l:, + \%Z, + \%-G%.%# + +let &cpoptions = s:save_cpoptions +unlet s:save_cpoptions |
