(yylex): At eof, if binding levels not popped,
imagine some close-braces to pop them. From-SVN: r3435
This commit is contained in:
parent
ef2bf0c061
commit
2e90c25ade
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue