diff options
Diffstat (limited to 'rust-mode.el')
| -rw-r--r-- | rust-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rust-mode.el b/rust-mode.el index 6b09580..1d39a54 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -440,7 +440,9 @@ function or trait. When nil, where will be aligned with fn or trait." ;; baseline as well (we are continuing an expression, ;; but the "else" or "{" should align with the beginning ;; of the expression it's in.) - (looking-at "\\<else\\>\\|{") + ;; Or, if this line starts a comment, stay on the + ;; baseline as well. + (looking-at "\\<else\\>\\|{\\|/[/*]") (save-excursion (rust-rewind-irrelevant) |
