From db2a09bd1d6c9d07546e6984efc42f3b9d4803ea Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Sat, 17 Jun 2017 22:36:09 -0500 Subject: [PATCH] Allow trailing comma in enum (as in C99). Patch from Kelvin Sherlock. --- Parser.pas | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Parser.pas b/Parser.pas index 7fd1956..4ed9c30 100644 --- a/Parser.pas +++ b/Parser.pas @@ -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;