-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds preservation of explicit newlines made by user to formatter (#382)
* add tests from the other branch * good start, 3/4 for the new tests but one other test that is failing * fix the other tests, just one remaining with commentS * tep commit: loop over hidden tokens instead of comment tokens * double breakline option instead, only one thing not working * double break in preserveExplicitNewline as well * preserve double break if we concatenate * fix types for helpers * add another long test * renaming of the split choices * refacotr determineSplits * move the consts up * change order of splitType * add some GPT'ed comment explicit newline tests * add ON MATCH ON CREATE test * add test that wasn't idempotent and fix it * preserve also lines after a comment * another test * add newline separating consts * support explicit newlines before WHERE * add preserving before limit as well * add comment explaining the weird end explicit line thing
- Loading branch information
1 parent
5145444
commit 0acc29a
Showing
4 changed files
with
659 additions
and
40 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
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
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
Oops, something went wrong.