Allow semi-colons as separators for lterms.

Refs #5846
This commit is contained in:
Gunnar Beutner 2014-03-24 11:24:01 +01:00
parent 8e699ac0fa
commit c66ac66219
1 changed files with 5 additions and 2 deletions

View File

@ -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;