view runtime/compiler/jsonlint.vim @ 27885:dd804c17e7e3 v8.2.4468

patch 8.2.4468: Coverity warns for uninitialized struct member Commit: https://github.com/vim/vim/commit/68afde4c9b4379b757cc72112c33df9cf221eba8 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 25 20:48:26 2022 +0000 patch 8.2.4468: Coverity warns for uninitialized struct member Problem: Coverity warns for uninitialized struct member. Solution: Set color.index to zero.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Feb 2022 22:00: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