aboutsummaryrefslogtreecommitdiff
path: root/runtime/compiler/jsonlint.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-29 20:43:22 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-29 21:08:09 -0400
commit9f54d125d2b601029cb2b6dbffcc361c2e8fb974 (patch)
tree6670d7d22bb7808feec25f08ee155b0eedb7f531 /runtime/compiler/jsonlint.vim
parent09f3e62bc623dd3cbcbc708b019b55a8b9449de7 (diff)
downloadrneovim-9f54d125d2b601029cb2b6dbffcc361c2e8fb974.tar.gz
rneovim-9f54d125d2b601029cb2b6dbffcc361c2e8fb974.tar.bz2
rneovim-9f54d125d2b601029cb2b6dbffcc361c2e8fb974.zip
vim-patch:3d1cde8a2f28
Update runtime files. https://github.com/vim/vim/commit/3d1cde8a2f28dce2c82d2b2b4c5e35e6662030e0
Diffstat (limited to 'runtime/compiler/jsonlint.vim')
-rw-r--r--runtime/compiler/jsonlint.vim25
1 files changed, 25 insertions, 0 deletions
diff --git a/runtime/compiler/jsonlint.vim b/runtime/compiler/jsonlint.vim
new file mode 100644
index 0000000000..5466dcc7f4
--- /dev/null
+++ b/runtime/compiler/jsonlint.vim
@@ -0,0 +1,25 @@
+" 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