mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
simpler escape handling in ?c strings
This commit is contained in:
+2
-11
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user