From 9b2a5be57f29f726a015ab1f444e6240787abc04 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Sun, 8 Jun 2008 19:55:41 +0200 Subject: [PATCH] adapt gendoc.lua to work with the new lua commands Signed-off-by: Julien Danjou --- build-utils/gendoc.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build-utils/gendoc.lua b/build-utils/gendoc.lua index d3a47710..2474e33f 100755 --- a/build-utils/gendoc.lua +++ b/build-utils/gendoc.lua @@ -5,8 +5,9 @@ function string.comment_clean(str) local s = str:gsub("/%*%* ", " ") s = s:gsub(" %* ", " ") - s = s:gsub("\\param", "\n\n Parameter:") - s = s:gsub("\\return", "\n\n Return:") + s = s:gsub("\\luastack", "") + s = s:gsub("\\lparam", "\n\n Parameter:") + s = s:gsub("\\lreturn", "\n\n Return:") return s end @@ -36,7 +37,9 @@ for i, line in ipairs(ilines) do end comment = nil elseif comment_start then - comment = comment .. line + if not line:find("\\param") and not line:find("\\return") then + comment = comment .. line + end end end