class RDoc::Parser::RipperStateLex

def get_heredoc_tk(heredoc_name, indent)

def get_heredoc_tk(heredoc_name, indent)
 = ''
tk = nil
k = nil
heredoc_end?(heredoc_name, indent, tk = @tokens.shift) do
t_tk = tk unless start_tk
prev_tk.nil? or "\n" == prev_tk[:text][-1]) and 0 != tk[:char_no]
ring = string + (' ' * tk[:char_no])
ng = string + tk[:text]
_tk = tk
tk = tk unless start_tk
k = tk unless prev_tk
nshift tk # closing heredoc
c_tk = Token.new(start_tk.line_no, start_tk.char_no, :on_heredoc, string, prev_tk.state)
nshift heredoc_tk