diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-02 02:21:57 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-04-02 02:21:57 +0900 |
| commit | 3b339ed47fed8db9d4d86b834c685fe110a3421a (patch) | |
| tree | 82a6588b70b4ba7755ba9c96b8c72e2b80b332d4 /src/parse.y | |
| parent | 5bcaa749fcb44adbfb823077cb9e2cfebb53db6b (diff) | |
| download | mruby-3b339ed47fed8db9d4d86b834c685fe110a3421a.tar.gz mruby-3b339ed47fed8db9d4d86b834c685fe110a3421a.zip | |
simpler escape handling in ?c strings
Diffstat (limited to 'src/parse.y')
| -rw-r--r-- | src/parse.y | 13 |
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); |
