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 \" \\""" diff --git a/autotests/input/test.py b/autotests/input/test.py --- a/autotests/input/test.py +++ b/autotests/input/test.py @@ -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/reference/test.py.ref b/autotests/reference/test.py.ref --- a/autotests/reference/test.py.ref +++ b/autotests/reference/test.py.ref @@ -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/data/syntax/python.xml b/data/syntax/python.xml --- a/data/syntax/python.xml +++ b/data/syntax/python.xml @@ -14,7 +14,7 @@ - + import @@ -446,24 +446,25 @@ + - + - + - +