mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
tests/indent: add basic examples for C and Rust
This commit is contained in:
parent
67f2c7149c
commit
4454459fb2
7 changed files with 80 additions and 3 deletions
11
lua/tests/indent/c/basic.c
Normal file
11
lua/tests/indent/c/basic.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
int foo(int x)
|
||||
{
|
||||
if (x > 10) {
|
||||
return x;
|
||||
} else {
|
||||
while (x > 0) {
|
||||
x--;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue