summaryrefslogtreecommitdiff
path: root/tests/snippets
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2022-06-04 09:58:53 +0200
committerGeorg Brandl <georg@python.org>2022-06-04 10:01:52 +0200
commitf46b708b657b9eb687d7119df7e2bce93c039d10 (patch)
tree5cde7faa9c83826a6ea4b959ca93b75b7513dd59 /tests/snippets
parent5bc04e214561d13cf8b6e29b7de30de03277d02c (diff)
downloadpygments-git-f46b708b657b9eb687d7119df7e2bce93c039d10.tar.gz
tcl: accept variables in ${name} syntax
Fixes #2145
Diffstat (limited to 'tests/snippets')
-rw-r--r--tests/snippets/tcl/test_vars.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/snippets/tcl/test_vars.txt b/tests/snippets/tcl/test_vars.txt
new file mode 100644
index 00000000..5c623902
--- /dev/null
+++ b/tests/snippets/tcl/test_vars.txt
@@ -0,0 +1,17 @@
+---input---
+set size 10; puts ${size}x${size}
+
+---tokens---
+'set' Keyword
+' ' Text.Whitespace
+'size' Text
+' ' Text.Whitespace
+'10' Literal.Number.Integer
+';' Keyword
+' ' Text.Whitespace
+'puts' Name.Builtin
+' ' Text.Whitespace
+'${size}' Name.Variable
+'x' Text
+'${size}' Name.Variable
+'\n' Text