Skip to content

Commit

Permalink
Experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
piegamesde committed Feb 6, 2024
1 parent 7b1fcf5 commit 4f9c2d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Nixfmt/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ instance Pretty Trivium where
pretty EmptyLine = emptyline
pretty (LineComment c) = comment ("#" <> c) <> hardline
pretty (BlockComment c)
| all ("*" `isPrefixOf`) (tail c) = hcat (map toLineComment' c)
-- | all ("*" `isPrefixOf`) (tail c) = hcat (map toLineComment' c)
| otherwise
= comment "/*" <> hardspace
-- Add an offset to manually indent the comment by one
Expand Down
5 changes: 3 additions & 2 deletions test/diff/comment/out.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
@
*/

# test
# test
/* test
* test
*/

[
# 1
Expand Down

0 comments on commit 4f9c2d1

Please sign in to comment.