Commit 1646dd4 1 parent 6ec50c3 commit 1646dd4 Copy full SHA for 1646dd4
File tree 3 files changed +10
-3
lines changed
src/cider/nrepl/middleware
test/clj/cider/nrepl/middleware
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## master (unreleased)
4
4
5
+ ## Bugs fixed
6
+
7
+ * [ CIDER #3684 ] ( https://github.com/clojure-emacs/cider/issues/3684 ) : Don't apply indentation inference for ` :style/indent nil ` metadata.
8
+
5
9
## 0.49.0 (2024-06-02)
6
10
7
11
### Changes
Original file line number Diff line number Diff line change 31
31
[m]
32
32
(and (:macro m)
33
33
(:arglists m)
34
- (not (:style/indent m ))
35
- (not (:indent m ))
34
+ (not (contains? m :style/indent ))
35
+ (not (contains? m :indent ))
36
36
(if-let [namespace-name (some-> (cond
37
37
(instance? Namespace (:ns m)) ; ; JVM clojure
38
38
(-> m :ns ns-name)
Original file line number Diff line number Diff line change 208
208
(defmacro macro-without-style-indent-1 [opts & body])
209
209
(defmacro macro-without-style-indent-2 [opts body])
210
210
(defmacro macro-without-style-indent-3 [opts baddy])
211
+ (defmacro macro-with-explicitly-nil-style-indent {:style/indent nil } [opts & body])
211
212
212
213
(def mock-msg (reify nrepl.transport/Transport
213
214
(recv [this])
226
227
(is (= " 1"
227
228
(-> interns (get 'macro-without-style-indent-2) :style/indent )))
228
229
(is (= nil
229
- (-> interns (get 'macro-without-style-indent-3) :style/indent ))))))
230
+ (-> interns (get 'macro-without-style-indent-3) :style/indent )))
231
+ (is (= nil
232
+ (-> interns (get 'macro-with-explicitly-nil-style-indent) :style/indent ))))))
230
233
231
234
(deftest inferrable-indent?-test
232
235
(testing " clojure.* macros are not inferrable"
You can’t perform that action at this time.
0 commit comments