From 42683b9b4ac2701a296a472ff73783f34f746dc8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 28 Dec 2013 12:54:41 +0100 Subject: [PATCH] Minor cleanups. --- js-lex.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/js-lex.c b/js-lex.c index d008495..ff64e6b 100644 --- a/js-lex.c +++ b/js-lex.c @@ -269,12 +269,9 @@ static inline int lexstring(js_State *J, const char **sp, int q) while (c != q) { if (c == 0 || isnewline(c)) return syntaxerror(J, "string not terminated"); - if (c == '\\') c = lexescape(sp); - textpush(J, c); - c = GET(); } @@ -415,7 +412,6 @@ static int lex(js_State *J, const char **sp) return c; case '\'': - return lexstring(J, sp, c); case '"': return lexstring(J, sp, c);