aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/completion.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb/completion.rb')
-rw-r--r--lib/irb/completion.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
index 3f886f507c..3b4a07186f 100644
--- a/lib/irb/completion.rb
+++ b/lib/irb/completion.rb
@@ -9,10 +9,12 @@
require "readline"
module IRB
- module InputCompletor
+ module InputCompletor # :nodoc:
@RCS_ID='-$Id$-'
+ # Set of reserved words used by Ruby, you should not use these for
+ # constants or variables
ReservedWords = [
"BEGIN", "END",
"alias", "and",
@@ -208,6 +210,7 @@ module IRB
end
}
+ # Set of available operators in Ruby
Operators = ["%", "&", "*", "**", "+", "-", "/",
"<", "<<", "<=", "<=>", "==", "===", "=~", ">", ">=", ">>",
"[]", "[]=", "^", "!", "!=", "!~"]