Skip to content

Commit 88d47e6

Browse files
committed
Respect forms :line and :column meta when provided
1 parent d368dcf commit 88d47e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/clojure/clojure/tools/reader.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@
378378
(let [o (read* rdr true nil opts pending-forms)]
379379
(if (instance? IMeta o)
380380
(let [m (if (and line (seq? o))
381-
(assoc m :line line :column column)
381+
(merge {:line line :column column} m)
382382
m)]
383383
(if (instance? IObj o)
384384
(with-meta o (merge (meta o) m))

0 commit comments

Comments
 (0)