Doxygen for lua function snippet
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
snippet fun "New function"
|
snippet fun "New function"
|
||||||
function ${1:Name} ($2)
|
-- @name $1
|
||||||
$3
|
`!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;
|
end;
|
||||||
$0
|
$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|||||||
Reference in New Issue
Block a user