branch: elpa/rust-mode
commit af2aba904eeb689b72f5c074030b1d527b6777dc
Author: Micah Chalmer <[email protected]>
Commit: Micah Chalmer <[email protected]>

    Indent correctly after opening square bracket
---
 rust-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust-mode.el b/rust-mode.el
index e8cfd05..e45cec9 100644
--- a/rust-mode.el
+++ b/rust-mode.el
@@ -100,7 +100,7 @@
                          (beginning-of-line)
                          (rust-rewind-irrelevant)
                          (end-of-line)
-                         (if (looking-back "[,;{}(][[:space:]]*\\(?://.*\\)?")
+                         (if (looking-back "[[,;{}(][[:space:]]*\\(?://.*\\)?")
                              (* rust-indent-offset level)
                            (back-to-indentation)
                            (if (looking-at "#")

Reply via email to