Commit fc2b62d8 authored by Jakub Yaghob's avatar Jakub Yaghob
Browse files

corrected hexaescape outputs

parent 8114cdaa
......@@ -25,7 +25,7 @@ namespace casem {
if(hv.empty()) // no hexdigits after \x
{
ctx->message(cecko::errors::BADESCAPE, ctx->line(), "\\x");
return 0;
return 'x';
}
std::uint32_t v = 0;
......@@ -37,7 +37,9 @@ namespace casem {
if((v & 0xFFFFFF00) && !outr)
{
outr = true;
ctx->message(cecko::errors::BADESCAPE, ctx->line(), hv);
std::string msg("\\x");
msg += hv;
ctx->message(cecko::errors::BADESCAPE, ctx->line(), msg);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment