lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


return before elseif is also allowed. I suppose we could count the elseif as a kind of else.

The relevant subroutine inside the parser is called "block_follow":
https://github.com/lua/lua/blob/439e45a2f69549b674d6a6e2023e8debfa00a2b8/lparser.c#L787

-- Hugo