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

Function block_follow

third-party/lua-5.2.4/src/lparser.c:593–601  ·  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 handled in separate. */

Source from the content-addressed store, hash-verified

591** so it handled in separate.
592*/
593static int block_follow (LexState *ls, int withuntil) {
594 switch (ls->t.token) {
595 case TK_ELSE: case TK_ELSEIF:
596 case TK_END: case TK_EOS:
597 return 1;
598 case TK_UNTIL: return withuntil;
599 default: return 0;
600 }
601}
602
603
604static 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