Skip to content

Commit

Permalink
Merge pull request #20 from jpmonettas/respect-line-and-column-meta
Browse files Browse the repository at this point in the history
Respect forms :line and :column meta when provided
  • Loading branch information
Bronsa authored Nov 8, 2023
2 parents 3213e8f + 88d47e6 commit d57677a
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 d57677a

Please sign in to comment.