simpler escape handling in ?c strings

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-04-02 02:21:57 +09:00
parent 5bcaa749fc
commit 3b339ed47f
+2 -11
View File
@@ -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);