diff --git a/elisp/ghc-check.el b/elisp/ghc-check.el index 6b3dbeb..5e6d96c 100644 --- a/elisp/ghc-check.el +++ b/elisp/ghc-check.el @@ -94,7 +94,7 @@ (forward-line -1) (when (looking-at "^\\(OK\\|NG\\)$") (goto-char (point-min)) - (let ((regex "^\\(.*\\):\\([0-9]+\\):\\([0-9]+\\): *\\(.+\\)") + (let ((regex "^\\([^\n\0]*\\):\\([0-9]+\\):\\([0-9]+\\): *\\(.+\\)") info infos) (while (re-search-forward regex nil t) (setq info (ghc-make-hilit-info