Rst2pseudoxml: minor adjustment of error levels.

This commit is contained in:
LCD 47 2013-07-17 14:55:38 +03:00
parent 366360dcc1
commit d8d8a300d7

View File

@ -31,15 +31,26 @@ function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList()
\ 'subchecker': 'rst2pseudoxml' }) \ 'subchecker': 'rst2pseudoxml' })
let errorformat = let errorformat =
\ '%f:%l:\ (%tNFO/1)\ %m,'. \ '%f:%l: (%tNFO/1) %m,'.
\ '%f:%l:\ (%tARNING/2)\ %m,'. \ '%f:%l: (%tARNING/2) %m,'.
\ '%f:%l:\ (%tRROR/3)\ %m,'. \ '%f:%l: (%tRROR/3) %m,'.
\ '%f:%l:\ (%tEVERE/4)\ %m,'. \ '%f:%l: (%tEVERE/4) %m,'.
\ '%-G%.%#' \ '%-G%.%#'
return SyntasticMake({ let loclist = SyntasticMake({
\ 'makeprg': makeprg, \ 'makeprg': makeprg,
\ 'errorformat': errorformat }) \ 'errorformat': errorformat })
for n in range(len(loclist))
if loclist[n]['type'] ==? 'S'
let loclist[n]['type'] = 'E'
elseif loclist[n]['type'] ==? 'I'
let loclist[n]['type'] = 'W'
let loclist[n]['subtype'] = 'Style'
endif
endfor
return loclist
endfunction endfunction
function s:exe() function s:exe()