[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 4.4 break and return: just before elseif?
- From: Hugo Musso Gualandi <hgualandi@...>
- Date: Tue, 03 Aug 2021 18:22:36 -0300
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