Skip to content

Commit 09c4e78

Browse files
committed
Merge pull request #540 from gracjan/pr-double-dash-comments
Detect advanced -- comments.
2 parents 088e3c8 + 8703102 commit 09c4e78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

haskell-font-lock.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,14 +455,14 @@ that should be commented under LaTeX-style literate scripts."
455455
;; It's probably not worth the trouble, tho.
456456
;; ("^[ \t]*\\(\\\\\\)" (1 "."))
457457
;; Deal with instances of `--' which don't form a comment
458-
("\\s_\\{3,\\}" (0 (cond ((numberp (nth 4 (syntax-ppss)))
458+
("\\s.\\{3,\\}" (0 (cond ((numberp (nth 4 (syntax-ppss)))
459459
;; There are no such instances inside nestable comments
460460
nil)
461461
((string-match "\\`-*\\'" (match-string 0))
462462
;; Sequence of hyphens. Do nothing in
463463
;; case of things like `{---'.
464464
nil)
465-
(t "_")))) ; other symbol sequence
465+
(t ".")))) ; other symbol sequence
466466
))
467467

468468
(defconst haskell-bird-syntactic-keywords

0 commit comments

Comments
 (0)