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.")
218218
219219(defconst haskell-lexeme--char-literal-rx
220220 (rx-to-string `(: (group " '" )
221- (| (: (group (regexp " [[:alpha:]_([]" )) (group " '" )) ; exactly one char
221+ (| (: (group (regexp " [[:alpha:]_: ([]" )) (group " '" )) ; exactly one char
222222 (: (group (| (regexp " \\\\ [^\n ][^'\n ]*" ) ; allow quote just after first backslash
223223 (regexp " [^[:alpha:]_:(['\n ][^'\n ]*" )))
224224 (| (group " '" ) " \n " (regexp " \\ '" ))))))
Original file line number Diff line number Diff line change @@ -184,6 +184,16 @@ buffer."
184184 '(" 'D'" )
185185 '(" 'D'" )))
186186
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+
187197(ert-deftest haskell-lexeme-string-literal-1 ()
188198 (check-lexemes
189199 '(" \" \\ \\ \" " )
You can’t perform that action at this time.
0 commit comments