@@ -303,3 +303,55 @@ derive newtype instance foldableNonEmptyList :: Foldable NonEmptyList
303303 (449 450 font-lock-variable-name-face ) (451 451 nil )
304304 (452 459 font-lock-type-face ) (460 460 nil )
305305 (461 472 font-lock-type-face ) (473 473 nil ))))
306+
307+ (ert-deftest foreign-imports ()
308+ (purescript-test-ranges
309+ " foreign import func2 :: Effect Int
310+ foreign import func3
311+ :: Effect Int
312+ foreign import
313+ func4 :: Effect Int
314+ foreign import func5 -- invalid indentation, but allowed in other context
315+ invalid_dont_highlight foreign import func6
316+ foreign importinvalid
317+ "
318+ '((1 7 font-lock-keyword-face )
319+ (8 8 nil )
320+ (9 14 font-lock-keyword-face )
321+ (15 21 nil )
322+ (22 23 font-lock-variable-name-face )
323+ (24 24 nil )
324+ (25 30 font-lock-type-face )
325+ (31 31 nil )
326+ (32 34 font-lock-type-face )
327+ (35 35 nil )
328+ (36 42 font-lock-keyword-face )
329+ (43 43 nil )
330+ (44 49 font-lock-keyword-face )
331+ (50 58 nil )
332+ (59 60 font-lock-variable-name-face )
333+ (61 61 nil )
334+ (62 67 font-lock-type-face )
335+ (68 68 nil )
336+ (69 71 font-lock-type-face )
337+ (72 72 nil )
338+ (73 79 font-lock-keyword-face )
339+ (80 80 nil )
340+ (81 86 font-lock-keyword-face )
341+ (87 95 nil )
342+ (96 97 font-lock-variable-name-face )
343+ (98 98 nil )
344+ (99 104 font-lock-type-face )
345+ (105 105 nil )
346+ (106 108 font-lock-type-face )
347+ (109 111 nil )
348+ (112 118 font-lock-keyword-face )
349+ (119 119 nil )
350+ (120 125 font-lock-keyword-face )
351+ (126 132 nil )
352+ (133 135 font-lock-comment-delimiter-face )
353+ (136 185 font-lock-comment-face )
354+ (186 207 font-lock-function-name-face )
355+ (208 229 nil )
356+ (230 236 font-lock-function-name-face )
357+ (237 251 nil ))))
0 commit comments