aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-07-13 15:53:24 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-07-13 15:53:24 +0000
commitd5d4dcd4c988363beb2bb408ac31750e4c027176 (patch)
treef178a6260ba4eb62f158b97f09e0615e547b67d8 /src/libexpr
parente649f3168bb03053c8201489ca52f9077c0d8b17 (diff)
* Allow attribute names to be strings. Based on the
allow-arbitrary-strinsg-in-names patch by Marc Weber.
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/parser.y2
1 files changed, 2 insertions, 0 deletions
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