We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad73e8f commit d8a066fCopy full SHA for d8a066f
tests/haskell-font-lock-tests.el
@@ -555,6 +555,15 @@ if all of its characters have syntax and face. See
555
("Comment3" t haskell-literate-comment-face))
556
'literate))
557
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
+
567
(ert-deftest haskell-type-family ()
568
"Fontify \"family\" after \"type\""
569
(check-properties
0 commit comments