Re: Bug found

Petr Pisar <[email protected]> Mon, 18 Jun 2012 17:28:01 +0200
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
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