summaryrefslogtreecommitdiff
path: root/parser_node.h
diff options
context:
space:
mode:
authorMike Dalessio <mike.dalessio@gmail.com>2023-08-19 14:03:35 -0400
committerKevin Newton <kddnewton@gmail.com>2023-08-21 12:22:53 -0400
commitac819f4db9bb79ba92547e1abd36336f36633583 (patch)
tree326bde22f0a618daf320f435e8574886ccbe32d7 /parser_node.h
parentf83c1d62bd42c7ba51e715610e9ca2410724d9e0 (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 'parser_node.h')
0 files changed, 0 insertions, 0 deletions