** 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. */
| 604 | ** so it is handled in separate. |
| 605 | */ |
| 606 | static int block_follow(LexState *ls, int withuntil) { |
| 607 | switch (ls->t.token) { |
| 608 | case TK_ELSE: case TK_ELSEIF: |
| 609 | case TK_END: case TK_EOS: |
| 610 | return 1; |
| 611 | case TK_UNTIL: return withuntil; |
| 612 | default: return 0; |
| 613 | } |
| 614 | } |
| 615 | |
| 616 | |
| 617 | static void statlist(LexState *ls) { |
no outgoing calls