File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 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 @@ -154,3 +154,25 @@ still comment
154
154
(40 40 nil )
155
155
(41 43 font-lock-type-face )
156
156
(44 45 nil ))))
157
+
158
+ (ert-deftest module-in-different-locations ()
159
+ (purescript-test-ranges
160
+ " module React.Basic.Hooks ( Component, module React.Basic
161
+ , module Data.Tuple.Nested) where
162
+ "
163
+ '((1 6 font-lock-keyword-face )
164
+ (7 7 nil )
165
+ (8 24 font-lock-type-face )
166
+ (25 27 nil )
167
+ (28 36 font-lock-type-face )
168
+ (37 38 nil )
169
+ (39 44 font-lock-keyword-face )
170
+ (45 45 nil )
171
+ (46 56 font-lock-type-face )
172
+ (57 84 nil )
173
+ (85 90 font-lock-keyword-face )
174
+ (91 91 nil )
175
+ (92 108 font-lock-type-face )
176
+ (109 110 nil )
177
+ (111 115 font-lock-keyword-face )
178
+ (116 116 nil ))))
You can’t perform that action at this time.
0 commit comments