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

Adjust whitespace logic for addition/subtraction #145

Merged
merged 3 commits into from
Nov 23, 2024

Conversation

rvanasa
Copy link
Contributor

@rvanasa rvanasa commented Nov 22, 2024

Improves the whitespace logic for situations with token-tree ambiguity between addition / positive numbers and subtraction / negative numbers. For instance, x-5 now formats to x - 5 instead of x -5.

@rvanasa rvanasa mentioned this pull request Nov 22, 2024
Copy link

@ggreif ggreif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rvanasa rvanasa enabled auto-merge (squash) November 23, 2024 02:56
@rvanasa rvanasa merged commit 05d18c6 into main Nov 23, 2024
5 checks passed
@rvanasa rvanasa deleted the fix-addition-subtraction-spacing branch November 23, 2024 02:57
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