Skip to content

Commit 75b05bf

Browse files
committed
Fix char regex when only character is :
1 parent 6a70c18 commit 75b05bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haskell-lexeme.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 "\\'"))))))

0 commit comments

Comments
 (0)