Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

[PATCH] parse_c.rb: allow whitespace after function names: msg#00000

Subject: [PATCH] parse_c.rb: allow whitespace after function names
Hi,
here's a patch for rdoc (as shipped with ruby 1.8.1) that allows the
use of whitespace between a function name and the opening parenthesis,
like this:

rb_define_class_under (mFoo, "Bar", rb_cObject);
                     ^
Without the patch, rdoc wouldn't recognize the class definition because
it expects the opening parenthesis to appear just after the function
name.

I know omitting the space before the parenthesis is "ruby style", but
IMHO it makes sense to allow it for C code.

Please comment.

-- 
Regards,
Tilman

Attachment: rdoc_allow_whitespace.diff
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>