File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,8 @@ Returns keywords suitable for `font-lock-keywords'."
224
224
225
225
(, reservedsym 1 (symbol-value 'purescript-operator-face ))
226
226
; ; Case for `foreign import'
227
- (" \\ <\\ (foreign\\ )[ \t ]+\\ (import\\ >\\ )"
227
+ (,(rx line-start (0+ whitespace)
228
+ (group " foreign" ) (1+ whitespace) (group " import" ) word-end)
228
229
(1 (symbol-value 'purescript-keyword-face ) nil lax)
229
230
(2 (symbol-value 'purescript-keyword-face ) nil lax))
230
231
Original file line number Diff line number Diff line change @@ -312,6 +312,8 @@ foreign import func3
312
312
foreign import
313
313
func4 :: Effect Int
314
314
foreign import func5 -- invalid indentation, but allowed in other context
315
+ invalid_dont_highlight foreign import func6
316
+ foreign importinvalid
315
317
"
316
318
'((1 7 font-lock-keyword-face )
317
319
(8 8 nil )
@@ -348,4 +350,8 @@ foreign import
348
350
(120 125 font-lock-keyword-face )
349
351
(126 132 nil )
350
352
(133 135 font-lock-comment-delimiter-face )
351
- (136 185 font-lock-comment-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 ))))
You can’t perform that action at this time.
0 commit comments