We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71e5a23 commit 0d71b39Copy full SHA for 0d71b39
tests/haskell-font-lock-tests.el
@@ -556,9 +556,16 @@ if all of its characters have syntax and face. See
556
'literate))
557
558
(ert-deftest haskell-type-role ()
559
- "fontify \"role\" after \"type\""
+ "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))))
565
+
566
+(ert-deftest haskell-no-type-role ()
567
+ "Don't fontify \"role\" when not after \"type\""
568
+ (check-properties
569
+ '("foo role = 3")
570
+ '(("foo" "w" haskell-definition-face)
571
+ ("role" "w" nil))))
0 commit comments