Skip to content

Fix Comment#trailing for syntax invalid edgecase - #4218

Merged
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:comment-trailing-invalid
Sep 3, 2026
Merged

Fix Comment#trailing for syntax invalid edgecase#4218
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:comment-trailing-invalid

Conversation

@Earlopain

Copy link
Copy Markdown
Collaborator

When prism encounter invalid bytes and still switches over to parsing comments, strip will raise

syntax_suggest might run into this via ruby/spec: ruby/syntax_suggest#258

When prism encounter invalid bytes and still  switches over to parsing comments,
`strip` will raise

`syntax_suggest` might run into this via `ruby/spec`
@kddnewton
kddnewton merged commit c72817c into ruby:main Sep 3, 2026
99 of 101 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.

2 participants