mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-28 09:07:19 +03:00
Add test cases for c-family closing brace indentation
This commit is contained in:
parent
4b35a701c4
commit
46ea52a0a8
1
test/indent/c-family/deindent-function-closing-brace/cmd
Normal file
1
test/indent/c-family/deindent-function-closing-brace/cmd
Normal file
@ -0,0 +1 @@
|
||||
c<ret>
|
12
test/indent/c-family/deindent-function-closing-brace/in
Normal file
12
test/indent/c-family/deindent-function-closing-brace/in
Normal file
@ -0,0 +1,12 @@
|
||||
void foo(void) {%( )}
|
||||
|
||||
void foo(void) {%( )
|
||||
}
|
||||
|
||||
void foo(void) {%( )bar()}
|
||||
|
||||
void foo(void) {%( )bar()
|
||||
}
|
||||
|
||||
void foo(void) {
|
||||
bar()%( )}
|
17
test/indent/c-family/deindent-function-closing-brace/out
Normal file
17
test/indent/c-family/deindent-function-closing-brace/out
Normal file
@ -0,0 +1,17 @@
|
||||
void foo(void) {
|
||||
}
|
||||
|
||||
void foo(void) {
|
||||
|
||||
}
|
||||
|
||||
void foo(void) {
|
||||
bar()}
|
||||
|
||||
void foo(void) {
|
||||
bar()
|
||||
}
|
||||
|
||||
void foo(void) {
|
||||
bar()
|
||||
}
|
3
test/indent/c-family/deindent-function-closing-brace/rc
Normal file
3
test/indent/c-family/deindent-function-closing-brace/rc
Normal file
@ -0,0 +1,3 @@
|
||||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/c-family.kak"
|
||||
set buffer filetype cpp
|
1
test/indent/c-family/deindent-generic-closing-brace/cmd
Normal file
1
test/indent/c-family/deindent-generic-closing-brace/cmd
Normal file
@ -0,0 +1 @@
|
||||
c<ret>
|
25
test/indent/c-family/deindent-generic-closing-brace/in
Normal file
25
test/indent/c-family/deindent-generic-closing-brace/in
Normal file
@ -0,0 +1,25 @@
|
||||
{%( )}
|
||||
|
||||
{%( )
|
||||
}
|
||||
|
||||
{%( )bar()}
|
||||
|
||||
{%( )bar()
|
||||
}
|
||||
|
||||
{
|
||||
bar()%( )}
|
||||
|
||||
{(%( ))}
|
||||
|
||||
{(%( )
|
||||
)}
|
||||
|
||||
{(%( )foo())}
|
||||
|
||||
{(%( )foo()
|
||||
)}
|
||||
|
||||
{(
|
||||
bar()%( ))}
|
35
test/indent/c-family/deindent-generic-closing-brace/out
Normal file
35
test/indent/c-family/deindent-generic-closing-brace/out
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
{
|
||||
bar()}
|
||||
|
||||
{
|
||||
bar()
|
||||
}
|
||||
|
||||
{
|
||||
bar()
|
||||
}
|
||||
|
||||
{(
|
||||
)}
|
||||
|
||||
{(
|
||||
|
||||
)}
|
||||
|
||||
{(
|
||||
foo())}
|
||||
|
||||
{(
|
||||
foo()
|
||||
)}
|
||||
|
||||
{(
|
||||
bar()
|
||||
)}
|
3
test/indent/c-family/deindent-generic-closing-brace/rc
Normal file
3
test/indent/c-family/deindent-generic-closing-brace/rc
Normal file
@ -0,0 +1,3 @@
|
||||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/c-family.kak"
|
||||
set buffer filetype cpp
|
1
test/indent/c-family/deindent-if-closing-brace/cmd
Normal file
1
test/indent/c-family/deindent-if-closing-brace/cmd
Normal file
@ -0,0 +1 @@
|
||||
c<ret>
|
12
test/indent/c-family/deindent-if-closing-brace/in
Normal file
12
test/indent/c-family/deindent-if-closing-brace/in
Normal file
@ -0,0 +1,12 @@
|
||||
if (1) {%( )}
|
||||
|
||||
if (1) {%( )
|
||||
}
|
||||
|
||||
if (1) {%( )bar()}
|
||||
|
||||
if (1) {%( )bar()
|
||||
}
|
||||
|
||||
if (1) {
|
||||
bar()%( )}
|
17
test/indent/c-family/deindent-if-closing-brace/out
Normal file
17
test/indent/c-family/deindent-if-closing-brace/out
Normal file
@ -0,0 +1,17 @@
|
||||
if (1) {
|
||||
}
|
||||
|
||||
if (1) {
|
||||
|
||||
}
|
||||
|
||||
if (1) {
|
||||
bar()}
|
||||
|
||||
if (1) {
|
||||
bar()
|
||||
}
|
||||
|
||||
if (1) {
|
||||
bar()
|
||||
}
|
3
test/indent/c-family/deindent-if-closing-brace/rc
Normal file
3
test/indent/c-family/deindent-if-closing-brace/rc
Normal file
@ -0,0 +1,3 @@
|
||||
source "%val{runtime}/colors/default.kak"
|
||||
source "%val{runtime}/rc/filetype/c-family.kak"
|
||||
set buffer filetype cpp
|
Loading…
Reference in New Issue
Block a user