summaryrefslogtreecommitdiff
path: root/glcpp-parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'glcpp-parse.y')
-rw-r--r--glcpp-parse.y9
1 files changed, 8 insertions, 1 deletions
diff --git a/glcpp-parse.y b/glcpp-parse.y
index f972ec372b..58afd724b6 100644
--- a/glcpp-parse.y
+++ b/glcpp-parse.y
@@ -177,13 +177,20 @@ argument:
| argument word {
_string_list_append_item ($1, $2);
talloc_free ($2);
+ $$ = $1;
}
| argument SPACE word {
_string_list_append_item ($1, " ");
_string_list_append_item ($1, $3);
talloc_free ($3);
+ $$ = $1;
+ }
+| argument '(' argument ')' {
+ _string_list_append_item ($1, "(");
+ _string_list_append_list ($1, $3);
+ _string_list_append_item ($1, ")");
+ $$ = $1;
}
-| argument '(' argument ')'
;
directive_with_newline: