Doxygen for lua function snippet
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
snippet fun "New function"
|
||||
function ${1:Name} ($2)
|
||||
$3
|
||||
-- @name $1
|
||||
`!p
|
||||
param = ""
|
||||
for i in t[2].split(","):
|
||||
param += f"-- @param {i.replace(' ', '')}\n"
|
||||
snip.rv = param
|
||||
`-- @short ${3:Description}
|
||||
function ${1:Name} (${2:})
|
||||
$4
|
||||
end;
|
||||
$0
|
||||
endsnippet
|
||||
|
||||
Reference in New Issue
Block a user