Skip to content

Commit 71e5a23

Browse files
committed
Merge pull request #1068 from mrBliss/test-type-role-font-lock
Add test for 'type role' font-lock
2 parents 7854c78 + d32c750 commit 71e5a23

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/haskell-font-lock-tests.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,3 +554,11 @@ if all of its characters have syntax and face. See
554554
("code3" t haskell-definition-face)
555555
("Comment3" t haskell-literate-comment-face))
556556
'literate))
557+
558+
(ert-deftest haskell-type-role ()
559+
"fontify \"role\" after \"type\""
560+
(check-properties
561+
'("type role Ptr representational")
562+
'(("type" "w" haskell-keyword-face)
563+
("role" "w" haskell-keyword-face)
564+
("Ptr" "w" haskell-constructor-face))))

0 commit comments

Comments
 (0)