mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import RDoc r104. Various test fixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dbd68031e0
commit
71b4ecb3d3
5 changed files with 86 additions and 34 deletions
|
@ -53,10 +53,13 @@ class RDoc::Parser
|
|||
# "new_ext" will be parsed using the same parser as "old_ext"
|
||||
|
||||
def self.alias_extension(old_ext, new_ext)
|
||||
old_ext = old_ext.sub(/^\.(.*)/, '\1')
|
||||
new_ext = new_ext.sub(/^\.(.*)/, '\1')
|
||||
|
||||
parser = can_parse "xxx.#{old_ext}"
|
||||
return false unless parser
|
||||
|
||||
RDoc::Parser.parsers.unshift [/\.#{new_ext}$/, parser.last]
|
||||
RDoc::Parser.parsers.unshift [/\.#{new_ext}$/, parser]
|
||||
|
||||
true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue