make @class foo work when foo is already defined

This commit is contained in:
Bill Currie 2004-02-03 07:29:20 +00:00
parent 888ff5f571
commit 0f94dd95d2

View file

@ -1011,12 +1011,12 @@ obj_def
;
identifier_list
: NAME
: maybe_class
{
$$ = new_block_expr ();
append_expr ($$, new_name_expr ($1));
}
| identifier_list ',' NAME
| identifier_list ',' maybe_class
{
append_expr ($1, new_name_expr ($3));
$$ = $1;