feat(rb) Add support for tomdoc

This commit is contained in:
danymat
2022-03-05 14:16:19 +01:00
parent e7043e3ab7
commit d449431e95
3 changed files with 14 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ local template = {}
template.parent = {
func = { "method" },
class = { "class" },
class = { "class", "module" },
type = { "call" },
}
@@ -53,7 +53,7 @@ template.data = {
},
},
class = {
["class"] = {
["class|module"] = {
["0"] = {
extract = function()
return {}
@@ -72,6 +72,6 @@ template.data = {
},
}
template.template = _template:add_default_annotation("yard"):add_annotation("rdoc")
template.template = _template:add_default_annotation("yard"):add_annotation("rdoc"):add_annotation("tomdoc")
return template