blob: 865591cd2bb5f4ec02c0faf41bf9034c36f2279e (
plain) (
blame)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 | " Vim compiler file
" Compiler:	JSHint
" Maintainer:	Doug Kearns <dougkearns@gmail.com>
" Last Change:	2019 Jul 10
if exists("current_compiler")
  finish
endif
let current_compiler = "jshint"
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\ jshint\ --verbose
CompilerSet makeprg=jshint\ --verbose
CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %m\ (%t%n),
		       \%-G%.%#
let &cpo = s:cpo_save
unlet s:cpo_save
 |