]> granicus.if.org Git - icinga2/commitdiff
Fix ambiguity when parsing include_recursive
authorGunnar Beutner <gunnar@beutner.name>
Wed, 7 Jan 2015 16:22:29 +0000 (17:22 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Wed, 7 Jan 2015 16:22:29 +0000 (17:22 +0100)
fixes #8166

lib/config/config_parser.yy

index 795bee373afd2269f82aa182f6185ce52610b66f..8747f415f13403cf752e25c88e352573a8d439ea 100644 (file)
@@ -299,12 +299,12 @@ lterm_items: /* empty */
        }
        ;
 
-lterm_items_inner: lterm
+lterm_items_inner: lterm %dprec 2
        {
                $$ = new std::vector<Expression *>();
                $$->push_back($1);
        }
-       | lterm_items_inner sep lterm
+       | lterm_items_inner sep lterm %dprec 1
        {
                if ($1)
                        $$ = $1;