view runtime/compiler/jsonlint.vim @ 23592:2322b643e329 v8.2.2338

patch 8.2.2338: Vim9: no error if using job_info() result wrongly Commit: https://github.com/vim/vim/commit/64ed4d4398e92ac56a9bbd66d5ec992dd4c335f7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 12 21:22:31 2021 +0100 patch 8.2.2338: Vim9: no error if using job_info() result wrongly Problem: Vim9: no error if using job_info() result wrongly. Solution: Adjust return type on number of arguments. (closes https://github.com/vim/vim/issues/7667)
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Jan 2021 21:30:03 +0100
parents 0db0640e16e0
children e1df51f68736
line wrap: on
line source

" Vim compiler file
" Compiler:	JSON Lint
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2019 Jul 10

if exists("current_compiler")
  finish
endif
let current_compiler = "jsonlint"

if exists(":CompilerSet") != 2		" older Vim always used :setlocal
  command -nargs=* CompilerSet setlocal <args>
endif

let s:cpo_save = &cpo
set cpo&vim

" CompilerSet makeprg=npx\ jsonlint\ --compact\ --quiet

CompilerSet makeprg=jsonlint\ --compact\ --quiet
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ found:\ %m,
		       \%-G%.%#

let &cpo = s:cpo_save
unlet s:cpo_save