tartrazine/spec/tests/python/test_fstring_06a.txt

17 lines
458 B
Plaintext

# 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