diff options
| author | Earlopain <14981592+Earlopain@users.noreply.github.com> | 2026-02-13 10:49:25 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2026-02-13 16:38:48 +0000 |
| commit | bf1ac3f4af16edb613b6795a4af253e9d551bd2c (patch) | |
| tree | 65e011a2fa8725863c538e669c0d88146332006c /lib/rake/private_reader.rb | |
| parent | 2daf48e724d59ff0094a8d7ff9af9936ca5c84ab (diff) | |
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 'lib/rake/private_reader.rb')
0 files changed, 0 insertions, 0 deletions
