feat(rust) Add support for rust (func, file) #34

This commit is contained in:
danymat
2022-01-09 16:29:50 +01:00
parent ded4838eaf
commit 4227f608b2
3 changed files with 39 additions and 2 deletions

View File

@@ -0,0 +1,36 @@
return {
parent = {
func = { "function_item" },
file = { "source_file" },
},
data = {
func = {
["function_item"] = {
["0"] = {
extract = function()
return {}
end,
},
},
},
file = {
["source_file"] = {
["0"] = {
extract = function()
return {}
end,
},
},
},
},
template = {
annotation_convention = "rustdoc",
rustdoc = {
{ nil, "! $1", { no_results = true, type = { "file" } } },
{ nil, "", { no_results = true, type = { "file" } } },
{ nil, "/ $1", { no_results = true, type = { "func" } } },
},
},
}