Comma after ENUM with no explicit value
authorMark Slee <mcslee@apache.org>
Wed, 15 Nov 2006 21:25:34 +0000 (21:25 +0000)
committerMark Slee <mcslee@apache.org>
Wed, 15 Nov 2006 21:25:34 +0000 (21:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664874 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/thrift.y

index 468cbb3..e1dd84f 100644 (file)
@@ -316,7 +316,7 @@ EnumDef:
       $$ = new t_constant($1, $3);
     }
 |
-  tok_identifier
+  tok_identifier CommaOrSemicolonOptional
     {
       pdebug("EnumDef => tok_identifier");
       $$ = new t_constant($1);