MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / block_follow

Function block_follow

third-party/lua-5.3.5/src/lparser.c:587–595  ·  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

585** so it is handled in separate.
586*/
587static int block_follow (LexState *ls, int withuntil) {
588 switch (ls->t.token) {
589 case TK_ELSE: case TK_ELSEIF:
590 case TK_END: case TK_EOS:
591 return 1;
592 case TK_UNTIL: return withuntil;
593 default: return 0;
594 }
595}
596
597
598static void statlist (LexState *ls) {

Callers 4

statlistFunction · 0.70
labelstatFunction · 0.70
test_then_blockFunction · 0.70
retstatFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_then_blockFunction · 0.56