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

Fix special case when formatting paren-wrapped MLhs #419

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

reese
Copy link
Collaborator

@reese reese commented Mar 11, 2023

Closes #416

MLhs nodes have a special case for rest params which was previously incorrectly trying to emit soft indents outside of a breakable. We could have just made mlhs nodes breakables, but the parser interface for mlhs specifically is pretty awkward, so in this particular case I opted to leave it as-is and instead correctly pass the right special-case enum when inside of a multiassign.

(Reviewing this with hiding whitespace changes makes this a bit clearer)

@reese reese requested a review from fables-tales March 11, 2023 20:35
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.

Panic when wrapping array destructuring in brackets
1 participant