Checker solc: more cleanup.

This commit is contained in:
LCD 47 2016-08-15 23:22:28 +03:00
parent 28f61a6f59
commit 29d76d58e3
2 changed files with 10 additions and 10 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START lockvar! g:_SYNTASTIC_START
endif endif
let g:_SYNTASTIC_VERSION = '3.7.0-187' let g:_SYNTASTIC_VERSION = '3.7.0-188'
lockvar g:_SYNTASTIC_VERSION lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1 " Sanity checks {{{1

View File

@ -7,30 +7,30 @@
" it and/or modify it under the terms of the Do What The Fuck You " it and/or modify it under the terms of the Do What The Fuck You
" Want To Public License, Version 2, as published by Sam Hocevar. " Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
"
"============================================================================ "============================================================================
if exists('g:loaded_syntastic_solidity_solc_checker') if exists('g:loaded_syntastic_solidity_solc_checker')
finish finish
endif endif
let g:loaded_syntastic_solidity_solc_checker = 1 let g:loaded_syntastic_solidity_solc_checker = 1
let s:save_cpo = &cpo let s:save_cpo = &cpo
set cpo&vim set cpo&vim
function! SyntaxCheckers_solidity_solc_GetLocList() dict function! SyntaxCheckers_solidity_solc_GetLocList() dict
let makeprg = self.makeprgBuild({}) let makeprg = self.makeprgBuild({})
let errorformat = '%f:%l:%c: Error: %m' LET ERRORformat = '%f:%l:%c: %trror: %m'
return SyntasticMake({ return SyntasticMake({
\ 'makeprg': makeprg, \ 'makeprg': makeprg,
\ 'errorformat': errorformat }) \ 'errorformat': errorformat })
endfunction endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'solidity', \ 'filetype': 'solidity',
\ 'name': 'solc' }) \ 'name': 'solc'})
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo unlet s:save_cpo