diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb index 8aad81b74b..73933ca5b6 100644 --- a/ext/ripper/lib/ripper/lexer.rb +++ b/ext/ripper/lib/ripper/lexer.rb @@ -161,7 +161,7 @@ class Ripper def on_heredoc_beg(tok) @stack.push @buf buf = [] - @buf << buf + @buf.push buf @buf = buf @buf.push Elem.new([lineno(), column()], __callee__, tok, state()) end