Skip to content

Commit 7854c78

Browse files
committed
Merge pull request #1066 from gracjan/pr-type-role
Add type role to font lock
2 parents 0497f66 + 0763824 commit 7854c78

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

haskell-font-lock.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,12 @@ Returns keywords suitable for `font-lock-keywords'."
289289
(1 'haskell-keyword-face nil lax)
290290
(2 'haskell-keyword-face nil lax))
291291

292+
;; Special case for `type role'
293+
;; `role' is only reserved in this context.
294+
("\\<\\(type\\)[ \t]+\\(role\\>\\)"
295+
(1 'haskell-keyword-face nil lax)
296+
(2 'haskell-keyword-face nil lax))
297+
292298
;; Toplevel Declarations.
293299
;; Place them *before* generic id-and-op highlighting.
294300
(,topdecl-var (1 'haskell-definition-face))

0 commit comments

Comments
 (0)