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))))