Permalink
Browse files

CLJS-424: Use colon in keyword representation

  • Loading branch information...
1 parent 00952e6 commit 21eab986826bd7a9e852712aaeda647a5de59b3b @brandonbloom brandonbloom committed with swannodette Nov 19, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/clj/cljs/compiler.clj
  2. +2 −2 src/cljs/cljs/core.cljs
@@ -152,7 +152,7 @@
(emits \/ (.replaceAll (re-matcher #"/" pattern) "\\\\/") \/ flags)))
(defmethod emit-constant clojure.lang.Keyword [x]
- (emits \" "\\uFDD0" \'
+ (emits \" "\\uFDD0" \:
(if (namespace x)
(str (namespace x) "/") "")
(name x)
@@ -1519,8 +1519,8 @@ reduces them without incurring seq initialization"
"Returns a Keyword with the given namespace and name. Do not use :
in the keyword strings, it will be added automatically."
([name] (cond (keyword? name) name
- (symbol? name) (str* "\uFDD0" "'" (subs name 2))
- :else (str* "\uFDD0" "'" name)))
+ (symbol? name) (str* "\uFDD0" ":" (subs name 2))
+ :else (str* "\uFDD0" ":" name)))
([ns name] (keyword (str* ns "/" name))))

0 comments on commit 21eab98

Please sign in to comment.