summaryrefslogtreecommitdiff
path: root/lib/rdoc/ruby_lex.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-07 02:51:12 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-07 02:51:12 +0000
commit46e5c5622f4d4b6ef4570031eaf08c49a5712389 (patch)
treefa88c36c70c009bcc0cebab9b57fda9a3c0253cc /lib/rdoc/ruby_lex.rb
parentf0dc29f2115c8eb28fc880e3f8dbeb26babe2242 (diff)
* 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
Diffstat (limited to 'lib/rdoc/ruby_lex.rb')
-rw-r--r--lib/rdoc/ruby_lex.rb5
1 files changed, 1 insertions, 4 deletions
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
-