tartrazine/spec/tests/python/test_fstring_06b.txt

17 lines
458 B
Plaintext
Raw Permalink 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.Double
'{' Literal.String.Interpol
'\\' Error
'"' Literal.String.Double
'quoted string' Literal.String.Double
'\\"' Literal.String.Escape
'}' Literal.String.Double
'"' Literal.String.Double
'\n' Text.Whitespace