We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b9dc80 commit 70bc163Copy full SHA for 70bc163
src/etc/emacs/rust-mode.el
@@ -57,6 +57,10 @@
57
;; A closing brace is 1 level unindended
58
((looking-at "}") (* rust-indent-offset (- level 1)))
59
60
+ ; Doc comments in /** style with leading * indent to line up the *s
61
+ ((and (nth 4 (syntax-ppss)) (looking-at "*"))
62
+ (+ 1 (* rust-indent-offset level)))
63
+
64
;; If we're in any other token-tree / sexp, then:
65
;; - [ or ( means line up with the opening token
66
;; - { means indent to either nesting-level * rust-indent-offset,
0 commit comments