Skip to content

Commit

Permalink
Updated metadata processing to support arg-tags in 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrodCTaylor committed Oct 20, 2023
1 parent d368dcf commit fa946e8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/cljs/cljs/tools/reader/impl/errors.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
rdr
"Metadata cannot be "
(i/inspect x)
". Metadata must be a Symbol, Keyword, String or Map."))
". Metadata must be a Symbol, Keyword, String, Map or Vector."))

(defn throw-bad-metadata-target [rdr target]
(reader-error
Expand Down
1 change: 1 addition & 0 deletions src/main/cljs/cljs/tools/reader/impl/utils.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
(keyword? f) {f true}
(symbol? f) {:tag f}
(string? f) {:tag f}
(vector? f) {:arg-tags f}
:else f))

(def last-id (atom 0))
Expand Down
2 changes: 1 addition & 1 deletion src/main/clojure/clojure/tools/reader/impl/errors.clj
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
rdr
"Metadata cannot be "
(i/inspect x)
". Metadata must be a Symbol, Keyword, String or Map."))
". Metadata must be a Symbol, Keyword, String, Map or Vector."))

(defn throw-bad-metadata-target [rdr target]
(reader-error
Expand Down
1 change: 1 addition & 0 deletions src/main/clojure/clojure/tools/reader/impl/utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
(keyword? f) {f true}
(symbol? f) {:tag f}
(string? f) {:tag f}
(vector? f) {:arg-tags f}
:else f))

(defn make-var
Expand Down

0 comments on commit fa946e8

Please sign in to comment.