jsonlint.vim 584 B

1234567891011121314151617181920212223242526
  1. " Vim compiler file
  2. " Compiler: JSON Lint
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2019 Jul 10
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "jsonlint"
  9. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  10. command -nargs=* CompilerSet setlocal <args>
  11. endif
  12. let s:cpo_save = &cpo
  13. set cpo&vim
  14. " CompilerSet makeprg=npx\ jsonlint\ --compact\ --quiet
  15. CompilerSet makeprg=jsonlint\ --compact\ --quiet
  16. CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ found:\ %m,
  17. \%-G%.%#
  18. let &cpo = s:cpo_save
  19. unlet s:cpo_save