hintfmt for eye searing varnames

This commit is contained in:
Ben Burdette 2021-06-11 18:55:40 -06:00
parent 129dd760e6
commit edb5a28024

View file

@ -781,11 +781,13 @@ void runRepl(
std::set<std::string> names; std::set<std::string> names;
for (auto & [name, value] : extraEnv) { for (auto & [name, value] : extraEnv) {
names.insert(ANSI_BOLD + name + ANSI_NORMAL); // names.insert(ANSI_BOLD + name + ANSI_NORMAL);
names.insert(name);
repl->addVarToScope(repl->state->symbols.create(name), value); repl->addVarToScope(repl->state->symbols.create(name), value);
} }
printError(hintfmt("The following extra variables are in scope: %s\n", concatStringsSep(", ", names)).str()); printError(hintfmt("The following extra variables are in scope: %s\n", concatStringsSep(", ", names)).str());
// printError("The following extra variables are in scope: %s\n", concatStringsSep(", ", names));
repl->mainLoop({}); repl->mainLoop({});
} }