Skip to content

Commit

Permalink
lispy--read: support clisp special character names
Browse files Browse the repository at this point in the history
  • Loading branch information
RuijieYu authored and abo-abo committed Mar 14, 2023
1 parent 59e25f5 commit fe44efd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lispy.el
Original file line number Diff line number Diff line change
Expand Up @@ -7393,7 +7393,9 @@ See https://clojure.org/guides/weird_characters#_character_literal.")
(lispy--read-replace " *,+" "clojure-commas"))
;; ——— \ char syntax (LISP)————
(goto-char (point-min))
(while (re-search-forward "#\\\\\\(.\\)" nil t)
(while (let ((case-fold-search nil))
;; http://lispworks.com/documentation/HyperSpec/Body/02_ac.htm
(re-search-forward "#\\\\\\(space\\|newline\\|.\\)" nil t))
(unless (lispy--in-string-or-comment-p)
(replace-match (format "(ly-raw lisp-char %S)"
(substring-no-properties
Expand Down

0 comments on commit fe44efd

Please sign in to comment.