Escape backslashes when stringifying.

This commit is contained in:
voussoir 2022-03-15 13:29:14 -07:00
parent ee4914fa63
commit 05b009a7c6
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -94,6 +94,7 @@ class ExpressionTree:
if self_token not in OPERATORS:
t = self_token
t = t.replace('\\', '\\\\')
t = t.replace('"', '\\"')
t = t.replace('(', '\\(')
t = t.replace(')', '\\)')