Only identifiers should be allowed as constant name.
所有检测均成功
The build was successful.

这个提交包含在:
Rafal Kupiec 2019-05-06 18:38:56 +02:00
父节点 cedc288f67
当前提交 d3ae1c1bf4
签署人:: belliash
GPG 密钥 ID: 4E829243E0CFE6B4

查看文件

@ -1351,7 +1351,7 @@ static sxi32 PH7_CompileConstant(ph7_gen_state *pGen) {
char *zName; char *zName;
sxi32 rc; sxi32 rc;
pGen->pIn++; /* Jump the 'const' keyword */ pGen->pIn++; /* Jump the 'const' keyword */
if(pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & (PH7_TK_SSTR | PH7_TK_DSTR | PH7_TK_ID | PH7_TK_KEYWORD)) == 0) { if(pGen->pIn >= pGen->pEnd || (pGen->pIn->nType & PH7_TK_ID) == 0) {
/* Invalid constant name */ /* Invalid constant name */
PH7_GenCompileError(pGen, E_ERROR, nLine, "const: Invalid constant name"); PH7_GenCompileError(pGen, E_ERROR, nLine, "const: Invalid constant name");
} }