emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode c3feac1 243/486: Fill regular block comments cor


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode c3feac1 243/486: Fill regular block comments correctly too, in addition to rustdoc comments
Date: Sat, 7 Aug 2021 09:25:28 -0400 (EDT)

branch: elpa/rust-mode
commit c3feac1505609fe1a11388d126957257ae5facb2
Author: Brian Mastenbrook <brian@mastenbrook.net>
Commit: Brian Mastenbrook <brian@mastenbrook.net>

    Fill regular block comments correctly too, in addition to rustdoc comments
---
 rust-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rust-mode.el b/rust-mode.el
index 62d3007..273a751 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -1058,10 +1058,10 @@ the desired identifiers), but does not match type 
annotations \"foo::<\"."
   (let ((result
          ;; Replace /* with same number of spaces
          (replace-regexp-in-string
-          "\\(?:/\\*+\\)[!*]"
+          "\\(?:/\\*+\\)"
           (lambda (s)
             ;; We want the * to line up with the first * of the comment start
-            (concat (make-string (- (length s) 2) ?\x20) "*"))
+            (concat (make-string (- (length s) 1) ?\x20) "*"))
           line-start)))
     ;; Make sure we've got at least one space at the end
     (if (not (= (aref result (- (length result) 1)) ?\x20))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]