From e3d64af7ff7364bb1c1b6ebdb8599931e8a883c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Thu, 3 Oct 2013 13:21:36 +0000 Subject: [PATCH] [COMPILER] * BUG: Correctly raise a syntax error if the FOR EACH variable is not immediately followed by the IN keyword. git-svn-id: svn://localhost/gambas/trunk@5867 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/gbc/gbc_trans_ctrl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/gbc/gbc_trans_ctrl.c b/main/gbc/gbc_trans_ctrl.c index 362eaeb0d..31737e95d 100644 --- a/main/gbc/gbc_trans_ctrl.c +++ b/main/gbc/gbc_trans_ctrl.c @@ -1064,6 +1064,8 @@ void TRANS_for_each(void) if (!CODE_popify_last()) THROW("Invalid assignment"); + TRANS_want(RS_IN, "IN"); + JOB->current = save; } else