diff --git a/src/Nixfmt/Pretty.hs b/src/Nixfmt/Pretty.hs index dd95e186..8e6ae8b3 100644 --- a/src/Nixfmt/Pretty.hs +++ b/src/Nixfmt/Pretty.hs @@ -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 diff --git a/test/diff/comment/out.nix b/test/diff/comment/out.nix index d3f0cf3d..a1322b5e 100644 --- a/test/diff/comment/out.nix +++ b/test/diff/comment/out.nix @@ -27,8 +27,9 @@ @ */ - # test - # test + /* test + * test + */ [ # 1