Clang import; character literal '\'
This commit is contained in:
parent
4c778e0999
commit
f667abacf6
|
@ -460,6 +460,8 @@ Token *clangimport::AstNode::createTokens(TokenList *tokenList)
|
||||||
return addtoken(tokenList, "\'\\n\'");
|
return addtoken(tokenList, "\'\\n\'");
|
||||||
if (c == '\t')
|
if (c == '\t')
|
||||||
return addtoken(tokenList, "\'\\t\'");
|
return addtoken(tokenList, "\'\\t\'");
|
||||||
|
if (c == '\\')
|
||||||
|
return addtoken(tokenList, "\'\\\\\'");
|
||||||
if (c < ' ' || c >= 0x80) {
|
if (c < ' ' || c >= 0x80) {
|
||||||
std::ostringstream hex;
|
std::ostringstream hex;
|
||||||
hex << std::hex << ((c>>4) & 0xf) << (c&0xf);
|
hex << std::hex << ((c>>4) & 0xf) << (c&0xf);
|
||||||
|
|
Loading…
Reference in New Issue