In parser.lua, line 443-444,, may be skip end instead of function?
-- Parses argument list and the statements.
local function parse_function(state, function_range)
local paren_range = copy_range(state)
check_and_skip_token(state, "(")
local args = {}
-- Are there arguments?
if state.token ~= ")" then
repeat
if state.token == "name" then
args[#args + 1] = parse_id(state)
elseif state.token == "..." then
args[#args + 1] = simple_expressions["..."](state)
break
else
parse_error(state, "expected argument")
end
until not test_and_skip_token(state, ",")
end
check_and_skip_closing_token(state, paren_range, "(")
local body = parse_block(state, function_range, "function")
local end_range = copy_range(state)
-- Skip "function". line 443
skip_token(state) --line 444
return new_inner_node(function_range, end_range, "Function", {args, body, end_range = end_range})
end
In
parser.lua, line 443-444,, may be skipendinstead offunction?