mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc/parser/c.rb (RDoc#handle_method): see source files in
source directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
166fedb45d
commit
232ced7342
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Apr 2 22:28:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/rdoc/parser/c.rb (RDoc#handle_method): see source files in
|
||||||
|
source directory.
|
||||||
|
|
||||||
Fri Apr 2 22:13:38 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Apr 2 22:13:38 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/rdoc/rdoc.rb: reverted r27186 to add generators.
|
* lib/rdoc/rdoc.rb: reverted r27186 to add generators.
|
||||||
|
|
|
@ -393,7 +393,7 @@ class RDoc::Parser::C < RDoc::Parser
|
||||||
elsif @content =~ %r{Document-(?:class|module):\s+#{class_name}\s*?(?:<\s+[:,\w]+)?\n((?>.*?\*/))}m then
|
elsif @content =~ %r{Document-(?:class|module):\s+#{class_name}\s*?(?:<\s+[:,\w]+)?\n((?>.*?\*/))}m then
|
||||||
comment = $1
|
comment = $1
|
||||||
elsif @content =~ %r{((?>/\*.*?\*/\s+))
|
elsif @content =~ %r{((?>/\*.*?\*/\s+))
|
||||||
([\w\.\s]+\s* = \s+)?rb_define_(class|module).*?"(#{class_name})"}xm then
|
([\w\.\s]+\s* = \s+)?rb_define_(class|module).*?"(#{class_name})"}xm then # "
|
||||||
comment = $1
|
comment = $1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -611,8 +611,7 @@ class RDoc::Parser::C < RDoc::Parser
|
||||||
meth_obj.params = "(" + (1..p_count).map{|i| "p#{i}"}.join(", ") + ")"
|
meth_obj.params = "(" + (1..p_count).map{|i| "p#{i}"}.join(", ") + ")"
|
||||||
end
|
end
|
||||||
|
|
||||||
if source_file and File.exist? source_file then
|
if source_file and File.exist?(file_name = File.join(@file_dir, source_file)) then
|
||||||
file_name = File.join(@file_dir, source_file)
|
|
||||||
body = (@@known_bodies[source_file] ||= File.read(file_name))
|
body = (@@known_bodies[source_file] ||= File.read(file_name))
|
||||||
elsif source_file then
|
elsif source_file then
|
||||||
warn "unknown source file #{source_file}"
|
warn "unknown source file #{source_file}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue