Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: BUG: Parser unwinding (lack thereof)



On Wed, 6 May 2015 07:42:21 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On May 6, 12:08am, Bart Schaefer wrote:
> } Subject: BUG:  Parser unwinding (lack thereof)
> }
> } torch% print -l ${            
> } braceparam> ^C
> } torch% print -l ${
> } braceparam braceparam> 
>
> This seems to handle it:

That's obviously the effect of returning earlier on an error,
at which point stuff like hungetc() is unnecessary and bug-prone,
since 34817 / f1c702f2a4.

I don't see anything else that might need moving up --- I presume the
state of lexbuf is irrelevant, too.

pws



Messages sorted by: Reverse Date, Date, Thread, Author