File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -555,6 +555,27 @@ if all of its characters have syntax and face. See
555
555
(" Comment3" t haskell-literate-comment-face))
556
556
'literate ))
557
557
558
+ (ert-deftest haskell-type-family ()
559
+ " Fontify \" family\" after \" type\" "
560
+ (check-properties
561
+ '(" type family Foo a :: *" )
562
+ '((" type" " w" haskell-keyword-face)
563
+ (" family" " w" haskell-keyword-face))))
564
+
565
+ (ert-deftest haskell-data-family ()
566
+ " Fontify \" family\" after \" data\" "
567
+ (check-properties
568
+ '(" data family Foo a :: *" )
569
+ '((" data" " w" haskell-keyword-face)
570
+ (" family" " w" haskell-keyword-face))))
571
+
572
+ (ert-deftest haskell-no-family ()
573
+ " Don't fontify \" family\" when not after \" type\" or \" data\" "
574
+ (check-properties
575
+ '(" foo family = 10" )
576
+ '((" foo" " w" haskell-definition-face)
577
+ (" family" " w" nil ))))
578
+
558
579
(ert-deftest haskell-type-role ()
559
580
" Fontify \" role\" after \" type\" "
560
581
(check-properties
You can’t perform that action at this time.
0 commit comments