view runtime/compiler/jsonlint.vim @ 32499:0d2b75395eda v9.0.1581

patch 9.0.1581: translation does not work for plural argument Commit: https://github.com/vim/vim/commit/a1d5f9f33c68d06475406d6f44d307d5e01adc01 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 27 13:40:11 2023 +0100 patch 9.0.1581: translation does not work for plural argument Problem: Translation does not work for plural argument. Solution: Use PLURAL_MSG() for errors and with xgettext. (closes https://github.com/vim/vim/issues/12443)
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 May 2023 14:45:04 +0200
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