view runtime/compiler/jq.vim @ 35058:f8185637a051

runtime(jq): include syntax, ftplugin and compiler plugin Commit: https://github.com/vim/vim/commit/79952b9c6774d30f248a0ecf9ea84318be947fc4 Author: Vito <vito.blog@gmail.com> Date: Fri Apr 26 22:36:20 2024 +0200 runtime(jq): include syntax, ftplugin and compiler plugin closes: https://github.com/vim/vim/issues/14619 Signed-off-by: Vito <vito.blog@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 26 Apr 2024 22:45:02 +0200
parents
children
line wrap: on
line source

" 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