class RDoc::Parser::Ruby

def get_constant

def get_constant
  res = ""
  skip_tkspace false
  tk = get_tk
  while TkCOLON2 === tk or TkCOLON3 === tk or TkCONSTANT === tk do
    res += tk.name
    tk = get_tk
  end
     if res.empty?
       warn("Unexpected token #{tk} in constant")
     end
  unget_tk(tk)
  res
end