mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge rdoc-6.0.0.beta4 from upstream.
It version applied `frozen_string_literal: true` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2d9f20e1cf
commit
5551871086
195 changed files with 1631 additions and 1258 deletions
|
@ -1,4 +1,4 @@
|
|||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
require 'time'
|
||||
|
||||
##
|
||||
|
@ -29,13 +29,13 @@ class RDoc::Parser::ChangeLog < RDoc::Parser
|
|||
|
||||
if last =~ /\)\s*\z/ and continuation =~ /\A\(/ then
|
||||
last.sub!(/\)\s*\z/, ',')
|
||||
continuation.sub!(/\A\(/, '')
|
||||
continuation = continuation.sub(/\A\(/, '')
|
||||
end
|
||||
|
||||
if last =~ /\s\z/ then
|
||||
last << continuation
|
||||
else
|
||||
last << ' ' << continuation
|
||||
last << ' ' + continuation
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -162,12 +162,12 @@ class RDoc::Parser::ChangeLog < RDoc::Parser
|
|||
|
||||
entry_body = []
|
||||
when /^(\t| {8})?\*\s*(.*)/ then # "\t* file.c (func): ..."
|
||||
entry_body << $2
|
||||
entry_body << $2.dup
|
||||
when /^(\t| {8})?\s*(\(.*)/ then # "\t(func): ..."
|
||||
entry = $2
|
||||
|
||||
if entry_body.last =~ /:/ then
|
||||
entry_body << entry
|
||||
entry_body << entry.dup
|
||||
else
|
||||
continue_entry_body entry_body, entry
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue