Add test cases for rust closing brace indentation

This commit is contained in:
John Isom 2020-07-26 20:01:50 -06:00
parent 46ea52a0a8
commit d2437b468d
12 changed files with 130 additions and 0 deletions

View File

@ -0,0 +1 @@
c<ret>

View File

@ -0,0 +1,12 @@
fn foo() -> i32 {%( )}
fn foo() -> i32 {%( )
}
fn foo() -> i32 {%( )bar()}
fn foo() -> i32 {%( )bar()
}
fn foo() -> i32 {
bar()%( )}

View File

@ -0,0 +1,17 @@
fn foo() -> i32 {
}
fn foo() -> i32 {
}
fn foo() -> i32 {
bar()}
fn foo() -> i32 {
bar()
}
fn foo() -> i32 {
bar()
}

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/rust.kak"
set buffer filetype rust

View File

@ -0,0 +1 @@
c<ret>

View File

@ -0,0 +1,25 @@
{%( )}
{%( )
}
{%( )bar()}
{%( )bar()
}
{
bar()%( )}
{(%( ))}
{(%( )
)}
{(%( )foo())}
{(%( )foo()
)}
{(
bar()%( ))}

View File

@ -0,0 +1,35 @@
{
}
{
}
{
bar()}
{
bar()
}
{
bar()
}
{(
)}
{(
)}
{(
foo())}
{(
foo()
)}
{(
bar()
)}

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/rust.kak"
set buffer filetype rust

View File

@ -0,0 +1 @@
c<ret>

View File

@ -0,0 +1,12 @@
if true {%( )}
if true {%( )
}
if true {%( )bar()}
if true {%( )bar()
}
if true {
bar()%( )}

View File

@ -0,0 +1,17 @@
if true {
}
if true {
}
if true {
bar()}
if true {
bar()
}
if true {
bar()
}

View File

@ -0,0 +1,3 @@
source "%val{runtime}/colors/default.kak"
source "%val{runtime}/rc/filetype/rust.kak"
set buffer filetype rust