Skip to content

Commit 9a1939c

Browse files
committed
[Fix #371] Add : to the list of forbidden 1st-chars for symbols
1 parent 755c6c5 commit 9a1939c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## master (unreleased)
44

5+
### Bugs fixed
6+
7+
* [#371](https://github.com/clojure-emacs/clojure-mode/issues/371): Don't font-lock `:foo/def` like a `def` form.
8+
59
### New features
610

711
* [#370](https://github.com/clojure-emacs/clojure-mode/issues/370): Warn the user if they seem to have activated the wrong major-mode.

clojure-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ Called by `imenu--generic-function'."
489489
(defconst clojure--sym-forbidden-rest-chars "][\";\'@\\^`~\(\)\{\}\\,\s\t\n\r"
490490
"A list of chars that a Clojure symbol cannot contain.
491491
See definition of 'macros': URL `http://git.io/vRGLD'.")
492-
(defconst clojure--sym-forbidden-1st-chars (concat clojure--sym-forbidden-rest-chars "0-9")
492+
(defconst clojure--sym-forbidden-1st-chars (concat clojure--sym-forbidden-rest-chars "0-9:")
493493
"A list of chars that a Clojure symbol cannot start with.
494494
See the for-loop: URL `http://git.io/vRGTj' lines: URL
495495
`http://git.io/vRGIh', URL `http://git.io/vRGLE' and value

0 commit comments

Comments
 (0)