From: fennecdjay Date: Sun, 7 Jul 2019 18:36:44 +0000 (+0200) Subject: :art: Remove unreachable in escape X-Git-Tag: nightly~2348^2~34 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=08a3b80b3d122ab118518126d964f6385139f428;p=gwion.git :art: Remove unreachable in escape --- 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') {