diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index 2696f597a6..5b36af23e4 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -145,7 +145,7 @@ module IRB select_message(receiver, message, candidates, sep) end - when /^(?-?(0[dbo])?[0-9_]+(\.[0-9_]+)?([eE]-?[0-9]+)?)(?\.|::)(?[^.]*)$/ + when /^(?-?(0[dbo])?[0-9_]+(\.[0-9_]+)?([eE][+-]?[0-9]+i?|r)?)(?\.|::)(?[^.]*)$/ # Numeric receiver = $~[:num] sep = $~[:sep]