Errors does not have "Error" prefix.

This commit is contained in:
Kazu Yamamoto 2014-03-20 18:15:51 +09:00
parent 114631f581
commit 9b629a0afb

View File

@ -147,9 +147,9 @@
(overlay-put ovl 'ghc-check t)
(overlay-put ovl 'ghc-file file)
(overlay-put ovl 'ghc-msg msg) ;; should be list
(let ((face (if (string-match "^Error" msg)
'ghc-face-error
'ghc-face-warn)))
(let ((face (if (string-match "^Warning" msg)
'ghc-face-warn
'ghc-face-error)))
(overlay-put ovl 'face face)))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;