diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index f5361e16a2..751d6ec526 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -167,7 +167,7 @@ class RubyLex end end else - tokens = lexer.parse + tokens = lexer.parse.reject { |it| it.pos.first == 0 } end end tokens