indents(c): add zero_indent for #if

This commit is contained in:
Stephan Seitz 2022-01-22 18:24:38 +01:00
parent 616dc885fc
commit fd5a551d7c
7 changed files with 18 additions and 13 deletions

View file

@ -5,6 +5,3 @@ void foo(int a,
void foo(int a,
int b

View file

@ -6,6 +6,3 @@
void foo(int *x, int y) {
*x = y;
}
/*
*

View file

@ -0,0 +1,2 @@
/*
*

View file

@ -13,7 +13,7 @@ describe("indent C:", function()
runner:whole_file(".", {
expected_failures = {
"./preproc_func.c",
"./label.c",
"./unfinished_comment.c",
},
})
end)

View file

@ -16,7 +16,7 @@ describe("indent C++:", function()
expected_failures = {
-- C
"c/preproc_func.c",
"c/label.c",
"c/unfinished_comment.c",
},
})
end)