From: Mark Slee Date: Thu, 13 Aug 2009 19:21:40 +0000 (+0000) Subject: THRIFT-561: Add "register" to list of reserved keywords X-Git-Tag: 0.2.0~46 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=f5a0b3dfc8b0d6f7d85de4f9b18f14d6584d3d3a;p=common%2Fthrift.git THRIFT-561: Add "register" to list of reserved keywords Reviewed By: dreiss git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@803997 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/src/thriftl.ll b/compiler/cpp/src/thriftl.ll index 2a8ab67e..c563f75d 100644 --- a/compiler/cpp/src/thriftl.ll +++ b/compiler/cpp/src/thriftl.ll @@ -180,6 +180,7 @@ literal_begin (['\"]) "private" { thrift_reserved_keyword(yytext); } "protected" { thrift_reserved_keyword(yytext); } "raise" { thrift_reserved_keyword(yytext); } +"register" { thrift_reserved_keyword(yytext); } "return" { thrift_reserved_keyword(yytext); } "sizeof" { thrift_reserved_keyword(yytext); } "static" { thrift_reserved_keyword(yytext); }