summaryrefslogtreecommitdiff
path: root/tests/snippets/python/test_fstring_10a.txt
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2021-01-20 10:57:30 +0100
committerGeorg Brandl <georg@python.org>2021-01-20 10:57:30 +0100
commitb40b0cca067c2e9c2f69c91abbd27e79ad243b42 (patch)
tree6f81b370c551ea06e89ff8333b5939df5625e757 /tests/snippets/python/test_fstring_10a.txt
parentdc9bf0c256dbd88c72349822d59b25f9d8225dc6 (diff)
downloadpygments-git-b40b0cca067c2e9c2f69c91abbd27e79ad243b42.tar.gz
Rename "tests/lexers" to "tests/snippets" and update the contribution
docs to point to both snippets and examplefiles.
Diffstat (limited to 'tests/snippets/python/test_fstring_10a.txt')
-rw-r--r--tests/snippets/python/test_fstring_10a.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/snippets/python/test_fstring_10a.txt b/tests/snippets/python/test_fstring_10a.txt
new file mode 100644
index 00000000..02fba2b4
--- /dev/null
+++ b/tests/snippets/python/test_fstring_10a.txt
@@ -0,0 +1,18 @@
+---input---
+f'abc {a["x"]} def'
+
+---tokens---
+'f' Literal.String.Affix
+"'" Literal.String.Single
+'abc ' Literal.String.Single
+'{' Literal.String.Interpol
+'a' Name
+'[' Punctuation
+'"' Literal.String.Double
+'x' Literal.String.Double
+'"' Literal.String.Double
+']' Punctuation
+'}' Literal.String.Interpol
+' def' Literal.String.Single
+"'" Literal.String.Single
+'\n' Text