mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
I missed a trick. acc.fld.stridx should work properly now.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4749 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b328df6936
commit
389a2ee285
1 changed files with 8 additions and 3 deletions
|
@ -5276,9 +5276,14 @@ static QCC_ref_t *QCC_PR_ParseField(QCC_ref_t *refbuf, QCC_ref_t *lhs)
|
|||
{
|
||||
if (acc->indexertype)
|
||||
{
|
||||
QCC_PR_Expect("[");
|
||||
index = QCC_PR_Expression (TOP_PRIORITY, 0);
|
||||
QCC_PR_Expect("]");
|
||||
if (QCC_PR_CheckToken(".") || QCC_PR_CheckToken("->"))
|
||||
index = QCC_MakeStringConst(QCC_PR_ParseName());
|
||||
else
|
||||
{
|
||||
QCC_PR_Expect("[");
|
||||
index = QCC_PR_Expression (TOP_PRIORITY, 0);
|
||||
QCC_PR_Expect("]");
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue