From: Mark Slee Date: Fri, 21 Dec 2007 23:52:19 +0000 (+0000) Subject: Make "args" reserved in thrift X-Git-Tag: 0.2.0~1068 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=c27fc31333720f7f959f526534fa8ed8f37bd532;p=common%2Fthrift.git Make "args" reserved in thrift Summary: Breaks the generated python code Reviewed By: dcorson Test Plan: Get an error if you use "args" as a variable name in Thrift. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665404 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/src/thriftl.ll b/compiler/cpp/src/thriftl.ll index 320d28fe..0889a122 100644 --- a/compiler/cpp/src/thriftl.ll +++ b/compiler/cpp/src/thriftl.ll @@ -114,6 +114,7 @@ st_identifier ([a-zA-Z-][\.a-zA-Z_0-9-]*) "abstract" { thrift_reserved_keyword(yytext); } "and" { thrift_reserved_keyword(yytext); } +"args" { thrift_reserved_keyword(yytext); } "as" { thrift_reserved_keyword(yytext); } "assert" { thrift_reserved_keyword(yytext); } "break" { thrift_reserved_keyword(yytext); }