From 3b339ed47fed8db9d4d86b834c685fe110a3421a Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 2 Apr 2014 02:21:57 +0900 Subject: simpler escape handling in ?c strings --- src/parse.y | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/parse.y') diff --git a/src/parse.y b/src/parse.y index 69d106497..9f721738e 100644 --- a/src/parse.y +++ b/src/parse.y @@ -4348,17 +4348,8 @@ parser_yylex(parser_state *p) } } if (c == '\\') { - c = nextc(p); - if (c == 'u') { -#if 0 - tokadd_utf8(p); -#endif - } - else { - pushback(p, c); - c = read_escape(p); - tokadd(p, c); - } + c = read_escape(p); + tokadd(p, c); } else { tokadd(p, c); -- cgit v1.2.3