nvim-treesitter/lua/tests/indent/rust/loop.rs
2021-04-23 21:21:38 +02:00

19 lines
210 B
Rust

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;
}
}