| Age | Commit message (Collapse) | Author |
|
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
|
|
This reverts commit https://github.com/ruby/prism/commit/8f35e8ef255b.
https://github.com/ruby/prism/commit/ed48f6dbfb
|
|
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.
https://github.com/ruby/prism/commit/8f35e8ef25
|