Avoid matching duplicate impl outline items in tests

This commit is contained in:
Antonio Scandurra 2022-03-29 11:59:34 +02:00
parent 9df2dacd85
commit a86118cfe2

View file

@ -961,11 +961,8 @@ fn rust_lang() -> Language {
name: (_) @name) @item
(impl_item
"impl" @context
type: (_) @name) @item
(impl_item
"impl" @context
trait: (_) @name
"for" @context
trait: (_)? @name
"for"? @context
type: (_) @name) @item
(function_item
"fn" @context