File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 49
49
(let ((level (rust-paren-level)))
50
50
(cond
51
51
; ; A function return type is 1 level indented
52
- ((looking-at " ->" ) (* default- tab-width (+ level 1 )))
52
+ ((looking-at " ->" ) (* tab-width (+ level 1 )))
53
53
54
54
; ; A closing brace is 1 level unindended
55
- ((looking-at " }" ) (* default- tab-width (- level 1 )))
55
+ ((looking-at " }" ) (* tab-width (- level 1 )))
56
56
57
57
; ; If we're in any other token-tree / sexp, then:
58
58
; ; - [ or ( means line up with the opening token
70
70
(goto-char pt)
71
71
(back-to-indentation )
72
72
(if (looking-at " \\ <else\\ >" )
73
- (* default- tab-width (+ 1 level))
73
+ (* tab-width (+ 1 level))
74
74
(progn
75
75
(goto-char pt)
76
76
(beginning-of-line )
77
77
(rust-rewind-irrelevant)
78
78
(end-of-line )
79
79
(if (looking-back " [{};,]" )
80
- (* default- tab-width level)
80
+ (* tab-width level)
81
81
(back-to-indentation )
82
82
(if (looking-at " #" )
83
- (* default- tab-width level)
84
- (* default- tab-width (+ 1 level))))))))))
83
+ (* tab-width level)
84
+ (* tab-width (+ 1 level))))))))))
85
85
86
86
; ; Otherwise we're in a column-zero definition
87
87
(t 0 ))))))
You can’t perform that action at this time.
0 commit comments