(lua) Add ldoc annotation convention

This commit is contained in:
Daniel Mathiot
2021-08-29 18:43:11 +02:00
parent a07df9e3a4
commit 518515be3e
2 changed files with 9 additions and 4 deletions

View File

@@ -124,5 +124,11 @@ return {
{ "class_name", "- @class $1|any" },
{ "type", "- @type %s $1" },
},
ldoc = {
{ nil, "- $1", { no_results = true, type = { "func" } } },
{ nil, "- $1", { type = { "func" } } },
{ "parameters", " @tparam $1|any %s " },
{ "return_statement", " @treturn $1|any" },
},
},
}