summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-04-02 02:21:57 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-04-02 02:21:57 +0900
commit3b339ed47fed8db9d4d86b834c685fe110a3421a (patch)
tree82a6588b70b4ba7755ba9c96b8c72e2b80b332d4
parent5bcaa749fcb44adbfb823077cb9e2cfebb53db6b (diff)
downloadmruby-3b339ed47fed8db9d4d86b834c685fe110a3421a.tar.gz
mruby-3b339ed47fed8db9d4d86b834c685fe110a3421a.zip
simpler escape handling in ?c strings
-rw-r--r--src/parse.y13
1 files changed, 2 insertions, 11 deletions
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);