Skip to content

Commit 6c0f042

Browse files
committed
Add type highlight test
1 parent 9cc4a13 commit 6c0f042

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/purescript-font-lock-tests.el

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,19 @@ still comment
138138
-}
139139
"
140140
'((1 70 font-lock-comment-face))))
141+
142+
(ert-deftest type-with-typenames-and--> ()
143+
(purescript-test-ranges
144+
"type Component props = Effect (props -> JSX)"
145+
'((1 4 font-lock-keyword-face)
146+
(5 5 nil)
147+
(6 14 font-lock-type-face)
148+
(15 21 nil)
149+
(22 22 font-lock-variable-name-face)
150+
(23 23 nil)
151+
(24 29 font-lock-type-face)
152+
(30 37 nil)
153+
(38 39 font-lock-variable-name-face)
154+
(40 40 nil)
155+
(41 43 font-lock-type-face)
156+
(44 45 nil))))

0 commit comments

Comments
 (0)