[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/parseclj 46570ce843 060/185: A # can be part of a symbol
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/parseclj 46570ce843 060/185: A # can be part of a symbol |
Date: |
Tue, 28 Dec 2021 14:05:17 -0500 (EST) |
branch: elpa/parseclj
commit 46570ce843b8b427e29912af108a3d5e720d05e3
Author: Arne Brasseur <arne@arnebrasseur.net>
Commit: Arne Brasseur <arne@arnebrasseur.net>
A # can be part of a symbol
---
clj-lex-test.el | 5 +++++
clj-lex.el | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/clj-lex-test.el b/clj-lex-test.el
index d4bbad472b..ca0e1a89c3 100644
--- a/clj-lex-test.el
+++ b/clj-lex-test.el
@@ -80,6 +80,11 @@
(goto-char 1)
(should (equal (clj-lex-next) '((type . :symbol) (form . "-hello-world")
(pos . 1)))))
+ (with-temp-buffer
+ (insert "foo#")
+ (goto-char 1)
+ (should (equal (clj-lex-next) '((type . :symbol) (form . "foo#") (pos .
1)))))
+
(with-temp-buffer
(insert "#inst")
(goto-char 1)
diff --git a/clj-lex.el b/clj-lex.el
index 3e81c34223..16eaa53257 100644
--- a/clj-lex.el
+++ b/clj-lex.el
@@ -133,7 +133,8 @@ behavior."
(defun clj-lex-symbol-rest? (char)
(or (clj-lex-symbol-start? char)
(clj-lex-digit? char)
- (eq ?: char)))
+ (eq ?: char)
+ (eq ?# char)))
(defun clj-lex-get-symbol-at-point (pos)
"Return the symbol at point."
- [nongnu] elpa/parseclj 29411e2103 045/185: Add a design document to share vision and collect feedback, (continued)
- [nongnu] elpa/parseclj 29411e2103 045/185: Add a design document to share vision and collect feedback, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 0702332e5d 046/185: Merge branch 'master' of https://github.com/lambdaisland/clj-parse, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 553f8618e1 044/185: Rework `clj-parse-deftest` macro, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj da89bf82a3 050/185: Allow colons inside symbols, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 81fe979450 051/185: Handle parsing of semicolon-based comments., ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj a424f87c1b 054/185: :#/# is a valid keyword. :::hello is not, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj f34b8460a8 055/185: Correctly parse numbers in scientific notation, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 6fe4ce6095 058/185: Add script to compare speed of edn.el and clj-parse.el, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 7d70ee4c38 059/185: Add support for tagged literals, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 4367db07aa 061/185: Move tests to tests/, bench to benchmark/, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 46570ce843 060/185: A # can be part of a symbol,
ELPA Syncer <=
- [nongnu] elpa/parseclj fcd1a086f6 081/185: Rename clj-ast to parseclj-ast, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 987bd16a57 089/185: Position starts at 1, not at 0 (just like (point)), ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 313fc4e630 077/185: Rename to parseclj, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 7f8bcd405e 095/185: Make checkdoc happy with parseclj.el, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 0f16fcf2fa 084/185: Implement parsing with lexical preservation (keep whitespace, comments), ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj ca854455f6 099/185: Add missing requirement to `parseedn`, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj adbc0cabf5 100/185: Move `parseclj--{leaf, closing}-tokens` to `parseclj-lex` module, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 7794d9ee59 101/185: Add docstrings for `parseclj-lex` module, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 296a093132 102/185: Remove `parseclj-unparse`, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj d6525d30c6 111/185: Merge pull request #10 from lambdaisland/fix-ast-reduce-tag, ELPA Syncer, 2021/12/28