From 0f35c79ad6bcf409851049639d7200ce7f9787fb Mon Sep 17 00:00:00 2001 From: aycabta Date: Mon, 27 May 2019 01:59:17 +0900 Subject: Fix number literal regexp of IRB completion --- lib/irb/completion.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb') 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] -- cgit v1.2.3