Skip to content

Commit d8a066f

Browse files
committed
Test 'type instance' font-locking
1 parent ad73e8f commit d8a066f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/haskell-font-lock-tests.el

+9
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,15 @@ if all of its characters have syntax and face. See
555555
("Comment3" t haskell-literate-comment-face))
556556
'literate))
557557

558+
(ert-deftest haskell-type-instance ()
559+
"Fontify \"instance\" after \"type\""
560+
;; Note that instance is always fontified, because it is a keyword even
561+
;; without 'type' before it.
562+
(check-properties
563+
'("type instance Foo Int = Char")
564+
'(("type" "w" haskell-keyword-face)
565+
("instance" "w" haskell-keyword-face))))
566+
558567
(ert-deftest haskell-type-family ()
559568
"Fontify \"family\" after \"type\""
560569
(check-properties

0 commit comments

Comments
 (0)