More tests for backslash behaviour (#438)

* More tests for baskslash behaviour

* Incorrect example of escaped final newline

* Test with non-literal indent
This commit is contained in:
Thomas Jollans 2024-12-17 18:47:37 +01:00 committed by GitHub
parent b9ddb52e60
commit 69067719c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1 @@
node "12"

View File

@ -0,0 +1 @@

View File

@ -0,0 +1,2 @@
a
b

View File

@ -0,0 +1 @@
node "a\\ b\na\\b"

View File

@ -0,0 +1 @@
node "\"\"\""

View File

@ -0,0 +1 @@
node " a"

View File

@ -0,0 +1,4 @@
node "1\
2"

View File

@ -0,0 +1 @@
\

View File

@ -0,0 +1,3 @@
a \
b

View File

@ -1,2 +1,3 @@
node1
\
node2

View File

@ -0,0 +1,4 @@
node """
a\\ b
a\\\ b
"""

View File

@ -0,0 +1,3 @@
node """
\"""
"""

View File

@ -0,0 +1,4 @@
node """
a
\
"""

View File

@ -0,0 +1,4 @@
node """
a
\
"""

View File

@ -0,0 +1,4 @@
node """
\s escaped prefix
literal prefix
"""