File tree 2 files changed +24
-2
lines changed
2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ Returns keywords suitable for `font-lock-keywords'."
177
177
; ; record fields or other identifiers.
178
178
(toplevel-keywords
179
179
(rx line-start (zero-or-more whitespace)
180
- (group (or " type" " module " " import" " data" " class" " newtype"
180
+ (group (or " type" " import" " data" " class" " newtype"
181
181
" instance" " derive" )
182
182
word-end)))
183
183
; ; Reserved identifiers
@@ -186,7 +186,7 @@ Returns keywords suitable for `font-lock-keywords'."
186
186
; ; spec syntax, but they are not reserved.
187
187
; ; `_' can go in here since it has temporary word syntax.
188
188
(regexp-opt
189
- '(" ado" " case" " do" " else" " if" " in" " infix"
189
+ '(" ado" " case" " do" " else" " if" " in" " infix" " module "
190
190
" infixl" " infixr" " let" " of" " then" " where" " _" ) 'words ))
191
191
192
192
; ; Top-level declarations
Original file line number Diff line number Diff line change @@ -169,3 +169,25 @@ noncomment
169
169
(40 40 nil )
170
170
(41 43 font-lock-type-face )
171
171
(44 45 nil ))))
172
+
173
+ (ert-deftest module-in-different-locations ()
174
+ (purescript-test-ranges
175
+ " module React.Basic.Hooks ( Component, module React.Basic
176
+ , module Data.Tuple.Nested ) where
177
+ "
178
+ '((1 6 font-lock-keyword-face )
179
+ (7 7 nil )
180
+ (8 24 font-lock-type-face )
181
+ (25 27 nil )
182
+ (28 36 font-lock-type-face )
183
+ (37 38 nil )
184
+ (39 44 font-lock-keyword-face )
185
+ (45 45 nil )
186
+ (46 56 font-lock-type-face )
187
+ (57 84 nil )
188
+ (85 90 font-lock-keyword-face )
189
+ (91 91 nil )
190
+ (92 108 font-lock-type-face )
191
+ (109 111 nil )
192
+ (112 116 font-lock-keyword-face )
193
+ (117 117 nil ))))
You can’t perform that action at this time.
0 commit comments