Skip to content

Commit

Permalink
Allow for docstrings in ns forms (just discard for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmarczyk authored and David Nolen committed May 1, 2012
1 parent e22b854 commit 2e46d19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clj/cljs/compiler.clj
Expand Up @@ -1061,7 +1061,9 @@

(defmethod parse 'ns
[_ env [_ name & args :as form] _]
(let [excludes
(let [docstring (if (string? (first args)) (first args) nil)
args (if docstring (next args) args)
excludes
(reduce (fn [s [k exclude xs]]
(if (= k :refer-clojure)
(do
Expand Down

0 comments on commit 2e46d19

Please sign in to comment.