diff --git a/haskell-font-lock.el b/haskell-font-lock.el index 373b3c0ed..37a42756a 100644 --- a/haskell-font-lock.el +++ b/haskell-font-lock.el @@ -392,7 +392,7 @@ Returns keywords suitable for `font-lock-keywords'." (,reservedsym 1 haskell-operator-face) ;; Special case for `as', `hiding', `safe' and `qualified', which are ;; keywords in import statements but are not otherwise reserved. - ("\\\\)[ \t]*\\)?\\(?:\\(qualified\\>\\)[ \t]*\\)?[^ \t\n()]+[ \t]*\\(?:\\(\\\\)[ \t]*[^ \t\n()]+[ \t]*\\)?\\(\\\\)?" + ("\\\\)[ \t]*\\)?\\(?:\\(qualified\\>\\)[ \t]*\\)?\\(?:\"[^\"]*\"[\t ]*\\)?[^ \t\n()]+[ \t]*\\(?:\\(\\\\)[ \t]*[^ \t\n()]+[ \t]*\\)?\\(\\\\)?" (1 haskell-keyword-face nil lax) (2 haskell-keyword-face nil lax) (3 haskell-keyword-face nil lax)