backslash escapes in regexp should be addressed by Regexp processor; close #2005

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-04-04 13:12:58 +09:00
parent 59cd24d41f
commit 5f2817b36c
+4
View File
@@ -3829,6 +3829,10 @@ parse_string(parser_state *p)
tokadd(p, '\n');
}
}
else if (type & STR_FUNC_REGEXP) {
tokadd(p, '\\');
tokadd(p, c);
}
else {
pushback(p, c);
tokadd(p, read_escape(p));