diff options
author | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-08 23:17:53 +0000 |
---|---|---|
committer | ryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-08 23:17:53 +0000 |
commit | 46eebc130c2f7fb9fd887f7f239472dff83d7ba5 (patch) | |
tree | 75d28bc7c09f5119911e3543896c0eabc773a61e /lib/rdoc/parsers | |
parent | e606129fa1830fbbc5ec7ab8e127377874288ad9 (diff) | |
download | ruby-46eebc130c2f7fb9fd887f7f239472dff83d7ba5.tar.gz ruby-46eebc130c2f7fb9fd887f7f239472dff83d7ba5.tar.xz ruby-46eebc130c2f7fb9fd887f7f239472dff83d7ba5.zip |
cached rdoc diagrams, private rdoc comments, minor clarifications in debug.rb and pp.rb
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parsers')
-rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index 89d36c6c5..e43fb0082 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -212,6 +212,11 @@ module RDoc $stderr.flush end + def remove_private_comments(comment) + comment.gsub!(/\/?\*--(.*?)\/?\*\+\+/m, '') + comment.sub!(/\/?\*--.*/m, '') + end + # remove lines that are commented out that might otherwise get # picked up when scanning for classes and methods @@ -552,6 +557,8 @@ module RDoc comment, params = $1, $2 body_text = $& + remove_private_comments(comment) if comment + # see if we can find the whole body re = Regexp.escape(body_text) + '[^(]*^\{.*?^\}' |