google / jsonnet

Jsonnet - The data templating language
http://jsonnet.org
Apache License 2.0
6.94k stars 437 forks source link

Fix jsonnetfmt --debug-desugaring #1132

Closed johnbartholomew closed 8 months ago

johnbartholomew commented 8 months ago

The desugaring step handles string backslash escape sequences, but it puts the result back into the same AST elements that the input strings came from. When formatting, these strings need to be re-escaped to turn them into printable string literals.

sparkprime commented 8 months ago

Nice