parse haskell error and warning tags

This commit is contained in:
kongo2002 2011-12-18 21:26:39 +01:00
parent d3ed7b043e
commit fc987cead3

View File

@ -20,13 +20,14 @@ if !executable("ghc-mod")
endif
function! SyntaxCheckers_haskell_GetLocList()
let makeprg =
\ "{ ".
let makeprg =
\ "{ ".
\ "ghc-mod check ". shellescape(expand('%')) . "; " .
\ "ghc-mod lint " . shellescape(expand('%')) . ";" .
\ " }"
let errorformat = '%-G\\s%#,%f:%l:%c:%m,%E%f:%l:%c:,%Z%m,'
let errorformat = '%-G\\s%#,%f:%l:%c:%trror: %m,%f:%l:%c:%tarning: %m,'.
\ '%f:%l:%c: %trror: %m,%f:%l:%c: %tarning: %m,%f:%l:%c:%m,'.
\ '%E%f:%l:%c:,%Z%m,'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction