summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/ruby-lex.rb2
-rw-r--r--lib/irb/slex.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index 76e3ebac44..72600289b8 100644
--- a/lib/irb/ruby-lex.rb
+++ b/lib/irb/ruby-lex.rb
@@ -623,7 +623,7 @@ class RubyLex
tk_c = TkLPAREN
end
@indent_stack.push tk_c
- tk = Token(tk_c)
+ Token(tk_c)
end
@OP.def_rule("[]", proc{|op, io| @lex_state == EXPR_FNAME}) do
diff --git a/lib/irb/slex.rb b/lib/irb/slex.rb
index fac62bfd93..b395eaa475 100644
--- a/lib/irb/slex.rb
+++ b/lib/irb/slex.rb
@@ -35,7 +35,7 @@ module IRB
D_DETAIL.pp token
postproc = block if block_given?
- node = create(token, preproc, postproc)
+ create(token, preproc, postproc)
end
def def_rules(*tokens, &block)