* src/reader.c (parse_braces): Don't fetch the next char, the

convention is to fetch on entry.
* tests/torture.at (GNU Cim Grammar): Reintroduce their weird
'switch' without a following semicolon.
* tests/regression.at (braces parsing): New.
This commit is contained in:
Akim Demaille
2002-01-06 20:50:08 +00:00
parent 3460813bdb
commit 2b25d624f6
4 changed files with 34 additions and 5 deletions

View File

@@ -1154,10 +1154,7 @@ parse_braces (symbol_list *rule, int stack_offset)
/* Above loop exits when C is '}'. */
if (--count)
{
obstack_1grow (&action_obstack, c);
c = getc (finput);
}
obstack_1grow (&action_obstack, c);
}
obstack_1grow (&action_obstack, '\0');