Skip to content

Handle prism on_sp in syntax_suggest#15914

Merged
eregon merged 2 commits intoruby:masterfrom
Earlopain:prism-on-sp-syntax-suggest
Jan 20, 2026
Merged

Handle prism on_sp in syntax_suggest#15914
eregon merged 2 commits intoruby:masterfrom
Earlopain:prism-on-sp-syntax-suggest

Conversation

@Earlopain
Copy link
Copy Markdown
Contributor

Handle on_sp in syntax_suggest when using prism.

It used to not emit this token type, but now it does. So when a newer version of prism is present, we can fall back to the same code that ripper uses.

It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.
…nd Prism::Translation::Ripper"

This reverts commit 58f1127.
@Earlopain Earlopain changed the title Handle prism on_sp in syntax_suggest Handle prism on_sp in syntax_suggest Jan 20, 2026
@github-actions
Copy link
Copy Markdown

The following files are maintained in the following upstream repositories:

Please file a pull request to the above instead. Thank you!

Earlopain added a commit to Earlopain/syntax_suggest that referenced this pull request Jan 20, 2026
It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.

Ref:
* ruby/ruby#15914
* ruby/prism#3859
Earlopain added a commit to Earlopain/syntax_suggest that referenced this pull request Jan 20, 2026
It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.

Ref:
* ruby/ruby#15914
* ruby/prism#3859
Earlopain added a commit to Earlopain/syntax_suggest that referenced this pull request Jan 20, 2026
It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.

Ref:
* ruby/ruby#15914
* ruby/prism#3859
@Earlopain Earlopain force-pushed the prism-on-sp-syntax-suggest branch from bb435a4 to d98ea1a Compare January 20, 2026 11:43
@Earlopain
Copy link
Copy Markdown
Contributor Author

@kddnewton could you take a look? I also created ruby/syntax_suggest#241 for syntax_suggest.

@eregon eregon requested a review from schneems January 20, 2026 11:56
Earlopain added a commit to Earlopain/syntax_suggest that referenced this pull request Jan 20, 2026
It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.

Ref:
* ruby/ruby#15914
* ruby/prism#3859
Earlopain added a commit to Earlopain/syntax_suggest that referenced this pull request Jan 20, 2026
It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.

Ref:
* ruby/ruby#15914
* ruby/prism#3859
@eregon eregon merged commit 2842e61 into ruby:master Jan 20, 2026
90 checks passed
schneems pushed a commit to ruby/syntax_suggest that referenced this pull request Jan 20, 2026
It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.

Ref:
* ruby/ruby#15914
* ruby/prism#3859
Earlopain added a commit to Earlopain/ruby that referenced this pull request Jan 21, 2026
It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.

Ref:
* ruby#15914
* ruby/prism#3859

ruby/syntax_suggest@42a3b8f6cb
Earlopain added a commit to Earlopain/ruby that referenced this pull request Jan 21, 2026
It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.

Ref:
* ruby#15914
* ruby/prism#3859

ruby/syntax_suggest@42a3b8f6cb
Earlopain added a commit to Earlopain/ruby that referenced this pull request Jan 21, 2026
It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.

Ref:
* ruby#15914
* ruby/prism#3859

ruby/syntax_suggest@42a3b8f6cb
k0kubun pushed a commit that referenced this pull request Jan 21, 2026
It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.

Ref:
* #15914
* ruby/prism#3859

ruby/syntax_suggest@42a3b8f6cb
hsbt pushed a commit that referenced this pull request Mar 23, 2026
It used to not emit this token type, but now it does.
So when a newer version of prism is present, we can fall back
to the same code that ripper uses.

Ref:
* #15914
* ruby/prism#3859

ruby/syntax_suggest@42a3b8f6cb
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