Skip to content

Commit e9f4c0f

Browse files
committed
Merge pull request #677 from gracjan/pr-char-literals
Use string delimeter syntax for char literals
2 parents 1d2b01f + b8c3252 commit e9f4c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haskell-font-lock.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ that should be commented under LaTeX-style literate scripts."
328328
;; Beware: do not match something like 's-}' or '\n"+' since the first '
329329
;; might be inside a comment or a string.
330330
;; This still gets fooled with "'"'"'"'"'"', but ... oh well.
331-
("\\Sw\\('\\)\\([^\\'\n]\\|\\\\.[^\\'\n \"}]*\\)\\('\\)" (1 "|") (3 "|"))
331+
("\\Sw\\('\\)\\([^\\'\n]\\|\\\\.[^\\'\n \"}]*\\)\\('\\)" (1 "\"") (3 "\""))
332332
;; Deal with instances of `--' which don't form a comment
333333
("[!#$%&*+./:<=>?@^|~\\-]\\{3,\\}" (0 (cond ((or (nth 3 (syntax-ppss)) (numberp (nth 4 (syntax-ppss))))
334334
;; There are no such instances inside nestable comments or strings

0 commit comments

Comments
 (0)