Skip to content
Browse files

Make haskell-ident-at-point less sensitive to WS

  • Loading branch information...
1 parent 2b44d74 commit 8eaba6ca9f9c7cecf3f075198438652b529a9643 @jwiegley jwiegley committed Aug 9, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 haskell-mode.el
4 haskell-mode.el
@@ -351,6 +351,10 @@ be set to the preferred literate style."
"Return the identifier under point, or nil if none found.
May return a qualified name."
+ ;; Skip whitespace if we're on it. That way, if we're at "map ", we'll
+ ;; see the word "map".
+ (if (eq ? (char-syntax (char-after)))
+ (skip-chars-backward " \t"))
(let ((case-fold-search nil))
(multiple-value-bind (start end)
(if (looking-at "\\s_")

0 comments on commit 8eaba6c

Please sign in to comment.
Something went wrong with that request. Please try again.