Skip to content

Commit fc5e092

Browse files
committed
Namespace font-locking: constant definition improvements.
1 parent 731d6f5 commit fc5e092

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
### New features
66

77
* Indent and font-lock forms that start with `let-`, `while-` or `when-` like their counterparts.
8-
* Namespace font-locking according to clojure.lang.LispReader
98

109
### Bugs fixed
1110

1211
* Namespaces can now use the full palette of legal symbol characters.
12+
* Namespace font-locking according to clojure.lang.LispReader.
1313

1414
## 5.0.1 (15/11/2015)
1515

clojure-mode.el

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,19 @@ Called by `imenu--generic-function'."
352352
(set-match-data (list def-beg def-end)))))
353353
(goto-char start)))))
354354

355-
(eval-when-compile
356-
;; See clojure.lang.LispReader definition and getMacro invocation(s)
357-
(defconst clojure-sym-rest-chars "^][\";\'@\\^`~\(\)\{\}\\")
358-
(defconst clojure-sym-1st-chars (concat clojure-sym-rest-chars "0-9"))
355+
(eval-and-compile
356+
(defconst clojure-sym-rest-chars "^][\";\'@\\^`~\(\)\{\}\\"
357+
"A black list of chars a clojure symbol must not contain. See
358+
definiton of 'macros': URL `http://git.io/vRGLD'.")
359+
(defconst clojure-sym-1st-chars (concat clojure-sym-rest-chars "0-9")
360+
"A black list of chars a clojure symbol must not start with. See
361+
the for-loop: URL `http://git.io/vRGTj' lines:
362+
URL `http://git.io/vRGIh', URL `http://git.io/vRGLE'
363+
and value definition of 'macros': URL `http://git.io/vRGLD'.")
359364
(defconst clojure-sym
360-
(concat "[" clojure-sym-1st-chars "][" clojure-sym-rest-chars "]+")))
365+
(concat "[" clojure-sym-1st-chars "][" clojure-sym-rest-chars "]+")
366+
"A concatenation of black lists:
367+
`clojure-sym-1st-chars', `clojure-sym-rest-chars'."))
361368

362369
(defconst clojure-font-lock-keywords
363370
(eval-when-compile

0 commit comments

Comments
 (0)