mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -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
7
lua/tests/indent/rust/basic.rs
Normal file
7
lua/tests/indent/rust/basic.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
fn foo(x: i32) {
|
||||
if (x > 10) {
|
||||
return 10;
|
||||
} else {
|
||||
return x;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue