Browse files

Better regexp to match module name in inf-haskell

  • Loading branch information...
1 parent 75777f2 commit 21bcba1e08308291c5147a480e96d06dc5be3ac0 @gracjan gracjan committed May 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 inf-haskell.el
@@ -303,7 +303,7 @@ The process PROC should be associated to a comint buffer."
(goto-char (point-min))
(let ((case-fold-search nil))
(when (re-search-forward
- "^module[ \t]+\\([^- \t\n]+\\.[^- \t\n]+\\)[ \t]+" nil t)
+ "^module[ \t]+\\(\\(?:\\sw\\|[.]\\)+\\)" nil t)
(let* ((dir default-directory)
(module (match-string 1))
(pos 0))

0 comments on commit 21bcba1

Please sign in to comment.