mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-23 13:13:17 +00:00
Fix glitches with struct field aligned indents
This commit is contained in:
parent
992b558d3c
commit
e7d5af8ec7
@ -85,10 +85,10 @@
|
|||||||
(not (looking-at "[[:space:]]*\\(?://.*\\)?$"))))
|
(not (looking-at "[[:space:]]*\\(?://.*\\)?$"))))
|
||||||
(+ 1 (current-column)))
|
(+ 1 (current-column)))
|
||||||
;; Check for fields on the same line as the open curly brace:
|
;; Check for fields on the same line as the open curly brace:
|
||||||
((looking-at "{[[:blank:]]*[^}\n]*,[[:space:]]*$")
|
((looking-at "{[[:space:]]*[^\n]*,[[:space:]]*$")
|
||||||
(progn
|
(progn
|
||||||
(forward-char)
|
(forward-char)
|
||||||
(forward-to-word 1)
|
(when (looking-at "[[:space:]]") (forward-to-word 1))
|
||||||
(current-column)))
|
(current-column)))
|
||||||
(t (progn
|
(t (progn
|
||||||
(goto-char pt)
|
(goto-char pt)
|
||||||
|
Loading…
Reference in New Issue
Block a user