Specify template convention in lua

This commit is contained in:
Daniel Mathiot
2021-08-23 10:51:29 +02:00
parent 25ef26da35
commit dd54ea7708
4 changed files with 33 additions and 13 deletions

View File

@@ -139,10 +139,14 @@ generator = nil,
-- Template to use with the generator. (More on this below)
template = {
{ nil, "- " },
{ "parameters", "- @param %s any" },
{ "vararg", "- @vararg any" },
{ "return_statement", "- @return any" }
-- Which annotation convention to use
annotation_convention = "emmylua",
emmylua = {
{ nil, "- " },
{ "parameters", "- @param %s any" },
{ "vararg", "- @vararg any" },
{ "return_statement", "- @return any" }
}
},
```