File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -828,8 +828,9 @@ This function also returns nil meaning don't specify the indentation."
828
828
(or (and clojure-defun-style-default-indent
829
829
; ; largely to preserve useful alignment of :require, etc in ns
830
830
(not (string-match " ^:" function)))
831
- (string-match " \\ `\\ (?:\\ S +/\\ )?\\ (def\\ |with-\\ )"
832
- function)))))
831
+ (and (string-match " \\ `\\ (?:\\ S +/\\ )?\\ (def\\ |with-\\ )"
832
+ function)
833
+ (not (string-match " \\ `default" function)))))))
833
834
(+ lisp-body-indent containing-form-column))
834
835
(_ (clojure--normal-indent calculate-lisp-indent-last-sexp))))))
835
836
Original file line number Diff line number Diff line change @@ -240,6 +240,11 @@ values of customisable variables."
240
240
(:gen-class)
241
241
)" )
242
242
243
+ (def-full-indent-test default-is-not-a-define
244
+ " (default a
245
+ b
246
+ b)" )
247
+
243
248
(def-full-indent-test non-symbol-at-start
244
249
" {\" 1\" 2
245
250
*3 4}" )
You can’t perform that action at this time.
0 commit comments