feat(rust) Add annotations for traits
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
return {
|
return {
|
||||||
parent = {
|
parent = {
|
||||||
func = { "function_item" },
|
func = { "function_item", "function_signature_item" },
|
||||||
class = { "struct_item" },
|
class = { "struct_item", "trait_item" },
|
||||||
file = { "source_file" },
|
file = { "source_file" },
|
||||||
},
|
},
|
||||||
data = {
|
data = {
|
||||||
func = {
|
func = {
|
||||||
["function_item"] = {
|
["function_item|function_signature_item"] = {
|
||||||
["0"] = {
|
["0"] = {
|
||||||
extract = function(node)
|
extract = function(node)
|
||||||
local tree = {
|
local tree = {
|
||||||
@@ -46,7 +46,7 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
class = {
|
class = {
|
||||||
["struct_item"] = {
|
["struct_item|trait_item"] = {
|
||||||
["0"] = {
|
["0"] = {
|
||||||
extract = function(node)
|
extract = function(node)
|
||||||
local tree = {
|
local tree = {
|
||||||
|
|||||||
Reference in New Issue
Block a user