mirror of https://github.com/x64dbg/btparser
formatting
This commit is contained in:
parent
547b65b284
commit
d96b60b6b5
|
@ -436,18 +436,18 @@ std::string Lexer::tokString(Token tok)
|
||||||
case tok_number: return StringUtils::sprintf(mIsHexNumberVal ? "0x%llX" : "%llu", mState.NumberVal);
|
case tok_number: return StringUtils::sprintf(mIsHexNumberVal ? "0x%llX" : "%llu", mState.NumberVal);
|
||||||
case tok_stringlit: return StringUtils::sprintf("\"%s\"", StringUtils::Escape(mState.StringLit).c_str());
|
case tok_stringlit: return StringUtils::sprintf("\"%s\"", StringUtils::Escape(mState.StringLit).c_str());
|
||||||
case tok_charlit:
|
case tok_charlit:
|
||||||
{
|
{
|
||||||
std::string s;
|
std::string s;
|
||||||
s = mState.CharLit;
|
s = mState.CharLit;
|
||||||
return StringUtils::sprintf("'%s'", StringUtils::Escape(s).c_str());
|
return StringUtils::sprintf("'%s'", StringUtils::Escape(s).c_str());
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
auto found = mReverseTokenMap.find(Token(tok));
|
auto found = mReverseTokenMap.find(Token(tok));
|
||||||
if (found != mReverseTokenMap.end())
|
if (found != mReverseTokenMap.end())
|
||||||
return found->second;
|
return found->second;
|
||||||
return "<UNKNOWN TOKEN>";
|
return "<UNKNOWN TOKEN>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue