On Mon, Jun 18, 2012 at 01:24:13PM +0100, Russell Wallace wrote:
> 
> a.h
> // *INDENT-OFF*
> 
> b.h
> struct x
> {
> };
> 
> then:
> 
> $ indent *.h
> indent: b.h:5: Error:Unexpected end of file
> 
> Sometimes small pieces of garbage will be added to b.h.
> 
Despite the a.h content is not a valid C code, I can reproduce the b.h
corruption with indent-2.2.11 on Gento and Fedora. Even after making a.h
valid.

I think the indent parser does not reset state completely when handing new
file over.

-- Petr

_______________________________________________
bug-indent mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-indent
  • Bug found Russell Wallace
    • Re: Bug found Petr Pisar

Reply via email to