From 6dfbfe73e35724420171cb1ebb9634f5c7d242bd Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 8 Nov 2004 13:25:26 +0000 Subject: 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/branches/ruby_1_8@7226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/parsers/parse_rb.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit