Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Feb 11, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Earlopain and others added 2 commits February 11, 2026 09:47
As I understand it, the code operates line-by-line. When finding `__END__`, it has to decide if it is
the end marker or just appears as part of of a multi-line literal (see tests).

For a future PR I plan to make, `lex_modes` may be empty after parsing finished, even if it was syntax invalid.
Currently there will _always_ be errors when lex modes are not popped. So these extra checks are redundant.

Basically, if we found `__END__` on a line by itself and there are syntax errors, it's impossible to be the end marker.

ruby/prism@8b63780a9d
When using RB_SCAN_ARGS_KEYWORDS or RB_PASS_KEYWORDS, the final
argument must be a hash.
@pull pull bot locked and limited conversation to collaborators Feb 11, 2026
@pull pull bot added the ⤵️ pull label Feb 11, 2026
@pull pull bot merged commit e7f1746 into turkdevops:master Feb 11, 2026
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants