From 6252cf188390992c3ea47842e75840fd63c7f6c1 Mon Sep 17 00:00:00 2001 From: Eivind Fonn Date: Fri, 15 Jan 2016 17:39:19 +0100 Subject: Fix indentation of closing delimiters --- rust-mode-tests.el | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'rust-mode-tests.el') 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 " -- cgit v1.2.3