File tree Expand file tree Collapse file tree 3 files changed +83
-0
lines changed Expand file tree Collapse file tree 3 files changed +83
-0
lines changed Original file line number Diff line number Diff line change 1+ (let [x (fn [y] 1 )]
2+ (->> " ola"
3+ (x )))
4+
5+ (letfn [(x [y] 1 )]
6+ (->> " ola"
7+ (x )))
8+
9+ (->> " ola"
10+ (x ))
11+
12+ (defn foo []
13+ (letfn [(x [y] 1 )]
14+ (->> " ola"
15+ (x ))))
16+
17+ (letfn [(twice [x]
18+ (* x 2 ))
19+ (six-times [y]
20+ (* (twice y) 3 ))]
21+ (println " Twice 15 =" (twice 15 ))
22+ (println " Six times 15 =" (six-times 15 )))
23+
24+ (letfn [(twice [x]
25+ (* x 2 ))]
26+ (->> " ola"
27+ (x )))
28+
29+ (letfn [(foo [x y]
30+ (->> x
31+ y
32+ :bar ))
33+ (twice [x]
34+ (* x 2 ))
35+ (six-times [y]
36+ (* (twice y) 3 ))]
37+ (foo #{:foo :bar :biz } :foo ))
38+
39+ ; ; vim:ft=clojure:
Original file line number Diff line number Diff line change 1+ (let [x (fn [y] 1 )]
2+ (->> " ola"
3+ (x )))
4+
5+ (letfn [(x [y] 1 )]
6+ (->> " ola"
7+ (x )))
8+
9+ (->> " ola"
10+ (x ))
11+
12+ (defn foo []
13+ (letfn [(x [y] 1 )]
14+ (->> " ola"
15+ (x ))))
16+
17+ (letfn [(twice [x]
18+ (* x 2 ))
19+ (six-times [y]
20+ (* (twice y) 3 ))]
21+ (println " Twice 15 =" (twice 15 ))
22+ (println " Six times 15 =" (six-times 15 )))
23+
24+ (letfn [(twice [x]
25+ (* x 2 ))]
26+ (->> " ola"
27+ (x )))
28+
29+ (letfn [(foo [x y]
30+ (->> x
31+ y
32+ :bar ))
33+ (twice [x]
34+ (* x 2 ))
35+ (six-times [y]
36+ (* (twice y) 3 ))]
37+ (foo #{:foo :bar :biz } :foo ))
38+
39+ ; ; vim:ft=clojure:
Original file line number Diff line number Diff line change 3333 (test-indent " dispatch macro indentation is handled correctly"
3434 :in " test-dispatch-macro-indent.in"
3535 :out " test-dispatch-macro-indent.out" ))
36+
37+ (deftest test-special-case-indent
38+ (test-indent " special case indentation is handled correctly"
39+ :in " test-special-case-indent.in"
40+ :out " test-special-case-indent.out" ))
You can’t perform that action at this time.
0 commit comments