* lib/irb/completion.rb (CompletionProc): fix [ruby-dev:40953]
[Bug #3126]. Thanks Kazuhiro NISHIYAMA. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c871aee96b
commit
5ee43b0a94
@ -1,3 +1,8 @@
|
|||||||
|
Tue Apr 13 13:57:36 2010 Keiju Ishitsuka <keiju@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/irb/completion.rb (CompletionProc): fix [ruby-dev:40953]
|
||||||
|
[Bug #3126]. Thanks Kazuhiro NISHIYAMA.
|
||||||
|
|
||||||
Tue Apr 13 09:32:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
Tue Apr 13 09:32:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* transcode.c (transcode_loop): insert output the value when
|
* transcode.c (transcode_loop): insert output the value when
|
||||||
|
@ -81,10 +81,10 @@ module IRB
|
|||||||
candidates.grep(/^#{receiver}/).collect{|e| "::" + e}
|
candidates.grep(/^#{receiver}/).collect{|e| "::" + e}
|
||||||
|
|
||||||
# when /^(((::)?[A-Z][^:.\(]*)+)::?([^:.]*)$/
|
# when /^(((::)?[A-Z][^:.\(]*)+)::?([^:.]*)$/
|
||||||
when /^([A-Z].*)::([^:.]+)*$/
|
when /^([A-Z].*)::([^:.]*)$/
|
||||||
# Constant or class methods
|
# Constant or class methods
|
||||||
receiver = $1
|
receiver = $1
|
||||||
message = Regexp.quote($4)
|
message = Regexp.quote($2)
|
||||||
begin
|
begin
|
||||||
candidates = eval("#{receiver}.constants.collect{|m| m.to_s}", bind)
|
candidates = eval("#{receiver}.constants.collect{|m| m.to_s}", bind)
|
||||||
candidates |= eval("#{receiver}.methods.collect{|m| m.to_s}", bind)
|
candidates |= eval("#{receiver}.methods.collect{|m| m.to_s}", bind)
|
||||||
@ -134,7 +134,7 @@ module IRB
|
|||||||
when /^([^."].*)\.([^.]*)$/
|
when /^([^."].*)\.([^.]*)$/
|
||||||
# variable
|
# variable
|
||||||
receiver = $1
|
receiver = $1
|
||||||
message = Regexp.quote($3)
|
message = Regexp.quote($2)
|
||||||
|
|
||||||
gv = eval("global_variables", bind).collect{|m| m.to_s}
|
gv = eval("global_variables", bind).collect{|m| m.to_s}
|
||||||
lv = eval("local_variables", bind).collect{|m| m.to_s}
|
lv = eval("local_variables", bind).collect{|m| m.to_s}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user