diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-09 02:02:58 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-09 02:02:58 +0000 |
commit | 76515504d552d3677f81539c29ed5f558f0dc4f0 (patch) | |
tree | ef35eaabde005fe0350b8ac955a63a4cebaa1cdc /lib/irb/completion.rb | |
parent | 5afa23b4a46b55667d8f1c6e4490dfb315c8616f (diff) | |
download | ruby-76515504d552d3677f81539c29ed5f558f0dc4f0.tar.gz |
* lib/irb.rb: removed commented-out code.
* lib/irb/**/*.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/completion.rb')
-rw-r--r-- | lib/irb/completion.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index b8f124f13b..05b1ed4873 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -38,8 +38,6 @@ module IRB CompletionProc = proc { |input| bind = IRB.conf[:MAIN_CONTEXT].workspace.binding - # puts "input: #{input}" - case input when /^((["'`]).*\2)\.([^.]*)$/ # String @@ -90,7 +88,6 @@ module IRB candidates = Object.constants.collect{|m| m.to_s} candidates.grep(/^#{receiver}/).collect{|e| "::" + e} - # when /^(((::)?[A-Z][^:.\(]*)+)::?([^:.]*)$/ when /^([A-Z].*)::([^:.]*)$/ # Constant or class methods receiver = $1 @@ -143,9 +140,6 @@ module IRB regmessage = Regexp.new(Regexp.quote($1)) candidates = global_variables.collect{|m| m.to_s}.grep(regmessage) - # when /^(\$?(\.?[^.]+)+)\.([^.]*)$/ - # when /^((\.?[^.]+)+)\.([^.]*)$/ - # when /^([^."].*)\.([^.]*)$/ when /^([^."].*)(\.|::)([^.]*)$/ # variable.func or func.func receiver = $1 @@ -228,7 +222,6 @@ module IRB end if Readline.respond_to?("basic_word_break_characters=") - # Readline.basic_word_break_characters= " \t\n\"\\'`><=;|&{(" Readline.basic_word_break_characters= " \t\n`><=;|&{(" end Readline.completion_append_character = nil |