From 787f3b5d5f495eabd404e1e9b67ccef5821dbca5 Mon Sep 17 00:00:00 2001 From: belliash Date: Thu, 16 Aug 2018 12:01:36 +0200 Subject: [PATCH] Synchronize the namespace also with first semicolon. --- engine/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/compiler.c b/engine/compiler.c index 96b92aa..3abea94 100644 --- a/engine/compiler.c +++ b/engine/compiler.c @@ -2617,7 +2617,7 @@ static sxi32 PH7_CompileNamespace(ph7_gen_state *pGen) { sxi32 rc; pGen->pIn++; /* Jump the 'namespace' keyword */ if(pGen->pIn >= pGen->pEnd || - (pGen->pIn->nType & (PH7_TK_NSSEP | PH7_TK_ID | PH7_TK_KEYWORD | PH7_TK_OCB/*'{'*/)) == 0) { + (pGen->pIn->nType & (PH7_TK_NSSEP | PH7_TK_ID | PH7_TK_KEYWORD | PH7_TK_SEMI/*';'*/ | PH7_TK_OCB/*'{'*/)) == 0) { SyToken *pTok = pGen->pIn; if(pTok >= pGen->pEnd) { pTok--;