From fbf7f047d1f3efdae487c756dcdbfe16a5ea030c Mon Sep 17 00:00:00 2001 From: Gracjan Polak Date: Fri, 27 Mar 2015 14:44:56 +0100 Subject: [PATCH] Fix comments and comma/semicolon. --- haskell-font-lock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haskell-font-lock.el b/haskell-font-lock.el index cfe26b3a3..ca4e4e135 100644 --- a/haskell-font-lock.el +++ b/haskell-font-lock.el @@ -450,7 +450,7 @@ that should be commented under LaTeX-style literate scripts." ;; This still gets fooled with "'"'"'"'"'"', but ... oh well. ("\\Sw\\('\\)\\([^\\'\n]\\|\\\\.[^\\'\n \"}]*\\)\\('\\)" (1 "|") (3 "|")) ;; Deal with instances of `--' which don't form a comment - ("\\s.\\{3,\\}" (0 (cond ((numberp (nth 4 (syntax-ppss))) + ("[!#$%&*+./:<=>?@^|~\\-]\\{3,\\}" (0 (cond ((numberp (nth 4 (syntax-ppss))) ;; There are no such instances inside nestable comments nil) ((string-match "\\`-*\\'" (match-string 0))