We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30d9f1d commit c73a52aCopy full SHA for c73a52a
2 files changed
src/main/cljs/cljs/tools/reader/edn.cljs
@@ -53,14 +53,16 @@
53
54
:else
55
(loop [sb (StringBuffer.)
56
- ch (do (unread rdr initch) initch)]
+ ch initch]
57
(if (or (whitespace? ch)
58
(macro-terminating? ch)
59
(nil? ch))
60
- (str sb)
+ (do (when-not (nil? ch)
61
+ (unread rdr ch))
62
+ (str sb))
63
(if (not-constituent? ch)
64
(err/throw-bad-char rdr kind ch)
- (recur (doto sb (.append (read-char rdr))) (peek-char rdr))))))))
65
+ (recur (doto sb (.append ch)) (read-char rdr))))))))
66
67
(declare read-tagged)
68
src/main/clojure/clojure/tools/reader/edn.clj
@@ -56,7 +56,8 @@
- (do (unread rdr ch)
+ (do (when ch
(str sb))
0 commit comments