From: Gunnar Beutner Date: Fri, 16 Jan 2015 07:41:27 +0000 (+0100) Subject: Make argument for the return keyword optional X-Git-Tag: v2.3.0~370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76fefaf9e2dc0f4aeaa453e4e1c2c1395af4702f;p=icinga2 Make argument for the return keyword optional fixes #8237 --- diff --git a/lib/config/config_parser.yy b/lib/config/config_parser.yy index 2abebd6f7..91eb317a4 100644 --- a/lib/config/config_parser.yy +++ b/lib/config/config_parser.yy @@ -591,7 +591,7 @@ lterm: type $$ = MakeLiteral(); } - | T_RETURN rterm + | T_RETURN optional_rterm { $$ = new ReturnExpression($2, @$); }