aboutsummaryrefslogtreecommitdiff
path: root/properties.y
diff options
context:
space:
mode:
Diffstat (limited to 'properties.y')
-rw-r--r--properties.y11
1 files changed, 10 insertions, 1 deletions
diff --git a/properties.y b/properties.y
index 7bdd864..9cf460e 100644
--- a/properties.y
+++ b/properties.y
@@ -36,7 +36,16 @@ property: KEY DIV value {
}
;
-value: VALUE {
+value: DIV {
+ $$.value = cpyval(2, sizeof(char), $1.value);
+ }
+ | value DIV {
+ char *s = strdup($$.value);
+ $$.value = calloc(strlen(s) + strlen($2.value) + 1, sizeof(char));
+ strcat($$.value, s);
+ strcat($$.value, $2.value);
+ }
+ | VALUE {
$$.value = cpyval(2, sizeof(char), $1.value);
}
| value VALUE {