From 08a3b80b3d122ab118518126d964f6385139f428 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 7 Jul 2019 20:36:44 +0200 Subject: [PATCH] :art: Remove unreachable in escape --- src/emit/escape.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/emit/escape.c b/src/emit/escape.c index bbd68112..b9d49211 100644 --- a/src/emit/escape.c +++ b/src/emit/escape.c @@ -36,10 +36,6 @@ m_bool escape_str(const Emitter emit, const m_str base, const loc_t pos) { while(*str_lit) { if(*str_lit == '\\') { ++str_lit; - if(*str_lit == '\0') { - env_err(emit->env, pos, _("invalid: string ends with escape charactor '\\'")); - return GW_ERROR; - } const unsigned char c = *(str_lit); const unsigned char c2 = *(str_lit+1); if(c >= '0' && c <= '7') { -- 2.43.0