зеркало из https://github.com/github/ruby.git
3eb42054d9
When we encounter an invalid unicode escape within a regular expression, we now pass that error on to Onigmo as if it didn't exist in the parser (which matches the upstream parser's behavior). We do this because there are tests that specify that you are allowed to have invalid Unicode escapes if they are within the context of a regular expression comment for a regular expression in extended mode. That looks like: /# \u /x Note that this _only_ applies to Unicode escapes (as opposed to applying to hex or meta/control escapes as well). Importantly it also only applies if the regular expression is terminated. An unterminated regular expression will still get error handling done in the parser. That would look like: /# \u that would result in the same error handling we have today. https://github.com/ruby/prism/commit/fb98034806 |
||
---|---|---|
.. | ||
templates | ||
util | ||
api_pack.c | ||
config.yml | ||
defines.h | ||
encoding.c | ||
encoding.h | ||
extension.c | ||
extension.h | ||
node.h | ||
options.c | ||
options.h | ||
pack.c | ||
pack.h | ||
parser.h | ||
prettyprint.h | ||
prism.c | ||
prism.h | ||
regexp.c | ||
regexp.h | ||
static_literals.c | ||
static_literals.h | ||
version.h |