Throw an error only if this is not the end of tokens stream.
Wszystkie etapy powiodły się
The build was successful.
Wszystkie etapy powiodły się
The build was successful.
This commit is contained in:
@@ -2289,7 +2289,7 @@ static sxi32 PH7_CompileVar(ph7_gen_state *pGen) {
|
|||||||
break;
|
break;
|
||||||
} else if(pGen->pIn->nType & PH7_TK_COMMA) {
|
} else if(pGen->pIn->nType & PH7_TK_COMMA) {
|
||||||
pGen->pIn++;
|
pGen->pIn++;
|
||||||
} else {
|
} else if(pGen->pIn < pGen->pEnd) {
|
||||||
PH7_GenCompileError(&(*pGen), E_ERROR, pGen->pIn->nLine, "Unexpected token '%z'", &pGen->pIn->sData);
|
PH7_GenCompileError(&(*pGen), E_ERROR, pGen->pIn->nLine, "Unexpected token '%z'", &pGen->pIn->sData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user