Skip to content

Commit e7d5af8

Browse files
committed
Fix glitches with struct field aligned indents
1 parent 992b558 commit e7d5af8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/etc/emacs/rust-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@
8585
(not (looking-at "[[:space:]]*\\(?://.*\\)?$"))))
8686
(+ 1 (current-column)))
8787
;; Check for fields on the same line as the open curly brace:
88-
((looking-at "{[[:blank:]]*[^}\n]*,[[:space:]]*$")
88+
((looking-at "{[[:space:]]*[^\n]*,[[:space:]]*$")
8989
(progn
9090
(forward-char)
91-
(forward-to-word 1)
91+
(when (looking-at "[[:space:]]") (forward-to-word 1))
9292
(current-column)))
9393
(t (progn
9494
(goto-char pt)

0 commit comments

Comments
 (0)