summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEarlopain <14981592+Earlopain@users.noreply.github.com>2026-02-13 10:49:25 +0100
committergit <svn-admin@ruby-lang.org>2026-02-13 16:38:48 +0000
commitbf1ac3f4af16edb613b6795a4af253e9d551bd2c (patch)
tree65e011a2fa8725863c538e669c0d88146332006c /doc
parent2daf48e724d59ff0094a8d7ff9af9936ca5c84ab (diff)
[ruby/prism] Fix lexing for unterminated strings/heredocs etc.
When we hit EOF and still have lex modes left, it means some content was unterminated. Heredocs specifically have logic that needs to happen when the body finished lexing. If we don't reset the mode back to how it was before, it will not continue lexing at the correct place. Followup to https://github.com/ruby/prism/pull/3918. We can't call into `parser_lex` since it resets token locations. https://github.com/ruby/prism/commit/27c24fdc0d
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions