class YARD::Parser::Ruby::Legacy::TokenList

def convert_token(lex, tk)

def convert_token(lex, tk)
  if TkIDENTIFIER === tk && lex.peek == ':'
    next_tk = lex.token
    sym = TkLABEL.new(tk.line_no, tk.char_no, nil)
    sym.lex_state = lex.lex_state
    sym.set_text(tk.text + next_tk.text)
  elsif TkSYMBEG === tk
    next_tk = lex.token
    if next_tk
      sym = TkSYMBOL.new(tk.line_no, tk.char_no, nil)
      sym.lex_state = lex.lex_state
      sym.set_text(tk.text + next_tk.text)
    else
      tk
    end
  else
    tk
  end
end