mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -04:00
tests/indent: add multiple C/C++ tests
This commit is contained in:
parent
77c97d0f8b
commit
15f0813b6e
20 changed files with 211 additions and 11 deletions
12
lua/tests/indent/c/expr.c
Normal file
12
lua/tests/indent/c/expr.c
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
void foo(int x, int y)
|
||||
{
|
||||
if ((x*x - y*y > 0) ||
|
||||
(x == 1 || y == 1) &&
|
||||
(x != 2 && y != 2)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
int z = (x + y) *
|
||||
(x - y);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue