Permalink
Browse files

Allow whitespace before the defdeps form.

  • Loading branch information...
1 parent e4095e2 commit c89fe6c20a9ee19625503cd42a5d1b6130336c32 @mtyaka committed Jan 1, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/leiningen/oneoff.clj
  2. +1 −0 test_projects/sample2.clj
View
@@ -87,7 +87,7 @@ of a one-off project."
reader macro if needed."
[script]
(let [form (read-string
- (.replaceFirst (re-matcher #"^ *#_" (slurp script)) ""))]
+ (.replaceFirst (re-matcher #"^\s*#_" (slurp script)) ""))]
(if (= (first form) 'defdeps)
[(nth form 1) (nth form 2 {})]
[default-deps {}])))
@@ -1,3 +1,4 @@
+
#_(defdeps
[[org.clojure/clojure "1.2.1"]])

0 comments on commit c89fe6c

Please sign in to comment.