2017-06-16 16:37:37 -04:00
|
|
|
"============================================================================
|
2017-06-18 03:33:06 -04:00
|
|
|
"File: coffee_jshint.vim
|
|
|
|
"Description: Syntax checking plugin for syntastic
|
2017-06-16 16:37:37 -04:00
|
|
|
"Maintainer: John Krauss <john@johnkrauss.com>
|
|
|
|
"License: This program is free software. It comes without any warranty,
|
|
|
|
" to the extent permitted by applicable law. You can redistribute
|
|
|
|
" it and/or modify it under the terms of the Do What The Fuck You
|
|
|
|
" Want To Public License, Version 2, as published by Sam Hocevar.
|
|
|
|
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
|
|
|
"
|
|
|
|
"============================================================================
|
|
|
|
|
|
|
|
if exists('g:loaded_syntastic_coffee_coffee_jshint_checker')
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let g:loaded_syntastic_coffee_coffee_jshint_checker = 1
|
|
|
|
|
|
|
|
let s:save_cpo = &cpo
|
|
|
|
set cpo&vim
|
|
|
|
|
|
|
|
function! SyntaxCheckers_coffee_coffee_jshint_GetLocList() dict
|
|
|
|
let makeprg = self.makeprgBuild({})
|
|
|
|
|
|
|
|
let errorformat =
|
2017-06-18 03:33:06 -04:00
|
|
|
\ '%Q-%\{32\,},' .
|
|
|
|
\ '%E%l:%c: %m,' .
|
|
|
|
\ '%P%f'
|
2017-06-16 16:37:37 -04:00
|
|
|
|
|
|
|
return SyntasticMake({
|
|
|
|
\ 'makeprg': makeprg,
|
|
|
|
\ 'errorformat': errorformat,
|
2017-06-18 03:33:06 -04:00
|
|
|
\ 'returns': [0, 1] })
|
2017-06-16 16:37:37 -04:00
|
|
|
endfunction
|
|
|
|
|
|
|
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
|
|
|
\ 'filetype': 'coffee',
|
|
|
|
\ 'exec': 'coffee-jshint',
|
2017-06-18 03:33:06 -04:00
|
|
|
\ 'name': 'coffee_jshint' })
|
2017-06-16 16:37:37 -04:00
|
|
|
|
|
|
|
let &cpo = s:save_cpo
|
|
|
|
unlet s:save_cpo
|
|
|
|
|
|
|
|
" vim: set sw=4 sts=4 et fdm=marker:
|
|
|
|
|