Skip to content

Commit da690e9

Browse files
committed
Merge pull request #566 from gracjan/pr-three-backslashes
Stop overreacting when seeing three backslashes.
2 parents b4babdd + f3a719d commit da690e9

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
@@ -385,8 +385,8 @@ that should be commented under LaTeX-style literate scripts."
385385
;; This still gets fooled with "'"'"'"'"'"', but ... oh well.
386386
("\\Sw\\('\\)\\([^\\'\n]\\|\\\\.[^\\'\n \"}]*\\)\\('\\)" (1 "|") (3 "|"))
387387
;; Deal with instances of `--' which don't form a comment
388-
("[!#$%&*+./:<=>?@^|~\\-]\\{3,\\}" (0 (cond ((numberp (nth 4 (syntax-ppss)))
389-
;; There are no such instances inside nestable comments
388+
("[!#$%&*+./:<=>?@^|~\\-]\\{3,\\}" (0 (cond ((or (nth 3 (syntax-ppss)) (numberp (nth 4 (syntax-ppss))))
389+
;; There are no such instances inside nestable comments or strings
390390
nil)
391391
((string-match "\\`-*\\'" (match-string 0))
392392
;; Sequence of hyphens. Do nothing in

0 commit comments

Comments
 (0)