summaryrefslogtreecommitdiffstats
path: root/tests/snippets/python/test_fstring_29a.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snippets/python/test_fstring_29a.txt')
-rw-r--r--tests/snippets/python/test_fstring_29a.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/snippets/python/test_fstring_29a.txt b/tests/snippets/python/test_fstring_29a.txt
new file mode 100644
index 0000000..2100b3b
--- /dev/null
+++ b/tests/snippets/python/test_fstring_29a.txt
@@ -0,0 +1,15 @@
+---input---
+f"{math.pi=!f:.2f}"
+
+---tokens---
+'f' Literal.String.Affix
+'"' Literal.String.Double
+'{' Literal.String.Interpol
+'math' Name
+'.' Operator
+'pi' Name
+'=!f:' Literal.String.Interpol
+'.2f' Literal.String.Double
+'}' Literal.String.Interpol
+'"' Literal.String.Double
+'\n' Text.Whitespace