We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0497f66 + 0763824 commit 7854c78Copy full SHA for 7854c78
haskell-font-lock.el
@@ -289,6 +289,12 @@ Returns keywords suitable for `font-lock-keywords'."
289
(1 'haskell-keyword-face nil lax)
290
(2 'haskell-keyword-face nil lax))
291
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
+
298
;; Toplevel Declarations.
299
;; Place them *before* generic id-and-op highlighting.
300
(,topdecl-var (1 'haskell-definition-face))
0 commit comments