mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix parse bug with toplevel methods. Allow RDoc in =begin rdoc/=end comments (experimental)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
64ec09d456
commit
ef38efca9f
5 changed files with 66 additions and 26 deletions
|
|
@ -404,6 +404,15 @@ module RDoc
|
|||
@@all_classes = {}
|
||||
@@all_modules = {}
|
||||
|
||||
def comment=(t)
|
||||
if @c
|
||||
fail t
|
||||
else
|
||||
@c = true
|
||||
end
|
||||
super
|
||||
end
|
||||
|
||||
def TopLevel::reset
|
||||
@@all_classes = {}
|
||||
@@all_modules = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue