#ifndef color_registry_hh_INCLUDED #define color_registry_hh_INCLUDED #include #include "color.hh" #include "utils.hh" namespace Kakoune { using ColorPair = std::pair; class ColorRegistry : public Singleton { public: const ColorPair& operator[](const String& colordesc); void register_alias(const String& name, const String& colordesc); private: std::unordered_map m_aliases; }; } #endif // color_registry_hh_INCLUDED