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 5b50d29..bc03023 100644 --- a/rust-mode.el +++ b/rust-mode.el @@ -369,7 +369,9 @@ ;; 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) |
