build: ignore lvalue
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
ad7e0ab9ec
commit
8e4873b3aa
|
@ -13,14 +13,15 @@ function string.comment_translate(s)
|
||||||
local lua_comment = "";
|
local lua_comment = "";
|
||||||
nparam = 0;
|
nparam = 0;
|
||||||
for line in s:gmatch("[^\r\n]+") do
|
for line in s:gmatch("[^\r\n]+") do
|
||||||
|
if not line:match("\\lvalue") then
|
||||||
line = line:gsub("/%*%*", "---")
|
line = line:gsub("/%*%*", "---")
|
||||||
line = line:gsub("^.*%*", "--")
|
line = line:gsub("^.*%*", "--")
|
||||||
line = line:gsub("\\lvalue", "")
|
|
||||||
line = line:gsub("\\(lparam)", string.replace_param)
|
line = line:gsub("\\(lparam)", string.replace_param)
|
||||||
line = line:gsub("\\lreturn", "@return")
|
line = line:gsub("\\lreturn", "@return")
|
||||||
line = line:gsub("\\lfield", "@field")
|
line = line:gsub("\\lfield", "@field")
|
||||||
lua_comment = lua_comment .. line .. "\n"
|
lua_comment = lua_comment .. line .. "\n"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
-- remove last \n
|
-- remove last \n
|
||||||
lua_comment = lua_comment:sub(1, #lua_comment - 1)
|
lua_comment = lua_comment:sub(1, #lua_comment - 1)
|
||||||
return lua_comment
|
return lua_comment
|
||||||
|
|
|
@ -350,7 +350,7 @@ luaA_keybinding_new(lua_State *L)
|
||||||
* \param L The Lua VM state.
|
* \param L The Lua VM state.
|
||||||
*
|
*
|
||||||
* \luastack
|
* \luastack
|
||||||
* \lparam A keybinding.
|
* \lvalue A keybinding.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
luaA_keybinding_add(lua_State *L)
|
luaA_keybinding_add(lua_State *L)
|
||||||
|
@ -364,7 +364,7 @@ luaA_keybinding_add(lua_State *L)
|
||||||
* \param L The Lua VM state.
|
* \param L The Lua VM state.
|
||||||
*
|
*
|
||||||
* \luastack
|
* \luastack
|
||||||
* \lparam A keybinding.
|
* \lvalue A keybinding.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
luaA_keybinding_remove(lua_State *L)
|
luaA_keybinding_remove(lua_State *L)
|
||||||
|
|
Loading…
Reference in New Issue