redirect output to dev null for syntax checking

This commit is contained in:
Justin Donaldson 2013-07-07 14:36:22 -07:00
parent 5ea175b6c5
commit 491f5a9e9b

View File

@ -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' })