[ruby/rdoc] Non-RD part feature has not been imported to RDoc
https://github.com/ruby/rdoc/commit/fe0159de2f
This commit is contained in:
parent
b749bc05d0
commit
acd857b989
@ -127,15 +127,19 @@ def next_token # :nodoc:
|
|||||||
# non-RD part begin
|
# non-RD part begin
|
||||||
when /^=begin\s+(\w+)/
|
when /^=begin\s+(\w+)/
|
||||||
part = $1
|
part = $1
|
||||||
|
=begin # not imported to RDoc
|
||||||
if @in_part # if in non-RD part
|
if @in_part # if in non-RD part
|
||||||
@part_content.push(line)
|
@part_content.push(line)
|
||||||
else
|
else
|
||||||
@in_part = part if @tree.filter[part] # if filter exists
|
@in_part = part if @tree.filter[part] # if filter exists
|
||||||
# p "BEGIN_PART: #{@in_part}" # DEBUG
|
# p "BEGIN_PART: #{@in_part}" # DEBUG
|
||||||
end
|
end
|
||||||
|
=end
|
||||||
|
@in_part = part
|
||||||
# non-RD part end
|
# non-RD part end
|
||||||
when /^=end/
|
when /^=end/
|
||||||
if @in_part # if in non-RD part
|
if @in_part # if in non-RD part
|
||||||
|
=begin # not imported to RDoc
|
||||||
# p "END_PART: #{@in_part}" # DEBUG
|
# p "END_PART: #{@in_part}" # DEBUG
|
||||||
# make Part-in object
|
# make Part-in object
|
||||||
part = RDoc::RD::Part.new(@part_content.join(""), @tree, "r")
|
part = RDoc::RD::Part.new(@part_content.join(""), @tree, "r")
|
||||||
@ -154,11 +158,14 @@ def next_token # :nodoc:
|
|||||||
end
|
end
|
||||||
@in_part = nil
|
@in_part = nil
|
||||||
return [:SUBTREE, subtree]
|
return [:SUBTREE, subtree]
|
||||||
|
=end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
=begin # not imported to RDoc
|
||||||
if @in_part # if in non-RD part
|
if @in_part # if in non-RD part
|
||||||
@part_content.push(line)
|
@part_content.push(line)
|
||||||
end
|
end
|
||||||
|
=end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user