special case identifier quoting for *

This commit is contained in:
Justin Kramer 2013-08-07 18:22:44 -04:00
parent 3b07644b8a
commit 9d46b48366

View file

@ -42,10 +42,11 @@
*quote-identifier-fn*)] *quote-identifier-fn*)]
(if-not qf (if-not qf
x x
(let [qf* #(if (= "*" %) % (qf %))]
(if-not split (if-not split
(qf (name x)) (qf* (name x))
(let [parts (string/split (name x) #"\.")] (let [parts (string/split (name x) #"\.")]
(string/join "." (map qf parts))))))) (string/join "." (map qf* parts))))))))
(def infix-fns (def infix-fns
#{"+" "-" "*" "/" "%" "mod" "|" "&" "^" #{"+" "-" "*" "/" "%" "mod" "|" "&" "^"