From d600b873364d9a799b67ccd6054f4aa69ef3d1c0 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 24 Nov 2019 21:02:27 +0800 Subject: mir_opt_test - Const propagation test, extra parsing --- src/parse/token.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/parse/token.cpp') 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() ) -- cgit v1.2.3