Skip to content

Commit

Permalink
Fixed missing :arglists bug in ClojureScript reader
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed May 20, 2014
1 parent bda7624 commit b4f0d00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion codox.core/src/codox/reader/clojurescript.clj
Expand Up @@ -37,7 +37,7 @@

(defn- read-var [file vars var]
(-> var
(select-keys [:name :line :doc :dynamic :added :deprecated :doc/format])
(select-keys [:name :line :arglists :doc :dynamic :added :deprecated :doc/format])
(update-some :doc correct-indent)
(update-some :arglists second)
(assoc-some :file (.getPath file)
Expand Down
3 changes: 2 additions & 1 deletion codox.example/src/clojure/codox/example.clj
Expand Up @@ -8,7 +8,8 @@

(defn foo
"This is an example function."
[x y & z])
([x])
([x y & z]))

(defmacro bar
"This is an example macro."
Expand Down
3 changes: 2 additions & 1 deletion codox.example/src/clojure/codox/example3.cljs
Expand Up @@ -8,7 +8,8 @@

(defn foo
"This is an example function."
[x y & z])
([x])
([x y & z]))

(def baz
"This is an example var."
Expand Down

0 comments on commit b4f0d00

Please sign in to comment.