Skip to content

Fix locations for invalid syntax when using expect1_opening#3852

Merged
kddnewton merged 1 commit intoruby:mainfrom
Earlopain:invalid-syntax-fix-locations
Jan 15, 2026
Merged

Fix locations for invalid syntax when using expect1_opening#3852
kddnewton merged 1 commit intoruby:mainfrom
Earlopain:invalid-syntax-fix-locations

Conversation

@Earlopain
Copy link
Collaborator

Followup to #3827

It sets the start to the opening but it should instead just continue on as usual.
Fixes #3851

Notice how the AST actually contains "123" in both the body and end keyword.

Followup to ruby#3827

It sets the start to the opening but it should instead just
continue on as usual.
Fixes ruby#3851

Notice how the AST actually contains "123" in both the body and end keyword.
@kddnewton kddnewton merged commit 8f4f6db into ruby:main Jan 15, 2026
66 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.

closing/end_keyword of incomplete code changed in v1.8.0

2 participants