From: Tilman Sauerbeck Date: 2006-07-29T02:39:59+09:00 Subject: RDoc picking up comments from function prototypes --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, just in case anyone cares about RDoc's C parser: I've got a chunk of code that looks like this: #ifdef FOO # define BAR ... #endif /* FOO */ static VALUE c_some_method (...); /* more method bodies */ Later in the file, the implementation of c_some_method() follows, including a nice RDoc comment. But, RDoc is picking up the comment above the *prototype* of the method (/* FOO */) and storing it, instead of the RDoc comment in the implementation of the method. Does anyone feel like hacking away at RDoc's regexp horror? ;) Regards, Tilman --=20 A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) iD8DBQFEykvr27uLisrW2w8RAnZqAJ9QLeaaL6WtJPlcozrhLSkTqtLL+wCcCiNu NGG5BIhFIBKxblf+ELQLu4g= =6/Y9 -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--