adapt gendoc.lua to work with the new lua commands
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
125d12a1a2
commit
9b2a5be57f
|
@ -5,8 +5,9 @@
|
||||||
function string.comment_clean(str)
|
function string.comment_clean(str)
|
||||||
local s = str:gsub("/%*%* ", " ")
|
local s = str:gsub("/%*%* ", " ")
|
||||||
s = s:gsub(" %* ", " ")
|
s = s:gsub(" %* ", " ")
|
||||||
s = s:gsub("\\param", "\n\n Parameter:")
|
s = s:gsub("\\luastack", "")
|
||||||
s = s:gsub("\\return", "\n\n Return:")
|
s = s:gsub("\\lparam", "\n\n Parameter:")
|
||||||
|
s = s:gsub("\\lreturn", "\n\n Return:")
|
||||||
return s
|
return s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -36,8 +37,10 @@ for i, line in ipairs(ilines) do
|
||||||
end
|
end
|
||||||
comment = nil
|
comment = nil
|
||||||
elseif comment_start then
|
elseif comment_start then
|
||||||
|
if not line:find("\\param") and not line:find("\\return") then
|
||||||
comment = comment .. line
|
comment = comment .. line
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Get function list and print their documentation
|
-- Get function list and print their documentation
|
||||||
|
|
Loading…
Reference in New Issue