Add rust test cases for bad indentation edge case

This commit is contained in:
John Isom 2020-07-27 12:13:23 -06:00
parent a7567d82c9
commit 26f4681c3b
6 changed files with 28 additions and 0 deletions

View File

@ -10,3 +10,6 @@ fn foo() -> i32 {%( )bar()
fn foo() -> i32 { fn foo() -> i32 {
bar()%( )} bar()%( )}
fn foo() -> i32 {
bar()%( )}

View File

@ -15,3 +15,7 @@ fn foo() -> i32 {
fn foo() -> i32 { fn foo() -> i32 {
bar() bar()
} }
fn foo() -> i32 {
bar()
}

View File

@ -11,6 +11,9 @@
{ {
bar()%( )} bar()%( )}
{
bar()%( )}
{(%( ))} {(%( ))}
{(%( ) {(%( )
@ -23,3 +26,6 @@
{( {(
bar()%( ))} bar()%( ))}
{(
bar()%( ))}

View File

@ -16,6 +16,10 @@
bar() bar()
} }
{
bar()
}
{( {(
)} )}
@ -33,3 +37,7 @@
{( {(
bar() bar()
)} )}
{(
bar()
)}

View File

@ -10,3 +10,6 @@ if true {%( )bar()
if true { if true {
bar()%( )} bar()%( )}
if true {
bar()%( )}

View File

@ -15,3 +15,7 @@ if true {
if true { if true {
bar() bar()
} }
if true {
bar()
}