summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
authorkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-27 15:35:04 +0000
committerkeiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-06-27 15:35:04 +0000
commitcc13bb43bcb1e6b6798bb3190eeb65494dd2d320 (patch)
treeff56adadf7f83d0c7c77545ae118fceaa111a13b /lib/irb
parentcf376264011dbeb9c2de1aa17e505abcd5803056 (diff)
* lib/matrix.rb: resolve 'ruby -w' warnings.
* lib/irb/locale.rb: resolve 'ruby -w' warnings. * lib/irb/multi-irb.rb: resolve 'ruby -w' warnings. * lib/irb/ruby-lex.rb: fix problem for "\\M-\\..." and "\\C-\\..." and resolve 'ruby -w' warnings. * lib/irb/ruby-token.rb: fix typo * lib/shell/command-processor.rb: resolve 'ruby -w' warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/locale.rb4
-rw-r--r--lib/irb/multi-irb.rb2
-rw-r--r--lib/irb/ruby-lex.rb4
-rw-r--r--lib/irb/ruby-token.rb2
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb
index 0eeeae031d..e0a44f3421 100644
--- a/lib/irb/locale.rb
+++ b/lib/irb/locale.rb
@@ -62,7 +62,7 @@ module IRB
def print(*opts)
ary = opts.collect{|opt| String(opt)}
- super *ary
+ super(*ary)
end
def printf(*opts)
@@ -72,7 +72,7 @@ module IRB
def puts(*opts)
ary = opts.collect{|opt| String(opts)}
- super *ary
+ super(*ary)
end
def require(file, priv = nil)
diff --git a/lib/irb/multi-irb.rb b/lib/irb/multi-irb.rb
index 6e97512e27..77d9921ea8 100644
--- a/lib/irb/multi-irb.rb
+++ b/lib/irb/multi-irb.rb
@@ -90,7 +90,7 @@ module IRB
IRB.fail NoSuchJob, key unless @jobs[key]
@jobs[key] = nil
else
- catch (:EXISTS) do
+ catch(:EXISTS) do
@jobs.each_index do
|i|
if @jobs[i] and (@jobs[i][0] == key ||
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index 3a862002a6..3647617849 100644
--- a/lib/irb/ruby-lex.rb
+++ b/lib/irb/ruby-lex.rb
@@ -954,7 +954,7 @@ class RubyLex
ungetc
else
if (ch = getc) == "\\" #"
- read_escape(chrs)
+ read_escape
end
end
@@ -962,7 +962,7 @@ class RubyLex
if ch == "C" and (ch = getc) != "-"
ungetc
elsif (ch = getc) == "\\" #"
- read_escape(chrs)
+ read_escape
end
else
# other characters
diff --git a/lib/irb/ruby-token.rb b/lib/irb/ruby-token.rb
index 2e5715c9f7..373c8defea 100644
--- a/lib/irb/ruby-token.rb
+++ b/lib/irb/ruby-token.rb
@@ -218,7 +218,7 @@ module RubyToken
[:TkBACKQUOTE, TkOp, "`"],
- [:TkASSGIN, Token, "="],
+ [:TkASSIGN, Token, "="],
[:TkDOT, Token, "."],
[:TkLPAREN, Token, "("], #(exp)
[:TkLBRACK, Token, "["], #[arry]