view runtime/compiler/jsonlint.vim @ 32184:f1602cf7022f v9.0.1423

patch 9.0.1423: WebAssembly Interface Type files are not recognized Commit: https://github.com/vim/vim/commit/890c77203637626b1005db818667084d11e653e7 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Tue Mar 21 22:03:15 2023 +0000 patch 9.0.1423: WebAssembly Interface Type files are not recognized Problem: WebAssembly Interface Type files are not recognized. Solution: Add a pattern for WIT files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12173)
author Bram Moolenaar <Bram@vim.org>
date Tue, 21 Mar 2023 23:15:04 +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