1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Make RDoc ignore C function prototypes by Tilman Sauerbeck [ruby-core:8574].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2006-08-11 22:39:12 +00:00
parent d7ca9c352c
commit c3321a0266

View file

@ -553,7 +553,7 @@ module RDoc
def find_body(meth_name, meth_obj, body, quiet = false)
case body
when %r{((?>/\*.*?\*/\s*))(?:static\s+)?VALUE\s+#{meth_name}
\s*(\(.*?\)).*?^}xm
\s*(\([^)]*\))\s*\{.*?^\}}xm
comment, params = $1, $2
body_text = $&