-
-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Labels
bugSomething isn't workingSomething isn't workingcorrectnessOutput parses differently after formattingOutput parses differently after formatting
Description
Consider foo.nix:
''
O=''\'''${A}'
''Formatting changes the semantics of this, turning it into an interpolation:
''
O='''${A}'
''foo.nix: Parses differently after formatting. This is a bug in nixfmt. Please report it at https://github.com/NixOS/nixfmt
Before formatting:
Term (IndentedString (Ann [] [[TextPart "O='''${A}'"],[]] Nothing))
After formatting:
Term (IndentedString (Ann [] [[TextPart "O='''",Interpolation Term (Token (Ann [] (Identifier "A") Nothing)),TextPart "'"],[]] Nothing))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcorrectnessOutput parses differently after formattingOutput parses differently after formatting
Projects
Status
Done