** 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. */
| 774 | ** so it is handled in separate. |
| 775 | */ |
| 776 | static int block_follow (LexState *ls, int withuntil) { |
| 777 | switch (ls->t.token) { |
| 778 | case TK_ELSE: case TK_ELSEIF: |
| 779 | case TK_END: case TK_EOS: |
| 780 | return 1; |
| 781 | case TK_UNTIL: return withuntil; |
| 782 | default: return 0; |
| 783 | } |
| 784 | } |
| 785 | |
| 786 | |
| 787 | static void statlist (LexState *ls) { |
no outgoing calls