File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -670,7 +670,12 @@ This function also returns nil meaning don't specify the indentation."
670670 (if (not (> (save-excursion (forward-line 1 ) (point ))
671671 calculate-lisp-indent-last-sexp))
672672 (progn (goto-char calculate-lisp-indent-last-sexp)
673- (beginning-of-line )
673+ (skip-chars-backward " [:blank:]" )
674+ ; ; We're done if we find the start of line,
675+ (while (and (not (looking-at-p " ^" ))
676+ ; ; or start of sexp.
677+ (ignore-errors (forward-sexp -1 ) t ))
678+ (skip-chars-backward " [:blank:]" ))
674679 (parse-partial-sexp (point )
675680 calculate-lisp-indent-last-sexp 0 t )))
676681 ; ; Indent under the list or under the first sexp on the same
Original file line number Diff line number Diff line change @@ -161,6 +161,16 @@ values of customisable variables."
161161(ns ^:doc app.core
162162 |(:gen-class))" )
163163
164+ (check-indentation multiline-sexps
165+ "
166+ [[
167+ 2] a
168+ |x]"
169+ "
170+ [[
171+ 2] a
172+ |x]" )
173+
164174
165175(provide 'clojure-mode-indentation-test )
166176
You can’t perform that action at this time.
0 commit comments