diff --git a/src/prettyPrinter.ts b/src/prettyPrinter.ts index 04f9a441f..793187177 100644 --- a/src/prettyPrinter.ts +++ b/src/prettyPrinter.ts @@ -181,7 +181,7 @@ export const ppAstNumber = A.astNumToString; export const ppAstBoolean = ({ value }: A.AstBoolean) => value.toString(); export const ppAstId = ({ text }: A.AstId) => text; export const ppAstNull = (_expr: A.AstNull) => "null"; -export const ppAstString = ({ value }: A.AstString) => `"${value}"`; +export const ppAstString = ({ value }: A.AstString) => JSON.stringify(value); export const ppAstStaticCall = ({ function: func, args }: A.AstStaticCall) => { return `${ppAstId(func)}(${ppExprArgs(args)})`;