Skip to content

Commit

Permalink
Merge pull request #1066 from gracjan/pr-type-role
Browse files Browse the repository at this point in the history
Add type role to font lock
  • Loading branch information
gracjan committed Jan 12, 2016
2 parents 0497f66 + 0763824 commit 7854c78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions haskell-font-lock.el
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ Returns keywords suitable for `font-lock-keywords'."
(1 'haskell-keyword-face nil lax)
(2 'haskell-keyword-face nil lax))

;; Special case for `type role'
;; `role' is only reserved in this context.
("\\<\\(type\\)[ \t]+\\(role\\>\\)"
(1 'haskell-keyword-face nil lax)
(2 'haskell-keyword-face nil lax))

;; Toplevel Declarations.
;; Place them *before* generic id-and-op highlighting.
(,topdecl-var (1 'haskell-definition-face))
Expand Down

0 comments on commit 7854c78

Please sign in to comment.