redirect output to dev null for syntax checking
This commit is contained in:
parent
5ea175b6c5
commit
491f5a9e9b
@ -20,10 +20,16 @@ function! SyntaxCheckers_hss_hss_IsAvailable()
|
||||
return executable('hss')
|
||||
endfunction
|
||||
|
||||
if has('win32')
|
||||
let s:dev_null = 'NUL'
|
||||
else
|
||||
let s:dev_null = '/dev/null'
|
||||
endif
|
||||
|
||||
function! SyntaxCheckers_hss_hss_GetLocList()
|
||||
let makeprg = syntastic#makeprg#build({
|
||||
\ 'exe': 'hss',
|
||||
\ 'args' : '-output /dev/null',
|
||||
\ 'args' : '-output ' . s:dev_null,
|
||||
\ 'fname': syntastic#util#shescape(expand('%')),
|
||||
\ 'filetype': 'hss',
|
||||
\ 'subchecker': 'hss' })
|
||||
|
Loading…
x
Reference in New Issue
Block a user