mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import RDoc 2.5.7. Fixes #1318 and ruby-core:29780
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3a87c3c560
commit
336a8301f7
28 changed files with 428 additions and 144 deletions
|
|
@ -661,7 +661,7 @@ class RDoc::Parser::C < RDoc::Parser
|
|||
def look_for_directives_in(context, comment)
|
||||
preprocess = RDoc::Markup::PreProcess.new @file_name, @options.rdoc_include
|
||||
|
||||
preprocess.handle comment do |directive, param|
|
||||
preprocess.handle comment, context do |directive, param|
|
||||
case directive
|
||||
when 'main' then
|
||||
@options.main_page = param
|
||||
|
|
@ -669,9 +669,6 @@ class RDoc::Parser::C < RDoc::Parser
|
|||
when 'title' then
|
||||
@options.title = param
|
||||
''
|
||||
else
|
||||
context.metadata[directive] = param
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue