From: Akim Demaille Date: Thu, 18 Apr 2013 14:37:23 +0000 (+0200) Subject: parser: do not convert $ and @ in code values of %define variables X-Git-Tag: v2.7.90~17 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/9402b623533a83d8aade70988622ad7e5f063117?ds=inline parser: do not convert $ and @ in code values of %define variables * src/parse-gram.y (value: "{...}"): Just strip the braces, but pass the value as is. --- diff --git a/src/parse-gram.y b/src/parse-gram.y index 4c87c909..9a266251 100644 --- a/src/parse-gram.y +++ b/src/parse-gram.y @@ -661,8 +661,7 @@ value: %empty { $$.kind = muscle_keyword; $$.chars = ""; } | ID { $$.kind = muscle_keyword; $$.chars = $1; } | STRING { $$.kind = muscle_string; $$.chars = $1; } -| "{...}" { $$.kind = muscle_code; - $$.chars = translate_code_braceless ($1, @1); } +| "{...}" { $$.kind = muscle_code; $$.chars = strip_braces ($1); } ;