mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 07:30:54 +00:00
Allow trailing comma in enum (as in C99).
Patch from Kelvin Sherlock.
This commit is contained in:
parent
a75d18a45c
commit
db2a09bd1d
@ -2821,6 +2821,9 @@ case token.kind of
|
|||||||
begin
|
begin
|
||||||
done := false;
|
done := false;
|
||||||
NextToken;
|
NextToken;
|
||||||
|
{kws -- allow trailing , in enum }
|
||||||
|
{ C99 6.7.2.2 Enumeration specifiers }
|
||||||
|
if token.kind = rbracech then done := true;
|
||||||
end {if}
|
end {if}
|
||||||
else
|
else
|
||||||
done := true;
|
done := true;
|
||||||
|
Loading…
Reference in New Issue
Block a user