Cleanup.
This commit is contained in:
parent
491f5a9e9b
commit
69951dfe6e
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
"============================================================================
|
"============================================================================
|
||||||
"File: hss.vim
|
"File: hss.vim
|
||||||
"Description: Syntax checking plugin for syntastic.vim
|
"Description: Syntax checking plugin for syntastic.vim
|
||||||
@ -20,17 +19,10 @@ function! SyntaxCheckers_hss_hss_IsAvailable()
|
|||||||
return executable('hss')
|
return executable('hss')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
if has('win32')
|
|
||||||
let s:dev_null = 'NUL'
|
|
||||||
else
|
|
||||||
let s:dev_null = '/dev/null'
|
|
||||||
endif
|
|
||||||
|
|
||||||
function! SyntaxCheckers_hss_hss_GetLocList()
|
function! SyntaxCheckers_hss_hss_GetLocList()
|
||||||
let makeprg = syntastic#makeprg#build({
|
let makeprg = syntastic#makeprg#build({
|
||||||
\ 'exe': 'hss',
|
\ 'exe': 'hss',
|
||||||
\ 'args' : '-output ' . s:dev_null,
|
\ 'args' : '-output ' . syntastic#util#DevNull(),
|
||||||
\ 'fname': syntastic#util#shescape(expand('%')),
|
|
||||||
\ 'filetype': 'hss',
|
\ 'filetype': 'hss',
|
||||||
\ 'subchecker': 'hss' })
|
\ 'subchecker': 'hss' })
|
||||||
|
|
||||||
@ -38,9 +30,7 @@ function! SyntaxCheckers_hss_hss_GetLocList()
|
|||||||
|
|
||||||
return SyntasticMake({
|
return SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat,
|
\ 'errorformat': errorformat })
|
||||||
\ 'cwd': fnamemodify(expand('%'), ':h') })
|
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user