** 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. */
| 767 | ** so it is handled in separate. |
| 768 | */ |
| 769 | static int block_follow (LexState *ls, int withuntil) { |
| 770 | switch (ls->t.token) { |
| 771 | case TK_ELSE: case TK_ELSEIF: |
| 772 | case TK_END: case TK_EOS: |
| 773 | return 1; |
| 774 | case TK_UNTIL: return withuntil; |
| 775 | default: return 0; |
| 776 | } |
| 777 | } |
| 778 | |
| 779 | |
| 780 | static void statlist (LexState *ls) { |
no outgoing calls