summaryrefslogtreecommitdiff
path: root/src/parse/token.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2019-11-24 21:02:27 +0800
committerJohn Hodge <tpg@mutabah.net>2019-11-24 21:02:27 +0800
commitd600b873364d9a799b67ccd6054f4aa69ef3d1c0 (patch)
tree1f3468d5bba6768deecdc71850f910c16ae14840 /src/parse/token.cpp
parenta1bdc109d18dfcfd4576ff66bb3c75bb8b02ca95 (diff)
downloadmrust-d600b873364d9a799b67ccd6054f4aa69ef3d1c0.tar.gz
mir_opt_test - Const propagation test, extra parsing
Diffstat (limited to 'src/parse/token.cpp')
-rw-r--r--src/parse/token.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parse/token.cpp b/src/parse/token.cpp
index f9ecd028..5feafc39 100644
--- a/src/parse/token.cpp
+++ b/src/parse/token.cpp
@@ -504,6 +504,12 @@ struct EscapedString {
case TOK_LIFETIME:
if( tok.m_data.is_String() )
os << "\"" << EscapedString(tok.str()) << "\"";
+ else if( tok.m_data.is_IString() )
+ os << "\"" << tok.istr() << "\"";
+ else if( tok.m_data.is_None() )
+ ;
+ else
+ os << "?inner?";
break;
case TOK_INTEGER:
if( tok.m_data.is_Integer() )