Add test cases for c-family closing brace indentation

This commit is contained in:
John Isom 2020-07-26 12:21:07 -06:00
parent 4b35a701c4
commit 46ea52a0a8
12 changed files with 130 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

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/c-family.kak"
set buffer filetype cpp

View File

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

View File

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

View File

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

View File

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