Skip to content

Better guard against syntax invalid code in ripper lex translator#3900

Merged
eregon merged 1 commit intoruby:mainfrom
Earlopain:ripper-lex-syntax-invalid
Feb 3, 2026
Merged

Better guard against syntax invalid code in ripper lex translator#3900
eregon merged 1 commit intoruby:mainfrom
Earlopain:ripper-lex-syntax-invalid

Conversation

@Earlopain
Copy link
Collaborator

Closes #3899

Also better compatibility by only dropping the last token if it is actually EOF

Closes ruby#3899

Also better compatibility by only dropping
the last token if it is actually EOF
@Earlopain Earlopain force-pushed the ripper-lex-syntax-invalid branch from 61893c9 to 128ab52 Compare February 3, 2026 11:35
@eregon eregon merged commit 8fff847 into ruby:main Feb 3, 2026
65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error in Prism::LexCompat#insert_on_sp

2 participants