MCPcopy Create free account
hub / github.com/F-Stack/f-stack / block_follow

Function block_follow

freebsd/contrib/openzfs/module/lua/lparser.c:591–599  ·  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

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

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