Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 2.7 syntax #2900

Closed
paracycle opened this issue Apr 17, 2020 · 4 comments
Closed

Support 2.7 syntax #2900

paracycle opened this issue Apr 17, 2020 · 4 comments
Labels
enhancement New feature or surprising current feature

Comments

@paracycle
Copy link
Collaborator

Problem

Sorbet does not currently handle some new Ruby 2.7 syntax like the "forward all arguments syntax", "beginless range" and "numbered block parameters"

An example of some syntax failing can be seen here

Proposed solution

Update Sorbet parser to handle the new 2.7 syntax.

@paracycle paracycle added enhancement New feature or surprising current feature unconfirmed This issue has not yet been confirmed by the Sorbet team labels Apr 17, 2020
@paracycle paracycle changed the title Sorbet does not support 2.7 syntax Support 2.7 syntax Apr 17, 2020
@jez jez removed the unconfirmed This issue has not yet been confirmed by the Sorbet team label Apr 27, 2020
@Morriar
Copy link
Collaborator

Morriar commented Jul 15, 2020

I've recently been working on solving this issue.

Here's an update on what if done, and what remains to do based on the reference for 2.7.

Merged:

Todo:

  • **kwnil related errors
  • Resolve grammar conflicts

I will update this list as it goes.

@iliabylich
Copy link
Contributor

FYI There's more work to backport:

whitequark/parser notable bugfixes:

@Morriar
Copy link
Collaborator

Morriar commented Jul 22, 2020

I'll add the other ones to the list. Thanks for pointing this!

@jez
Copy link
Collaborator

jez commented Jan 24, 2022

This issue seems stale, and I don't think it's useful to have one big issue. If there are still parts of Ruby 2.7 syntax that Sorbet doesn't parse correctly, feel free to open individual issues.

@jez jez closed this as completed Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or surprising current feature
Projects
None yet
Development

No branches or pull requests

4 participants