File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 102
102
(defun rust-rewind-to-beginning-of-current-level-expr ()
103
103
(let ((current-level (rust-paren-level)))
104
104
(back-to-indentation )
105
+ (when (looking-at " ->" )
106
+ (rust-rewind-irrelevant)
107
+ (back-to-indentation ))
105
108
(while (> (rust-paren-level) current-level)
106
109
(backward-up-list )
107
110
(back-to-indentation ))))
179
182
(+ (current-column ) rust-indent-offset))))))
180
183
(cond
181
184
; ; Indent inside a non-raw string only if the the previous line
182
- ; ; ends with a backslash that is is inside the same string
185
+ ; ; ends with a backslash that is inside the same string
183
186
((nth 3 (syntax-ppss ))
184
187
(let*
185
188
((string-begin-pos (nth 8 (syntax-ppss )))
232
235
(or (rust-align-to-expr-after-brace)
233
236
(+ baseline rust-indent-offset))))
234
237
235
- ; ; A closing brace is 1 level unindended
238
+ ; ; A closing brace is 1 level unindented
236
239
((looking-at " }" ) (- baseline rust-indent-offset))
237
240
238
241
; ; Doc comments in /** style with leading * indent to line up the *s
You can’t perform that action at this time.
0 commit comments