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 f3e8f20 commit 2038365Copy full SHA for 2038365
rust-mode-tests.el
@@ -1012,3 +1012,12 @@ fn main() {
1012
}
1013
"
1014
)))
1015
+
1016
+(ert-deftest indent-method-chains-after-comment ()
1017
+ (let ((rust-indent-method-chain t)) (test-indent
1018
+ "
1019
+fn main() { // comment here should not push next line out
1020
+ foo.bar()
1021
+}
1022
+"
1023
+ )))
rust-mode.el
@@ -131,7 +131,7 @@
131
;;
132
((skip-dot-identifier
133
(lambda ()
134
- (when (looking-back (concat "\." rust-re-ident))
+ (when (looking-back (concat "\\." rust-re-ident))
135
(backward-word 1)
136
(backward-char)
137
(- (current-column) rust-indent-offset)))))
0 commit comments