Cleanup: avrgcc checker.
This commit is contained in:
parent
42605af07a
commit
799ea79bcb
@ -15,8 +15,8 @@ if exists('g:loaded_syntastic_c_avrgcc_checker')
|
|||||||
endif
|
endif
|
||||||
let g:loaded_syntastic_c_avrgcc_checker = 1
|
let g:loaded_syntastic_c_avrgcc_checker = 1
|
||||||
|
|
||||||
if !exists('g:syntastic_avr_config_file')
|
if !exists('g:syntastic_avrgcc_config_file')
|
||||||
let g:syntastic_avr_config_file = '.syntastic_avr_config'
|
let g:syntastic_avrgcc_config_file = '.syntastic_avrgcc_config'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
@ -24,7 +24,7 @@ set cpo&vim
|
|||||||
|
|
||||||
function! SyntaxCheckers_c_avrgcc_GetLocList() dict
|
function! SyntaxCheckers_c_avrgcc_GetLocList() dict
|
||||||
let makeprg = self.makeprgBuild({
|
let makeprg = self.makeprgBuild({
|
||||||
\ 'args': syntastic#c#ReadConfig(g:syntastic_avr_config_file),
|
\ 'args_before': syntastic#c#ReadConfig(g:syntastic_avrgcc_config_file),
|
||||||
\ 'args_after': '-x c -fsyntax-only' })
|
\ 'args_after': '-x c -fsyntax-only' })
|
||||||
|
|
||||||
let errorformat =
|
let errorformat =
|
||||||
@ -43,7 +43,7 @@ function! SyntaxCheckers_c_avrgcc_GetLocList() dict
|
|||||||
return SyntasticMake({
|
return SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat,
|
\ 'errorformat': errorformat,
|
||||||
\ 'postprocess': ['compressWhitespace'],})
|
\ 'postprocess': ['compressWhitespace'] })
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user