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

match/case statements containing those soft-keywords gets wrongly separated #2660

Closed
isidentical opened this issue Nov 30, 2021 · 0 comments · Fixed by #2661
Closed

match/case statements containing those soft-keywords gets wrongly separated #2660

isidentical opened this issue Nov 30, 2021 · 0 comments · Fixed by #2661
Labels
T: bug Something isn't working

Comments

@isidentical
Copy link
Collaborator

The following input;

match match:
    case case:
        pass

Will be formatted as

match
match:
    case
    case:
        pass

which is unfortunately invalid. Though the good thing is that, the parser works but apparently I choose to wrong visitor method on the initial implementation. So we need a separate one to handle soft-keywords better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant