diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-29 14:47:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-29 14:47:01 +0000 |
commit | ccf4fbf78da3376ef2be6dbe222b77983008e4a6 (patch) | |
tree | 54ce66d15ab2b1836c935fc438d180ce42ed4a6b | |
parent | d2da9597c3b9f2dded80f53c16f4bf2c630e0ffe (diff) | |
download | ruby-ccf4fbf78da3376ef2be6dbe222b77983008e4a6.tar.gz |
* lib/rdoc/parser/ruby.rb (RDoc#parse_class): ignore non-constant
name signleton class. [Bug #3759], [ruby-dev:42154]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/rdoc/parser/ruby.rb | 2 | ||||
-rw-r--r-- | test/rdoc/test_rdoc_parser_ruby.rb | 2 |
3 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun Aug 29 23:46:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/rdoc/parser/ruby.rb (RDoc#parse_class): ignore non-constant + name signleton class. [Bug #3759], [ruby-dev:42154] + Sun Aug 29 23:25:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * file.c (rb_get_path_check): clarify error message for diff --git a/lib/rdoc/parser/ruby.rb b/lib/rdoc/parser/ruby.rb index 1876c339fa..c27d5fa0fd 100644 --- a/lib/rdoc/parser/ruby.rb +++ b/lib/rdoc/parser/ruby.rb @@ -568,7 +568,7 @@ class RDoc::Parser::Ruby < RDoc::Parser case name = get_class_specification when "self", container.name parse_statements container, SINGLE - else + when /\A[A-Z]/ other = RDoc::TopLevel.find_class_named name unless other then diff --git a/test/rdoc/test_rdoc_parser_ruby.rb b/test/rdoc/test_rdoc_parser_ruby.rb index 988bc507cd..33ffded723 100644 --- a/test/rdoc/test_rdoc_parser_ruby.rb +++ b/test/rdoc/test_rdoc_parser_ruby.rb @@ -429,6 +429,8 @@ end class A class << B end + class << d = Object.new + end end CODE |