mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 14:30:05 -04:00
tests/indent: improve Rust tests
This commit is contained in:
parent
69dda8c09d
commit
1d7e5144ab
16 changed files with 217 additions and 13 deletions
19
lua/tests/indent/rust/loop.rs
Normal file
19
lua/tests/indent/rust/loop.rs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
fn foo(mut x: i32) {
|
||||
while x > 0 {
|
||||
x -= 1;
|
||||
}
|
||||
|
||||
for i in 0..3 {
|
||||
x += 1;
|
||||
}
|
||||
|
||||
loop {
|
||||
x += 1;
|
||||
|
||||
if x < 100 {
|
||||
continue;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue