Skip to content

Commit fe44efd

Browse files
RuijieYuabo-abo
authored andcommitted
lispy--read: support clisp special character names
Fixes #641 Fixes #642
1 parent 59e25f5 commit fe44efd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lispy.el

+3-1
Original file line numberDiff line numberDiff line change
@@ -7393,7 +7393,9 @@ See https://clojure.org/guides/weird_characters#_character_literal.")
73937393
(lispy--read-replace " *,+" "clojure-commas"))
73947394
;; ——— \ char syntax (LISP)————
73957395
(goto-char (point-min))
7396-
(while (re-search-forward "#\\\\\\(.\\)" nil t)
7396+
(while (let ((case-fold-search nil))
7397+
;; http://lispworks.com/documentation/HyperSpec/Body/02_ac.htm
7398+
(re-search-forward "#\\\\\\(space\\|newline\\|.\\)" nil t))
73977399
(unless (lispy--in-string-or-comment-p)
73987400
(replace-match (format "(ly-raw lisp-char %S)"
73997401
(substring-no-properties

0 commit comments

Comments
 (0)