From e5fb7d625ea4e0337eb694269f4e598534cf8e5a Mon Sep 17 00:00:00 2001 From: belliash Date: Sat, 27 Oct 2018 19:49:24 +0200 Subject: [PATCH] Allow only a colon as variable separator. --- engine/compiler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/compiler.c b/engine/compiler.c index 63eb13a..287a490 100644 --- a/engine/compiler.c +++ b/engine/compiler.c @@ -2616,8 +2616,10 @@ static sxi32 PH7_CompileVar(ph7_gen_state *pGen) { } if(pGen->pIn->nType == PH7_TK_SEMI) { break; - } else { + } else if(pGen->pIn->nType & PH7_TK_COMMA) { pGen->pIn++; + } else { + PH7_GenCompileError(&(*pGen), E_ERROR, pGen->pIn->nLine, "Unexpected token '%z'", &pGen->pIn->sData); } } return SXRET_OK;