tab-completion-for-rare-method-invocation-syntax.patch

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

Download (463 Bytes)

View differences:

lib/irb/completion.rb (cópia de trabalho)
131 131

  
132 132
#      when /^(\$?(\.?[^.]+)+)\.([^.]*)$/
133 133
#      when /^((\.?[^.]+)+)\.([^.]*)$/
134
      when /^([^."].*)\.([^.]*)$/
134
#      when /^([^."].*)\.([^.]*)$/
135
      when /^([^."].*)(?:\.|::)([^.]*)$/
135 136
	# variable
136 137
	receiver = $1
137 138
	message = Regexp.quote($2)