summaryrefslogtreecommitdiffstats
path: root/tests/snippets/python/test_fstring_10b.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snippets/python/test_fstring_10b.txt')
-rw-r--r--tests/snippets/python/test_fstring_10b.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/snippets/python/test_fstring_10b.txt b/tests/snippets/python/test_fstring_10b.txt
new file mode 100644
index 0000000..21d116c
--- /dev/null
+++ b/tests/snippets/python/test_fstring_10b.txt
@@ -0,0 +1,18 @@
+---input---
+f"abc {a['x']} def"
+
+---tokens---
+'f' Literal.String.Affix
+'"' Literal.String.Double
+'abc ' Literal.String.Double
+'{' Literal.String.Interpol
+'a' Name
+'[' Punctuation
+"'" Literal.String.Single
+'x' Literal.String.Single
+"'" Literal.String.Single
+']' Punctuation
+'}' Literal.String.Interpol
+' def' Literal.String.Double
+'"' Literal.String.Double
+'\n' Text.Whitespace