Skip to content

Commit

Permalink
Fix glitches with struct field aligned indents
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahChalmer committed Sep 6, 2013
1 parent 992b558 commit e7d5af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/etc/emacs/rust-mode.el
Expand Up @@ -85,10 +85,10 @@
(not (looking-at "[[:space:]]*\\(?://.*\\)?$"))))
(+ 1 (current-column)))
;; Check for fields on the same line as the open curly brace:
((looking-at "{[[:blank:]]*[^}\n]*,[[:space:]]*$")
((looking-at "{[[:space:]]*[^\n]*,[[:space:]]*$")
(progn
(forward-char)
(forward-to-word 1)
(when (looking-at "[[:space:]]") (forward-to-word 1))
(current-column)))
(t (progn
(goto-char pt)
Expand Down

0 comments on commit e7d5af8

Please sign in to comment.