diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-23 16:21:17 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-23 16:21:17 +0000 |
commit | a3ecd5c83d57fb1556a40113f1b0c69c87261e33 (patch) | |
tree | d7899acd6ca4985d4eacf92bc2e93601ba2d8b5f /lib | |
parent | fd4a3ee4ac45995639ae361bf7ccb61a59ec124d (diff) | |
download | ruby-a3ecd5c83d57fb1556a40113f1b0c69c87261e33.tar.gz |
RDoc comments for Fixnum, Float, and Hash. Add heuristic to RDoc to handle yaml/stringio
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index bd3b1ec4df..a0e4044b6c 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -1879,9 +1879,11 @@ module RDoc name = name_t2.name when TkCONSTANT name = name_t2.name + prev_container = container container = container.find_module_named(name_t.name) if !container - error("Couldn't find module #{name_t.name}") + warn("Couldn't find #{name_t.name}. Assuming it's a module") + container = prev_container.add_module(NormalModule, name_t.name) end else # warn("Unexpected token '#{name_t2.inspect}'") |