From d5d4dcd4c988363beb2bb408ac31750e4c027176 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 13 Jul 2011 15:53:24 +0000 Subject: * Allow attribute names to be strings. Based on the allow-arbitrary-strinsg-in-names patch by Marc Weber. --- src/libexpr/parser.y | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libexpr/parser.y') diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index ec194a516..e5c586266 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -411,6 +411,8 @@ attrpath attr : ID { $$ = $1; } | OR_KW { $$ = "or"; } + | '"' STR '"' + { $$ = strdup(((string) ((ExprString *) $2)->s).c_str()); delete $2; } ; expr_list -- cgit v1.2.3