diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-08 13:25:26 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-08 13:25:26 +0000 |
commit | 8e6af559baa406a465a4d30c6af75624567129a5 (patch) | |
tree | 7602a9d2e8541d9ef478ea6f0dca7118b1d297c4 /lib/rdoc | |
parent | d4df2435b7211e7202a8c9d80e4c37050cb8b4e8 (diff) | |
download | ruby-8e6af559baa406a465a4d30c6af75624567129a5.tar.gz ruby-8e6af559baa406a465a4d30c6af75624567129a5.tar.xz ruby-8e6af559baa406a465a4d30c6af75624567129a5.zip |
Fix bug where parent class wasn't being detected if the
child class was defined using the A::B notation.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index 5a98258f7..b8367b564 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -1747,7 +1747,7 @@ module RDoc when TkCONSTANT name = name_t.name superclass = "Object" - + if peek_tk.kind_of?(TkLT) get_tk skip_tkspace(true) @@ -1826,6 +1826,7 @@ module RDoc get_tk name_t = get_tk end + skip_tkspace(false) return [container, name_t] end |