mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12:53:03 +00:00
* src/reader.c (read_declarations): Don't abort on tok_illegal,
issue an error message. * tests/regression.at (Invalid %directive): New. Reported by Hans Aberg.
This commit is contained in:
@@ -1018,10 +1018,10 @@ read_declarations (void)
|
||||
case tok_stropt:
|
||||
case tok_intopt:
|
||||
case tok_obsolete:
|
||||
case tok_illegal:
|
||||
abort ();
|
||||
break;
|
||||
|
||||
case tok_illegal:
|
||||
default:
|
||||
complain (_("unrecognized: %s"), token_buffer);
|
||||
skip_to_char ('%');
|
||||
|
||||
Reference in New Issue
Block a user