From d8d8a300d76f54b5064ba99a58822f3fab38cb35 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Wed, 17 Jul 2013 14:55:38 +0300 Subject: [PATCH] Rst2pseudoxml: minor adjustment of error levels. --- syntax_checkers/rst/rst2pseudoxml.vim | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/syntax_checkers/rst/rst2pseudoxml.vim b/syntax_checkers/rst/rst2pseudoxml.vim index dcdcf062..454b4d85 100644 --- a/syntax_checkers/rst/rst2pseudoxml.vim +++ b/syntax_checkers/rst/rst2pseudoxml.vim @@ -31,15 +31,26 @@ function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() \ 'subchecker': 'rst2pseudoxml' }) let errorformat = - \ '%f:%l:\ (%tNFO/1)\ %m,'. - \ '%f:%l:\ (%tARNING/2)\ %m,'. - \ '%f:%l:\ (%tRROR/3)\ %m,'. - \ '%f:%l:\ (%tEVERE/4)\ %m,'. + \ '%f:%l: (%tNFO/1) %m,'. + \ '%f:%l: (%tARNING/2) %m,'. + \ '%f:%l: (%tRROR/3) %m,'. + \ '%f:%l: (%tEVERE/4) %m,'. \ '%-G%.%#' - return SyntasticMake({ + let loclist = SyntasticMake({ \ 'makeprg': makeprg, \ '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 function s:exe()