feat(rust) Add annotations for traits

This commit is contained in:
danymat
2022-01-09 19:01:29 +01:00
parent d09756d93c
commit 6a8c4ae3af

View File

@@ -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 = {