ruby/yarp
Mike Dalessio ac819f4db9 [ruby/yarp] fix: support newline-terminated regular expressions
Previously, parsing a snippet like this:

    %r\nfoo\n

would result in tracking the second newline twice, resulting in a
failed runtime assertion.

Fixing that issue reveals another bug, which is that the _first_
newline was not being tracked at all. So we introduce a call to
yp_newline_list right when we construct the REGEXP_BEGIN token.

https://github.com/ruby/yarp/commit/0d5d759091
2023-08-21 12:22:53 -04:00
..
enc Resync YARP 2023-08-16 17:47:32 -07:00
templates [ruby/yarp] Use node kind for Ruby types 2023-08-20 17:32:57 +00:00
util Resync YARP 2023-08-17 09:58:56 -07:00
api_pack.c [ruby/yarp] Fix wrong conversion and cast 2023-08-08 13:21:39 +00:00
config.h Manual YARP resync 2023-07-05 16:58:55 -04:00
config.yml [ruby/yarp] Rename statements to body where appropriate 2023-08-19 01:04:04 +00:00
defines.h [ruby/yarp] Use _snprintf when using Windows versions prior to 2015 (< 1900) 2023-08-16 17:47:32 -07:00
diagnostic.c
diagnostic.h Manual YARP resync 2023-07-05 16:58:55 -04:00
extension.c [ruby/yarp] Treat yp_buffer_t as an opaque pointer 2023-08-17 09:58:56 -07:00
extension.h [ruby/yarp] Bump to version 0.8.0 2023-08-19 01:14:10 +00:00
node.h [ruby/yarp] Resync YARP (#8098) 2023-07-19 16:15:01 -04:00
pack.c
pack.h Manual YARP resync 2023-07-05 16:58:55 -04:00
parser.h [ruby/yarp] Simplify creation of numerics 2023-08-16 17:47:32 -07:00
regexp.c [ruby/yarp] Handle escaping in regexp slow path 2023-08-16 17:47:32 -07:00
regexp.h [ruby/yarp] Use yp_memchr in regexp parsing 2023-08-16 17:47:32 -07:00
unescape.c Resync YARP 2023-08-17 09:58:56 -07:00
unescape.h Resync YARP 2023-08-17 09:58:56 -07:00
version.h [ruby/yarp] Bump to version 0.8.0 2023-08-19 01:14:10 +00:00
yarp.c [ruby/yarp] fix: support newline-terminated regular expressions 2023-08-21 12:22:53 -04:00
yarp.h Resync YARP 2023-08-16 17:47:32 -07:00
yarp_init.c Fix the YARP init path 2023-08-16 17:47:32 -07:00