summaryrefslogtreecommitdiffstats
path: root/runtime/compiler/jq.vim
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 19:06:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 19:06:16 +0000
commit1585b6dc94be23cda47cdeac939c2c74a8bd4c37 (patch)
tree745848c44400b14f40b4fb05aaf634578a525020 /runtime/compiler/jq.vim
parentReleasing progress-linux version 2:9.1.0374-1~progress7.99u1. (diff)
downloadvim-1585b6dc94be23cda47cdeac939c2c74a8bd4c37.tar.xz
vim-1585b6dc94be23cda47cdeac939c2c74a8bd4c37.zip
Merging upstream version 2:9.1.0377.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'runtime/compiler/jq.vim')
-rw-r--r--runtime/compiler/jq.vim25
1 files changed, 25 insertions, 0 deletions
diff --git a/runtime/compiler/jq.vim b/runtime/compiler/jq.vim
new file mode 100644
index 0000000..a656223
--- /dev/null
+++ b/runtime/compiler/jq.vim
@@ -0,0 +1,25 @@
+" Vim compiler file
+" Compiler: jq
+" Maintainer: Vito <vito.blog@gmail.com>
+" Last Change: 2024 Apr 17
+" Upstream: https://github.com/vito-c/jq.vim
+
+if exists('b:current_compiler')
+ finish
+endif
+let b:current_compiler = 'jq'
+
+let s:save_cpoptions = &cpoptions
+set cpoptions&vim
+
+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