From c27fc31333720f7f959f526534fa8ed8f37bd532 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Fri, 21 Dec 2007 23:52:19 +0000 Subject: [PATCH] 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 --- compiler/cpp/src/thriftl.ll | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.17.1