emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/parseclj da89bf82a3 050/185: Allow colons inside symbols


From: ELPA Syncer
Subject: [nongnu] elpa/parseclj da89bf82a3 050/185: Allow colons inside symbols
Date: Tue, 28 Dec 2021 14:05:15 -0500 (EST)

branch: elpa/parseclj
commit da89bf82a3b39d39ed622d946f72d9d9e24ff080
Author: Arne Brasseur <arne@arnebrasseur.net>
Commit: Arne Brasseur <arne@arnebrasseur.net>

    Allow colons inside symbols
    
    Both Clojure and ClojureScript readers, as well as edn.el all allow for 
this.
---
 DESIGN.md  | 1 +
 clj-lex.el | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/DESIGN.md b/DESIGN.md
index f8a44511f5..65d22ae503 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -29,6 +29,7 @@ The data structures available in Emacs are less rich than 
those used by Clojure.
 - Clojure has `nil` and `false`, Emacs only has `nil`.
 - Emacs has no notion of sets
 - Emacs has no date/timestamp type
+- Emacs has no "character" type (characters are represented as numbers)
 - Emacs does not support custom records/types (there is a Common Lisp inspired 
object system, but it implements types on top of regular lists and vectors).
 - Emacs does not support adding metadata to values
 
diff --git a/clj-lex.el b/clj-lex.el
index af07cd40bd..bc12a7b4bc 100644
--- a/clj-lex.el
+++ b/clj-lex.el
@@ -97,7 +97,8 @@ behavior."
 
 (defun clj-lex-symbol-rest? (char)
   (or (clj-lex-symbol-start? char)
-      (clj-lex-digit? char)))
+      (clj-lex-digit? char)
+      (eq ?: char)))
 
 (defun clj-lex-get-symbol-at-point (pos)
   "Return the symbol at point."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]