From fd6cb3ebf9590f236c1c634ad690f728d2096fa8 Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Mon, 28 Jun 2010 14:08:10 +0900 Subject: [PATCH] more specific regex. --- elisp/ghc-comp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elisp/ghc-comp.el b/elisp/ghc-comp.el index b089705..c1f0931 100644 --- a/elisp/ghc-comp.el +++ b/elisp/ghc-comp.el @@ -179,7 +179,7 @@ unloaded modules are loaded") (let ((beg (save-excursion (beginning-of-line) (point))) (regex (save-excursion (beginning-of-line) - (if (looking-at "import") "[ (,`]" "[ (,`.]")))) + (if (looking-at "^import ") "[ (,`]" "[ (,`.]")))) (if (re-search-backward regex beg t) (1+ (point)) beg))))