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

Allow whitespace interleaving between cases in pattern matching. #1921

Merged
merged 1 commit into from
May 5, 2018

Conversation

IwanKaramazow
Copy link
Contributor

Collapse/preserve n >= 1 whitespaces between cases in pattern matching into one newline between the cases. This allows better grouping of cases when desired. Pattern matching suffers from less claustrofobia if the user wants to preserve the whitespace. If there isn't whitespace inserted between the cases, there won't be any extra newlines. This behaviour is also the default in tools like Prettier and Golang.

@chenglou
Copy link
Member

chenglou commented May 5, 2018

Ready to merge? Let's cut a release after this

@IwanKaramazow
Copy link
Contributor Author

Ready to merge!

@chenglou
Copy link
Member

chenglou commented May 5, 2018

Yeeeeee

@chenglou chenglou merged commit 698f537 into reasonml:master May 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants