diff options
| author | Eivind Fonn <evfonn@gmail.com> | 2016-01-15 17:39:19 +0100 |
|---|---|---|
| committer | Eivind Fonn <evfonn@gmail.com> | 2016-01-15 17:39:19 +0100 |
| commit | 6252cf188390992c3ea47842e75840fd63c7f6c1 (patch) | |
| tree | 2b6c3f92f886c303c0a3d63fab96f3b4dfc1de64 /rust-mode-tests.el | |
| parent | 2cd3cf93853fc8e46011f4d98bd95ffa695c6257 (diff) | |
| download | rust-mode-6252cf188390992c3ea47842e75840fd63c7f6c1.tar.gz | |
Fix indentation of closing delimiters
Diffstat (limited to 'rust-mode-tests.el')
| -rw-r--r-- | rust-mode-tests.el | 19 |
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 " |
