mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -04:00
indents: allow aligned_indent for unfinished calls in C and Python
This commit is contained in:
parent
62982378b8
commit
059fbc487c
7 changed files with 26 additions and 3 deletions
10
tests/indent/c/aligned_indent.c
Normal file
10
tests/indent/c/aligned_indent.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
void foo(int a,
|
||||
int b,
|
||||
int c);
|
||||
|
||||
void foo(int a,
|
||||
int b
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ int f4(
|
|||
}
|
||||
|
||||
int f5(int x,
|
||||
int y)
|
||||
int y)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
3
tests/indent/c/initializer_list.c
Normal file
3
tests/indent/c/initializer_list.c
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
int a[] = {
|
||||
1, 2, 3,
|
||||
4};
|
||||
|
|
@ -9,3 +9,6 @@ aligned_indent(1,
|
|||
aligned_indent(1,
|
||||
2
|
||||
)
|
||||
|
||||
foodsadsa(sdada,
|
||||
2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue