forked from enlightenment/efl
elua: can only specify a keyword once
This commit is contained in:
parent
819b65090b
commit
be3e046865
|
@ -279,6 +279,10 @@ for i = 1, #keywords do
|
||||||
error("invalid keyword specifier")
|
error("invalid keyword specifier")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if keywords[kwb] then
|
||||||
|
error("cannot specify the same keyword more than twice")
|
||||||
|
end
|
||||||
|
|
||||||
-- all sanitized, store :)
|
-- all sanitized, store :)
|
||||||
keywords[kwb] = { context = context, argnum = tonumber(argnum),
|
keywords[kwb] = { context = context, argnum = tonumber(argnum),
|
||||||
xcomment = xcmt, tonumber(n1), tonumber(n2) }
|
xcomment = xcmt, tonumber(n1), tonumber(n2) }
|
||||||
|
|
Loading…
Reference in New Issue