Commit 2e90c25a by Richard Stallman

(yylex): At eof, if binding levels not popped,

imagine some close-braces to pop them.

From-SVN: r3435
parent ef2bf0c0
......@@ -1024,6 +1024,13 @@ yylex ()
{
case EOF:
end_of_file = 1;
if (! global_bindings_p ())
{
yyerror ("parse error");
token_buffer[0] = '}';
value = '}';
break;
}
token_buffer[0] = 0;
value = ENDFILE;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment