Add alternative names to ^ (caret) and @ (arobase) registers

This commit is contained in:
Maxime Coste 2015-08-19 21:16:53 +01:00
parent 409931c99e
commit 8af3b52bfa

View File

@ -64,7 +64,9 @@ Register& RegisterManager::operator[](StringView reg)
static const IdMap<Codepoint> reg_names = {
{ "slash", '/' },
{ "dquote", '"' },
{ "pipe", '|' }
{ "pipe", '|' },
{ "caret", '^' },
{ "arobase", '@' }
};
auto it = reg_names.find(reg);
if (it == reg_names.end())