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

parent 59cd24d4
...@@ -3829,6 +3829,10 @@ parse_string(parser_state *p) ...@@ -3829,6 +3829,10 @@ parse_string(parser_state *p)
tokadd(p, '\n'); tokadd(p, '\n');
} }
} }
else if (type & STR_FUNC_REGEXP) {
tokadd(p, '\\');
tokadd(p, c);
}
else { else {
pushback(p, c); pushback(p, c);
tokadd(p, read_escape(p)); tokadd(p, read_escape(p));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment