Commit 9e6878e
authored
Correctly indent splicing reader conditionals (#14)
Adjusts is_reader_conditional_special_case to also match splices, i.e. #?@. The test case is taken from <https://clojure.org/guides/reader_conditionals>.
Previously reader splicing conditionals were indented as if they were functions, e.g.
#?@(:clj [5 6 7 8]
:cljs [1 2 3 4])))1 parent bd2a734 commit 9e6878e
File tree
3 files changed
+8
-1
lines changed- clj/dev-resources
- indent
3 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| |||
0 commit comments