MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / block_follow

Function block_follow

3rd/lua-5.4.3/src/lparser.c:776–784  ·  view source on GitHub ↗

** check whether current token is in the follow set of a block. ** 'until' closes syntactical blocks, but do not close scope, ** so it is handled in separate. */

Source from the content-addressed store, hash-verified

774** so it is handled in separate.
775*/
776static int block_follow (LexState *ls, int withuntil) {
777 switch (ls->t.token) {
778 case TK_ELSE: case TK_ELSEIF:
779 case TK_END: case TK_EOS:
780 return 1;
781 case TK_UNTIL: return withuntil;
782 default: return 0;
783 }
784}
785
786
787static void statlist (LexState *ls) {

Callers 4

statlistFunction · 0.85
labelstatFunction · 0.85
test_then_blockFunction · 0.85
retstatFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_then_blockFunction · 0.68