Make "args" reserved in thrift
authorMark Slee <mcslee@apache.org>
Fri, 21 Dec 2007 23:52:19 +0000 (23:52 +0000)
committerMark Slee <mcslee@apache.org>
Fri, 21 Dec 2007 23:52:19 +0000 (23:52 +0000)
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

compiler/cpp/src/thriftl.ll

index 320d28f..0889a12 100644 (file)
@@ -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); }