aboutsummaryrefslogtreecommitdiff
path: root/runtime/compiler
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-04-27 10:31:09 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-04-27 11:01:14 +0200
commit0547347e72c1e345faf7b7d835a806bfb1f59b68 (patch)
tree6fdac0608ab8d92a96922edc06b44ebfba680579 /runtime/compiler
parent435dee74bb3593b778328138dac054f26e2d7396 (diff)
downloadrneovim-0547347e72c1e345faf7b7d835a806bfb1f59b68.tar.gz
rneovim-0547347e72c1e345faf7b7d835a806bfb1f59b68.tar.bz2
rneovim-0547347e72c1e345faf7b7d835a806bfb1f59b68.zip
vim-patch:79952b9c6774
runtime(jq): include syntax, ftplugin and compiler plugin closes: vim/vim#14619 https://github.com/vim/vim/commit/79952b9c6774d30f248a0ecf9ea84318be947fc4 Co-authored-by: Vito <vito.blog@gmail.com>
Diffstat (limited to 'runtime/compiler')
-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 0000000000..a656223e51
--- /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