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

Function block_follow

third-party/lua-5.5.0/src/lparser.c:864–872  ·  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

862** so it is handled in separate.
863*/
864static int block_follow (LexState *ls, int withuntil) {
865 switch (ls->t.token) {
866 case TK_ELSE: case TK_ELSEIF:
867 case TK_END: case TK_EOS:
868 return 1;
869 case TK_UNTIL: return withuntil;
870 default: return 0;
871 }
872}
873
874
875static void statlist (LexState *ls) {

Callers 3

statlistFunction · 0.70
labelstatFunction · 0.70
retstatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected