Checker rst2pseudoxml: allow messages without line numbers. (@maxwell-k)
This commit is contained in:
parent
0bdf149d5f
commit
c3882ef5b0
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.7.0-85'
|
let g:_SYNTASTIC_VERSION = '3.7.0-86'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -29,10 +29,8 @@ function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() dict
|
|||||||
\ 'tail': syntastic#util#DevNull() })
|
\ 'tail': syntastic#util#DevNull() })
|
||||||
|
|
||||||
let errorformat =
|
let errorformat =
|
||||||
\ '%f:%l: (%tNFO/1) %m,'.
|
\ '%f:%l: (%t%\w%\+/%\d%\+) %m,'.
|
||||||
\ '%f:%l: (%tARNING/2) %m,'.
|
\ '%f:: (%t%\w%\+/%\d%\+) %m,'.
|
||||||
\ '%f:%l: (%tRROR/3) %m,'.
|
|
||||||
\ '%f:%l: (%tEVERE/4) %m,'.
|
|
||||||
\ '%-G%.%#'
|
\ '%-G%.%#'
|
||||||
|
|
||||||
let loclist = SyntasticMake({
|
let loclist = SyntasticMake({
|
||||||
@ -40,11 +38,11 @@ function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() dict
|
|||||||
\ 'errorformat': errorformat })
|
\ 'errorformat': errorformat })
|
||||||
|
|
||||||
for e in loclist
|
for e in loclist
|
||||||
if e['type'] ==? 'S'
|
if e['type'] ==? 'I'
|
||||||
let e['type'] = 'E'
|
|
||||||
elseif e['type'] ==? 'I'
|
|
||||||
let e['type'] = 'W'
|
let e['type'] = 'W'
|
||||||
let e['subtype'] = 'Style'
|
let e['subtype'] = 'Style'
|
||||||
|
else
|
||||||
|
let e['type'] = 'E'
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user