Skip to content

Commit

Permalink
Respect forms :line and :column meta when provided
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmonettas committed Sep 26, 2023
1 parent d368dcf commit 88d47e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/clojure/clojure/tools/reader.clj
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
(let [o (read* rdr true nil opts pending-forms)]
(if (instance? IMeta o)
(let [m (if (and line (seq? o))
(assoc m :line line :column column)
(merge {:line line :column column} m)
m)]
(if (instance? IObj o)
(with-meta o (merge (meta o) m))
Expand Down

0 comments on commit 88d47e6

Please sign in to comment.