1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 17:30:05 +08:00
SpaceVim/bundle/nvim-treesitter/tests/query/highlights/rust/for.rs

16 lines
288 B
Rust
Raw Normal View History

struct Foo;
// Issue https://github.com/nvim-treesitter/nvim-treesitter/issues/3641
// Distinguish between for in loop or impl_item
impl Drop for Foo {
// ^ @keyword
fn drop(&mut self) {}
}
fn main() {
for i in 0..128 {
// <- @repeat
println!("{i}");
}
}