From ae1a128d84f89b0e02eb85d1cf1e74f12fcdef17 Mon Sep 17 00:00:00 2001 From: Gracjan Polak Date: Thu, 16 Apr 2015 16:20:29 +0200 Subject: [PATCH] Add limit to looking-back to make Emacs 25 happy. --- haskell.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/haskell.el b/haskell.el index bd3bc4df1..9d542b5f2 100644 --- a/haskell.el +++ b/haskell.el @@ -67,7 +67,8 @@ "import" (1+ space) (? "qualified" (1+ space)) (group (? (char upper) ; modid - (* (char alnum ?' ?.)))))) + (* (char alnum ?' ?.))))) + (line-beginning-position)) (let ((text (match-string-no-properties 0)) (start (match-beginning 1)) (end (match-end 1)))