From c66ac662195640a12ebb629d218f3a2072658b7e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 24 Mar 2014 11:24:01 +0100 Subject: [PATCH] Allow semi-colons as separators for lterms. Refs #5846 --- lib/config/config_parser.yy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/config/config_parser.yy b/lib/config/config_parser.yy index 8d09a22f2..8be7318b5 100644 --- a/lib/config/config_parser.yy +++ b/lib/config/config_parser.yy @@ -515,11 +515,14 @@ lbinary_op: T_SET } ; +comma_or_semicolon: ',' | ';' + ; + lterm_items: lterm_items_inner { $$ = $1; } - | lterm_items_inner ',' + | lterm_items_inner comma_or_semicolon { $$ = $1; } @@ -534,7 +537,7 @@ lterm_items_inner: /* empty */ $$->Add(*$1); delete $1; } - | lterm_items_inner ',' lterm + | lterm_items_inner comma_or_semicolon lterm { if ($1) $$ = $1;