forked from NixOS/nixfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It is now even more powerful, although there is still a bit of room for improvement in the future. In short, it defers merging spacing across group boundaries, allowing groups to start/end with spacing even if the previous/next token is a whitespace too. Previously, they would get merged, causing weird results. - Removed mergeSpacings', as it is not needed anymore - Merged moveLinesOut and mergeSpacings into a single pass "fixup" - layoutGreedy can now handle some consecutive spacings across group boundaries - It still does not handle all cases, only the ones needed for the current features. More will be added as needed.
- Loading branch information
1 parent
4468e9b
commit 0ebdbbe
Showing
1 changed file
with
87 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters