File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ only escape sequences defined in Haskell Report.")
218
218
219
219
(defconst haskell-lexeme--char-literal-rx
220
220
(rx-to-string `(: (group " '" )
221
- (| (: (group (regexp " [[:alpha:]_([]" )) (group " '" )) ; exactly one char
221
+ (| (: (group (regexp " [[:alpha:]_: ([]" )) (group " '" )) ; exactly one char
222
222
(: (group (| (regexp " \\\\ [^\n ][^'\n ]*" ) ; allow quote just after first backslash
223
223
(regexp " [^[:alpha:]_:(['\n ][^'\n ]*" )))
224
224
(| (group " '" ) " \n " (regexp " \\ '" ))))))
Original file line number Diff line number Diff line change @@ -184,6 +184,16 @@ buffer."
184
184
'(" 'D'" )
185
185
'(" 'D'" )))
186
186
187
+ (ert-deftest haskell-lexeme-char-literal-5 ()
188
+ (check-lexemes
189
+ '(" ':'" )
190
+ '(" ':'" )))
191
+
192
+ (ert-deftest haskell-lexeme-char-literal-6 ()
193
+ (check-lexemes
194
+ '(" (':')" )
195
+ '(" (" " ':'" " )" )))
196
+
187
197
(ert-deftest haskell-lexeme-string-literal-1 ()
188
198
(check-lexemes
189
199
'(" \" \\ \\ \" " )
You can’t perform that action at this time.
0 commit comments