diff --git a/autotests/folding/test.py.fold b/autotests/folding/test.py.fold
--- a/autotests/folding/test.py.fold
+++ b/autotests/folding/test.py.fold
@@ -40,3 +40,8 @@
f'x{bar["baz"]!r}y\n'
f'x{bar["baz"]:.2}y\n'
+
+a = "Escapes in String \U12345678 \xAB \""
+"Escapes in Doc/Comment String \u1234 \xAb \"\\"
+''' Doc/Comment String \N{123} \''''
+""" Doc/Comment String \17 \x1f \n \" \\"""
diff --git a/autotests/html/test.py.html b/autotests/html/test.py.html
--- a/autotests/html/test.py.html
+++ b/autotests/html/test.py.html
@@ -46,4 +46,9 @@
f'x{bar["baz"]!r}y\n'
f'x{bar["baz"]:.2}y\n'
+
+a = "Escapes in String \U12345678 \xAB \""
+"Escapes in Doc/Comment String \u1234 \xAb \"\\"
+''' Doc/Comment String \N{123} \''''
+""" Doc/Comment String \17 \x1f \n \" \\"""