mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
cached rdoc diagrams, private rdoc comments, minor clarifications in debug.rb and pp.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8e1789ded7
commit
2bf2f48a0b
7 changed files with 55 additions and 18 deletions
|
@ -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) + '[^(]*^\{.*?^\}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue