Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve leading comments/whitespace when formatting code (#146)
Partial fix for #145 Before this change `dhall-format` would get rid of all comments when formatting code. After this change `dhall-format` will preserve any leading comments and whitespace so that users can at least add top-level comment headers to their files
- Loading branch information
1 parent
0e8a4c9
commit 96e0786
Showing
3 changed files
with
59 additions
and
19 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