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 | 6dfbfe73e35724420171cb1ebb9634f5c7d242bd (patch) | |
| tree | 035d065597963b53da0b9645bbee0fe8f442b8ea | |
| parent | 2e772275b5d5cca4afc83b9b100a31a8baf179ef (diff) | |
| download | ruby-6dfbfe73e35724420171cb1ebb9634f5c7d242bd.tar.gz ruby-6dfbfe73e35724420171cb1ebb9634f5c7d242bd.tar.xz ruby-6dfbfe73e35724420171cb1ebb9634f5c7d242bd.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/branches/ruby_1_8@7226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 3 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Mon Nov 8 22:20:19 2004 Dave Thomas <dave@pragprog.com> + + * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_class): + Fix bug where parent class wasn't being detected if the + child class was defined using the A::B notation. + Mon Nov 8 00:14:13 2004 WATANABE Hirofumi <eban@ruby-lang.org> * configure.in: add setup for mignw32 cross compiling. 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 |
