mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-07 05:47:36 +00:00
The list of enum values is now allowed to end in a comma.
Bug: 16490424 Change-Id: Ic3dd5f06efb5cf2dc4aefbd3f2db64c7b59b6b93 Tested: on OS X.
This commit is contained in:
@@ -725,7 +725,7 @@ void Parser::ParseEnum(bool is_union) {
|
||||
if (prevsize && enum_def.vals.vec[prevsize - 1]->value >= ev.value)
|
||||
Error("enum values must be specified in ascending order");
|
||||
}
|
||||
} while (IsNext(','));
|
||||
} while (IsNext(',') && token_ != '}');
|
||||
Expect('}');
|
||||
if (enum_def.attributes.Lookup("bit_flags")) {
|
||||
for (auto it = enum_def.vals.vec.begin(); it != enum_def.vals.vec.end();
|
||||
|
||||
Reference in New Issue
Block a user