** 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. */
| 591 | ** so it handled in separate. |
| 592 | */ |
| 593 | static 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 | |
| 604 | static void statlist (LexState *ls) { |
no outgoing calls