From 46e5c5622f4d4b6ef4570031eaf08c49a5712389 Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 7 Sep 2016 02:51:12 +0000 Subject: * lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0.beta1 This version is mostly same as r56072. It contains to remove code for Ruby 1.8 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/ruby_lex.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/rdoc/ruby_lex.rb') diff --git a/lib/rdoc/ruby_lex.rb b/lib/rdoc/ruby_lex.rb index 11ac8da85c..25788b6a29 100644 --- a/lib/rdoc/ruby_lex.rb +++ b/lib/rdoc/ruby_lex.rb @@ -1180,10 +1180,8 @@ class RDoc::RubyLex str = if ltype == quoted and %w[" ' /].include? ltype then ltype.dup - elsif RUBY_VERSION > '1.9' then - "%#{type or PERCENT_LTYPE.key ltype}#{PERCENT_PAREN_REV[quoted]||quoted}" else - "%#{type or PERCENT_LTYPE.index ltype}#{PERCENT_PAREN_REV[quoted]||quoted}" + "%#{type or PERCENT_LTYPE.key ltype}#{PERCENT_PAREN_REV[quoted]||quoted}" end subtype = nil @@ -1371,4 +1369,3 @@ class RDoc::RubyLex end #RDoc::RubyLex.debug_level = 1 - -- cgit v1.2.3