mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-21 16:29:31 +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
|
||||
done := false;
|
||||
NextToken;
|
||||
{kws -- allow trailing , in enum }
|
||||
{ C99 6.7.2.2 Enumeration specifiers }
|
||||
if token.kind = rbracech then done := true;
|
||||
end {if}
|
||||
else
|
||||
done := true;
|
||||
|
Loading…
Reference in New Issue
Block a user