Minor cleanup.
This commit is contained in:
parent
b8aef009b1
commit
d3130d6b56
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.6.0-174'
|
let g:_SYNTASTIC_VERSION = '3.6.0-175'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -29,9 +29,9 @@ function! SyntaxCheckers_rst_sphinx_GetLocList() dict
|
|||||||
|
|
||||||
let srcdir = syntastic#util#var('rst_sphinx_source_dir')
|
let srcdir = syntastic#util#var('rst_sphinx_source_dir')
|
||||||
call self.log('g:syntastic_rst_sphinx_source_dir =', srcdir)
|
call self.log('g:syntastic_rst_sphinx_source_dir =', srcdir)
|
||||||
if srcdir == ''
|
if srcdir ==# ''
|
||||||
let config = syntastic#util#findFileInParent('conf.py', expand('%:p:h', 1))
|
let config = syntastic#util#findFileInParent('conf.py', expand('%:p:h', 1))
|
||||||
if config == '' || !filereadable(config)
|
if config ==# '' || !filereadable(config)
|
||||||
call self.log('conf.py file not found')
|
call self.log('conf.py file not found')
|
||||||
return []
|
return []
|
||||||
endif
|
endif
|
||||||
@ -40,9 +40,9 @@ function! SyntaxCheckers_rst_sphinx_GetLocList() dict
|
|||||||
|
|
||||||
let confdir = syntastic#util#var('rst_sphinx_config_dir')
|
let confdir = syntastic#util#var('rst_sphinx_config_dir')
|
||||||
call self.log('g:syntastic_rst_sphinx_config_dir =', confdir)
|
call self.log('g:syntastic_rst_sphinx_config_dir =', confdir)
|
||||||
if confdir == ''
|
if confdir ==# ''
|
||||||
let config = syntastic#util#findFileInParent('conf.py', expand('%:p:h', 1))
|
let config = syntastic#util#findFileInParent('conf.py', expand('%:p:h', 1))
|
||||||
let confdir = (config != '' && filereadable(config)) ? fnamemodify(config, ':p:h') : srcdir
|
let confdir = (config !=# '' && filereadable(config)) ? fnamemodify(config, ':p:h') : srcdir
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let makeprg = self.makeprgBuild({
|
let makeprg = self.makeprgBuild({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user