Allow only a colon as variable separator.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2018-10-27 19:49:24 +02:00
parent 6f13c347d8
commit e5fb7d625e
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 3 additions and 1 deletions

View File

@ -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;