* 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:
Akim Demaille
2001-11-26 09:49:58 +00:00
parent cd7f95831e
commit 33285af04d
3 changed files with 33 additions and 5 deletions

View File

@@ -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 ('%');