diff options
| author | Brian Mastenbrook <brian@mastenbrook.net> | 2016-04-05 17:58:12 -0500 |
|---|---|---|
| committer | Brian Mastenbrook <brian@mastenbrook.net> | 2016-04-05 17:58:12 -0500 |
| commit | c3feac1505609fe1a11388d126957257ae5facb2 (patch) | |
| tree | d97911b126c314c9cb8efc443514fd13d2b90dc0 /rust-mode.el | |
| parent | 18fad391b9ab1dd4eb060fe076a1c2712dc30330 (diff) | |
| download | rust-mode-c3feac1505609fe1a11388d126957257ae5facb2.tar.gz | |
Fill regular block comments correctly too, in addition to rustdoc comments
Diffstat (limited to 'rust-mode.el')
| -rw-r--r-- | rust-mode.el | 4 |
1 files 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)) |
