Skip to content

Commit ab2f42f

Browse files
author
dnolen
committed
cleanup doc for macros
1 parent 7025bd2 commit ab2f42f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/clj/cljs/repl.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ itself (not its value) is returned. The reader macro #'x expands to (var x)."}})
901901
`(cljs.repl/print-doc
902902
(quote ~(update-in
903903
(select-keys (ana-api/resolve &env name)
904-
[:ns :name :doc :forms :arglists])
904+
[:ns :name :doc :forms :arglists :macro :url])
905905
[:name] clojure.core/name))))))
906906

907907
(defmacro find-doc

src/cljs/cljs/repl.cljs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
(cond
1616
(:forms m) (doseq [f (:forms m)]
1717
(println " " f))
18-
(:arglists m) (prn (second (:arglists m))))
18+
(:arglists m) (if (:macro m)
19+
(prn (:arglists m))
20+
(prn (second (:arglists m)))))
1921
(if (:special-form m)
2022
(do
2123
(println "Special Form")

0 commit comments

Comments
 (0)