Skip to content

Commit 58fce7c

Browse files
committed
Add type highlight test
1 parent 3156840 commit 58fce7c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/purescript-font-lock-tests.el

+16
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,19 @@ noncomment
153153
'((1 6 font-lock-comment-face)
154154
(7 10 font-lock-comment-delimiter-face)
155155
(11 21 nil))))
156+
157+
(ert-deftest type-with-typenames-and--> ()
158+
(purescript-test-ranges
159+
"type Component props = Effect (props -> JSX)"
160+
'((1 4 font-lock-keyword-face)
161+
(5 5 nil)
162+
(6 14 font-lock-type-face)
163+
(15 21 nil)
164+
(22 22 font-lock-variable-name-face)
165+
(23 23 nil)
166+
(24 29 font-lock-type-face)
167+
(30 37 nil)
168+
(38 39 font-lock-variable-name-face)
169+
(40 40 nil)
170+
(41 43 font-lock-type-face)
171+
(44 45 nil))))

0 commit comments

Comments
 (0)