diff options
| author | Mike Dalessio <mike.dalessio@gmail.com> | 2023-08-19 14:03:35 -0400 |
|---|---|---|
| committer | Jemma Issroff <jemmaissroff@gmail.com> | 2023-08-21 10:43:23 -0700 |
| commit | 926857eb1e124c62ef9cee52bb6c23c83e268ac6 (patch) | |
| tree | a5eb07f4df934a6df63404a8687e4de4e51b77d4 /test/ruby/test_lambda.rb | |
| parent | e63bac3128a5ce584c904ee247ce5cafc5d0c56a (diff) | |
[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
Diffstat (limited to 'test/ruby/test_lambda.rb')
0 files changed, 0 insertions, 0 deletions
