diff options
author | aycabta <aycabta@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-21 09:13:49 +0000 |
---|---|---|
committer | aycabta <aycabta@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-04-21 09:13:49 +0000 |
commit | 51cec00953ff8d7baa483d3846aa1dbdb89101aa (patch) | |
tree | 2900ea0ba7c09379990e9da2edda5d6ef8fa075c /lib/irb/completion.rb | |
parent | 683834eb72cfa77f4eac1c705327b522302b1721 (diff) | |
download | ruby-51cec00953ff8d7baa483d3846aa1dbdb89101aa.tar.gz |
Revert "IRB is improved with Reline and RDoc"
This reverts commit 7f273ac6d0f05208b5b228da95205e20c0e8286c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/completion.rb')
-rw-r--r-- | lib/irb/completion.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index a8f462f2fd..390e7254dd 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -8,10 +8,11 @@ # require "readline" -require "rdoc" module IRB module InputCompletor # :nodoc: + + # Set of reserved words used by Ruby, you should not use these for # constants or variables ReservedWords = %w[ @@ -194,14 +195,6 @@ module IRB end } - RDocRIDriver = RDoc::RI::Driver.new - PerfectMatchedProc = proc { |matched| - begin - RDocRIDriver.display_name(matched) - rescue RDoc::RI::Driver::NotFoundError - end - } - # Set of available operators in Ruby Operators = %w[% & * ** + - / < << <= <=> == === =~ > >= >> [] []= ^ ! != !~] @@ -249,4 +242,3 @@ if Readline.respond_to?("basic_word_break_characters=") end Readline.completion_append_character = nil Readline.completion_proc = IRB::InputCompletor::CompletionProc -Readline.dig_perfect_match_proc = IRB::InputCompletor::PerfectMatchedProc |