summaryrefslogtreecommitdiff
path: root/rust-mode-tests.el
diff options
context:
space:
mode:
authorEivind Fonn <evfonn@gmail.com>2016-01-15 17:39:19 +0100
committerEivind Fonn <evfonn@gmail.com>2016-01-15 17:39:19 +0100
commit6252cf188390992c3ea47842e75840fd63c7f6c1 (patch)
tree2b6c3f92f886c303c0a3d63fab96f3b4dfc1de64 /rust-mode-tests.el
parent2cd3cf93853fc8e46011f4d98bd95ffa695c6257 (diff)
downloadrust-mode-6252cf188390992c3ea47842e75840fd63c7f6c1.tar.gz
Fix indentation of closing delimiters
Diffstat (limited to 'rust-mode-tests.el')
-rw-r--r--rust-mode-tests.el19
1 files changed, 19 insertions, 0 deletions
diff --git a/rust-mode-tests.el b/rust-mode-tests.el
index e41245f..8375d35 100644
--- a/rust-mode-tests.el
+++ b/rust-mode-tests.el
@@ -631,6 +631,25 @@ fn args_on_the_next_line( // with a comment
}
"))
+(ert-deftest indent-closing-square-bracket ()
+ (test-indent
+ "fn blergh() {
+ let list = vec![
+ 1,
+ 2,
+ 3,
+ ];
+}"))
+
+(ert-deftest indent-closing-paren ()
+ (test-indent
+ "fn blergh() {
+ call(
+ a,
+ function
+ );
+}"))
+
(ert-deftest indent-nested-fns ()
(test-indent
"