mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-16 14:34:08 +02:00
fix(ts)(rust): add support for impl with type params
This commit is contained in:
parent
4ab6882728
commit
174e3b7e47
3 changed files with 13 additions and 0 deletions
|
@ -19,3 +19,8 @@
|
|||
(impl_item
|
||||
trait: (type_identifier)? @trait
|
||||
type: (type_identifier) @rust_type) @type
|
||||
|
||||
(impl_item
|
||||
trait: (type_identifier)? @trait
|
||||
type: (generic_type
|
||||
type: (type_identifier) @rust_type)) @type
|
||||
|
|
|
@ -79,6 +79,13 @@ describe("treesitter rust", function()
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
kind = "Class",
|
||||
name = "MyStruct > GenericTrait",
|
||||
level = 1,
|
||||
lnum = 21,
|
||||
col = 4,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
@ -18,4 +18,5 @@ mod mod_1 {
|
|||
write!(f, "hi");
|
||||
}
|
||||
}
|
||||
impl<T> GenericTrait for MyStruct<T> {}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue