Actually I don't think this fix is correct. It will end up eating
whitespace from a comment when the next token is not a newline.

On Thu, Aug 16, 2012 at 11:09 PM, João Matos <[email protected]>wrote:

> Attached is a patch that fixes a problem when handling \brief style
> comments.
> If the line after the first paragraph has any whitespace (following the *
> comment tokens), then the end of the paragraph check will fail, since it
> gets a text token, instead of an expected newline.
>
> Found this while trying to parse the SDL headers, so I'm attaching an
> extract of it that shows the problem in question. It only happens on the
> second struct (SDL_Rect).
>
> I'm not sure if this is the right fix, but it fixes it on this header.
>
> --
> João Matos
>



-- 
João Matos
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to