From 4fac0483e0171680c8175f2972b068ea748c61d8 Mon Sep 17 00:00:00 2001 From: lesguillemets Date: Mon, 10 Oct 2016 00:47:24 +0900 Subject: [PATCH] Treat Suggestions as warnings in quickfix before : |1 col 8 error| Suggestion: Redundant $ after : |1 col 8 warning| Suggestion: Redundant $ --- autoload/ghcmod.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/ghcmod.vim b/autoload/ghcmod.vim index 145c614..ea7fbe8 100644 --- a/autoload/ghcmod.vim +++ b/autoload/ghcmod.vim @@ -108,6 +108,8 @@ function! ghcmod#parse_make(lines, basedir) "{{{ if l:rest =~# '^Warning:' let l:qf.type = 'W' let l:rest = matchstr(l:rest, '^Warning:\s*\zs.*$') + elseif l:rest =~# '^Suggestion:' + let l:qf.type = 'W' elseif l:rest =~# '^Error:' let l:qf.type = 'E' let l:rest = matchstr(l:rest, '^Error:\s*\zs.*$')