Cleanup: avrgcc checker.

This commit is contained in:
LCD 47 2014-02-06 19:18:38 +02:00
parent 42605af07a
commit 799ea79bcb

View File

@ -15,8 +15,8 @@ if exists('g:loaded_syntastic_c_avrgcc_checker')
endif
let g:loaded_syntastic_c_avrgcc_checker = 1
if !exists('g:syntastic_avr_config_file')
let g:syntastic_avr_config_file = '.syntastic_avr_config'
if !exists('g:syntastic_avrgcc_config_file')
let g:syntastic_avrgcc_config_file = '.syntastic_avrgcc_config'
endif
let s:save_cpo = &cpo
@ -24,7 +24,7 @@ set cpo&vim
function! SyntaxCheckers_c_avrgcc_GetLocList() dict
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' })
let errorformat =
@ -43,7 +43,7 @@ function! SyntaxCheckers_c_avrgcc_GetLocList() dict
return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat,
\ 'postprocess': ['compressWhitespace'],})
\ 'postprocess': ['compressWhitespace'] })
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({