tartrazine/tests/python/test_fstring_06a.txt

17 lines
458 B
Plaintext
Raw Normal View History

2024-08-03 10:36:47 +00:00
# SyntaxError: f-string expression part cannot include a backslash
---input---
f'{\'quoted string\'}'
---tokens---
'f' Literal.String.Affix
"'" Literal.String.Single
'{' Literal.String.Interpol
'\\' Error
"'" Literal.String.Single
'quoted string' Literal.String.Single
"\\'" Literal.String.Escape
'}' Literal.String.Single
"'" Literal.String.Single
'\n' Text.Whitespace