Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions haskell-decl-scan.el
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,9 @@ there."
(setf fontfaces (list fontfaces)))
(delq nil (mapcar
#'(lambda (f)
(or (eq f 'font-lock-comment-face)
(eq f 'font-lock-comment-delimiter-face)))
(member f '(font-lock-comment-face
font-lock-doc-face
font-lock-comment-delimiter-face)))
fontfaces))))
t
nil))
Expand Down
3 changes: 2 additions & 1 deletion tests/haskell-decl-scan-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"All lines in this buffer should count as comments"
(with-temp-buffer
(haskell-mode)
(insert-lines "" "--hi" " -- hi\t " "" "{-hi-}" " \t{-hi-} ")
(insert-lines "" "--hi" " -- hi\t " "" "{-hi-}" " \t{-hi-} "
"-- | hi" "{-| hi -}")
(font-lock-fontify-buffer)
(goto-char (point-min))

Expand Down