Project

General

Profile

Feature #4222 » tab-completion-for-rare-method-invocation-syntax.patch

Add irb tab completion support for the valid (but rare) obj::method invocation syntax - abinoam (Abinoam P. Marques Jr.), 12/29/2010 01:10 PM

View differences:

lib/irb/completion.rb (cópia de trabalho)
# when /^(\$?(\.?[^.]+)+)\.([^.]*)$/
# when /^((\.?[^.]+)+)\.([^.]*)$/
when /^([^."].*)\.([^.]*)$/
# when /^([^."].*)\.([^.]*)$/
when /^([^."].*)(?:\.|::)([^.]*)$/
# variable
receiver = $1
message = Regexp.quote($2)
    (1-1/1)