forked from enlightenment/efl
elua: never actually fail parsing (keep error messages for debug, hidden by default)
This commit is contained in:
parent
9c3f65640c
commit
2d5806294a
|
@ -111,7 +111,8 @@ local parse = function(ls, keywords)
|
|||
local line = ls.line_number
|
||||
local kw = keywords[tok.value]
|
||||
ls:get()
|
||||
local args = parse_call(ls)
|
||||
local status, args = pcall(parse_call, ls)
|
||||
if status then
|
||||
local n1, n2, cx, an = kw[1], kw[2], kw.context, kw.argnum
|
||||
local n1arg, n2arg, cxarg = args[n1], args[n2], args[cx]
|
||||
local n1argt, n2argt, cxargt = n1arg and (n1arg[2] ~= "<name>"),
|
||||
|
@ -135,6 +136,7 @@ local parse = function(ls, keywords)
|
|||
xcomment = kw.xcomment, comment = sc, line = line,
|
||||
flags = fsc
|
||||
}
|
||||
end
|
||||
else
|
||||
ls:get()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue