Fixed designator
This commit is contained in:
parent
00da3ddba8
commit
b106efc74f
@ -1801,7 +1801,7 @@ static int _designator_list(C99 * c99)
|
||||
/* designator */
|
||||
static int _designator(C99 * c99)
|
||||
/* "[" constant-expression "]"
|
||||
* identifier */
|
||||
* "." identifier */
|
||||
{
|
||||
int ret;
|
||||
|
||||
@ -1815,7 +1815,10 @@ static int _designator(C99 * c99)
|
||||
ret |= _parse_check(c99, C99_CODE_OPERATOR_RBRACKET);
|
||||
}
|
||||
else
|
||||
ret = _identifier(c99);
|
||||
{
|
||||
ret = _scan(c99);
|
||||
ret |= _identifier(c99);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user