File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,24 @@ DESCRIPTION is a string with the description of the spec."
148
148
(cond
149
149
|x)" )
150
150
151
+ (when-indenting-with-point-it " should indent cond-> with a namespaced map"
152
+ "
153
+ (cond-> #:a{:b 1}
154
+ |x 1)"
155
+
156
+ "
157
+ (cond-> #:a{:b 1}
158
+ |x 1)" )
159
+
160
+ (when-indenting-with-point-it " should indent cond-> with a namespaced map 2"
161
+ "
162
+ (cond-> #::a{:b 1}
163
+ |x 1)"
164
+
165
+ "
166
+ (cond-> #::a{:b 1}
167
+ |x 1)" )
168
+
151
169
(when-indenting-with-point-it " should indent threading macro with expression on first line"
152
170
"
153
171
(->> expr
Original file line number Diff line number Diff line change @@ -117,7 +117,15 @@ and point left there."
117
117
(clojure-forward-logical-sexp 2 )
118
118
(expect (looking-back " \\ ^String biverse" ))
119
119
(clojure-backward-logical-sexp 1 )
120
- (expect (looking-at-p " \\ ^String biverse" )))))
120
+ (expect (looking-at-p " \\ ^String biverse" ))))
121
+
122
+ (it " should handle a namespaced map"
123
+ (with-clojure-buffer " first #:name/space{:k v}"
124
+ (clojure-backward-logical-sexp 1 )
125
+ (expect (looking-at-p " #:name/space{:k v}" ))
126
+ (insert " #::ns {:k v}" )
127
+ (clojure-backward-logical-sexp 1 )
128
+ (expect (looking-at-p " #::ns {:k v}" )))))
121
129
122
130
(describe " clojure-backward-logical-sexp"
123
131
(it " should work with buffer corners"
You can’t perform that action at this time.
0 commit comments