summaryrefslogtreecommitdiff
path: root/lib/irb/completion.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-03 05:04:02 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-03 05:04:02 +0000
commitae846f9fb810ecd241a20579495a94a15212ca56 (patch)
treecf18c37e6b8fce92d71291c3914de99150a43fb9 /lib/irb/completion.rb
parent2b7279ba5fce23a653323423309cfa4fc1173e06 (diff)
* lib/irb/completion.rb (IRB::InputCompletor::Operators): Add
overloadable negative operators. * lib/irb/ruby-lex.rb (RubyLex#lex_init): Support overloadable negative operators. * lib/irb/ruby-lex.rb (RubyLex#identify_identifier): Minus signs need to be escaped in regexp character class. * misc/ruby-mode.el (ruby-font-lock-keywords, ruby-parse-partial): Support overloadable negative operators. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/completion.rb')
-rw-r--r--lib/irb/completion.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
index a31bee0c76..459f856dfe 100644
--- a/lib/irb/completion.rb
+++ b/lib/irb/completion.rb
@@ -184,7 +184,7 @@ module IRB
Operators = ["%", "&", "*", "**", "+", "-", "/",
"<", "<<", "<=", "<=>", "==", "===", "=~", ">", ">=", ">>",
- "[]", "[]=", "^",]
+ "[]", "[]=", "^", "!", "!=", "!~"]
def self.select_message(receiver, message, candidates)
candidates.grep(/^#{message}/).collect do |e|