Skip to content

Commit f97d97d

Browse files
committed
format escapeDoubleQuoteString
1 parent da3b1ce commit f97d97d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Nix/Pretty.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ pattern t :< ts <- (Text.uncons -> Just (t, ts))
108108
where (:<) = Text.cons
109109

110110
escapeDoubleQuoteString :: Text -> Text
111-
escapeDoubleQuoteString ('"':<xs) = "\\\"" <> escapeDoubleQuoteString xs
111+
escapeDoubleQuoteString ('"':<xs) = "\\\"" <> escapeDoubleQuoteString xs
112112
escapeDoubleQuoteString ('$':<'{':<xs) = "\\${" <> escapeDoubleQuoteString xs
113-
escapeDoubleQuoteString ('$':<xs) = '$' :< escapeDoubleQuoteString xs
114-
escapeDoubleQuoteString (x:<xs) = maybe (one x) (('\\' :<) . one) (toEscapeCode x)
115-
<> escapeDoubleQuoteString xs
116-
escapeDoubleQuoteString a = a
113+
escapeDoubleQuoteString ('$':<xs) = '$' :< escapeDoubleQuoteString xs
114+
escapeDoubleQuoteString (x:<xs) = maybe (one x) (('\\' :<) . one) (toEscapeCode x)
115+
<> escapeDoubleQuoteString xs
116+
escapeDoubleQuoteString a = a
117117

118118

119119
prettyString :: NString (NixDoc ann) -> Doc ann

0 commit comments

Comments
 (0)