diff options
| author | Ivan Tham <pickfire@riseup.net> | 2020-12-17 11:19:23 +0800 |
|---|---|---|
| committer | Ivan Tham <pickfire@riseup.net> | 2020-12-17 11:19:23 +0800 |
| commit | ffbdcaa95cf429d55948730523563f5d83aa9978 (patch) | |
| tree | 03d1e09ef5dc1c472da834f7b7310dc271463580 /test | |
| parent | ce96c3f26246ca1d1ae380e5a14e2880256ded25 (diff) | |
Rust handle [ indent like { and (
Diffstat (limited to 'test')
| -rw-r--r-- | test/indent/rust/after-open-with-chars/in | 2 | ||||
| -rw-r--r-- | test/indent/rust/after-open-with-chars/out | 4 | ||||
| -rw-r--r-- | test/indent/rust/after-open/in | 2 | ||||
| -rw-r--r-- | test/indent/rust/after-open/out | 3 | ||||
| -rw-r--r-- | test/indent/rust/align-closing-brack/cmd | 1 | ||||
| -rw-r--r-- | test/indent/rust/align-closing-brack/in | 3 | ||||
| -rw-r--r-- | test/indent/rust/align-closing-brack/out | 4 | ||||
| -rw-r--r-- | test/indent/rust/align-closing-brack/rc | 3 |
8 files changed, 22 insertions, 0 deletions
diff --git a/test/indent/rust/after-open-with-chars/in b/test/indent/rust/after-open-with-chars/in index 1f977479..3f3a93c8 100644 --- a/test/indent/rust/after-open-with-chars/in +++ b/test/indent/rust/after-open-with-chars/in @@ -1,3 +1,5 @@ Foo {bar,%( ) foo(bar,%( ) + + vec![bar,%( ) diff --git a/test/indent/rust/after-open-with-chars/out b/test/indent/rust/after-open-with-chars/out index e1475aab..3b4343b2 100644 --- a/test/indent/rust/after-open-with-chars/out +++ b/test/indent/rust/after-open-with-chars/out @@ -5,3 +5,7 @@ foo( bar, baz + + vec![ + bar, + baz diff --git a/test/indent/rust/after-open/in b/test/indent/rust/after-open/in index c403940b..b9d4e29b 100644 --- a/test/indent/rust/after-open/in +++ b/test/indent/rust/after-open/in @@ -1,3 +1,5 @@ Foo {%( ) foo(%( ) + + vec![%( ) diff --git a/test/indent/rust/after-open/out b/test/indent/rust/after-open/out index eaf2cdd4..6676dce3 100644 --- a/test/indent/rust/after-open/out +++ b/test/indent/rust/after-open/out @@ -3,3 +3,6 @@ foo( bar + + vec![ + bar diff --git a/test/indent/rust/align-closing-brack/cmd b/test/indent/rust/align-closing-brack/cmd new file mode 100644 index 00000000..5638d9f9 --- /dev/null +++ b/test/indent/rust/align-closing-brack/cmd @@ -0,0 +1 @@ +c<ret>]<esc> diff --git a/test/indent/rust/align-closing-brack/in b/test/indent/rust/align-closing-brack/in new file mode 100644 index 00000000..ff3e8631 --- /dev/null +++ b/test/indent/rust/align-closing-brack/in @@ -0,0 +1,3 @@ + vec![ + bar, + baz,%( ) diff --git a/test/indent/rust/align-closing-brack/out b/test/indent/rust/align-closing-brack/out new file mode 100644 index 00000000..00ec9c29 --- /dev/null +++ b/test/indent/rust/align-closing-brack/out @@ -0,0 +1,4 @@ + vec![ + bar, + baz, + ] diff --git a/test/indent/rust/align-closing-brack/rc b/test/indent/rust/align-closing-brack/rc new file mode 100644 index 00000000..64064c25 --- /dev/null +++ b/test/indent/rust/align-closing-brack/rc @@ -0,0 +1,3 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/filetype/rust.kak" +set buffer filetype rust |
