mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -04:00
indents(c): add zero_indent for #if
This commit is contained in:
parent
616dc885fc
commit
fd5a551d7c
7 changed files with 18 additions and 13 deletions
|
|
@ -5,6 +5,3 @@ void foo(int a,
|
|||
void foo(int a,
|
||||
int b
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,3 @@
|
|||
void foo(int *x, int y) {
|
||||
*x = y;
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
|
|
|
|||
2
tests/indent/c/unfinished_comment.c
Normal file
2
tests/indent/c/unfinished_comment.c
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/*
|
||||
*
|
||||
|
|
@ -13,7 +13,7 @@ describe("indent C:", function()
|
|||
runner:whole_file(".", {
|
||||
expected_failures = {
|
||||
"./preproc_func.c",
|
||||
"./label.c",
|
||||
"./unfinished_comment.c",
|
||||
},
|
||||
})
|
||||
end)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ describe("indent C++:", function()
|
|||
expected_failures = {
|
||||
-- C
|
||||
"c/preproc_func.c",
|
||||
"c/label.c",
|
||||
"c/unfinished_comment.c",
|
||||
},
|
||||
})
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue