Fixed bugs with lexer

This commit is contained in:
Pasha Bibko
2025-07-20 18:38:42 +01:00
parent f95600f0b7
commit cc0300b66c
4 changed files with 9 additions and 9 deletions

View File

@@ -78,12 +78,12 @@ namespace LXC::Lexer
{
// Output stream to log to //
std::ostringstream os;
os << std::setw(15) << std::left << TokenTypeToCStr(type) << " | ";
os << std::setw(25) << std::left << TokenTypeToCStr(type) << " | ";
if (contents != nullptr)
os << '"' << contents << '"';
os << std::setw(25) << std::left << std::string('"' + std::string(contents) + '"');
else
os << "EMPTY";
os << std::setw(25) << std::left << "EMPTY";
return os.str();
}