summaryrefslogtreecommitdiff
path: root/tests/query/highlights/python
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-04-01 16:50:57 +0200
committerStephan Seitz <stephan.seitz@fau.de>2022-04-01 17:00:21 +0200
commitb8d1c2445a1f8799ed1320ab59d121f78150ad6d (patch)
tree0160ddf041200dec35e3ac058ec7c021455ad2c7 /tests/query/highlights/python
parent4b9aec69bdca88707631614ba30a1ed052ff7369 (diff)
highlights(python): "from" in yield should be `@keyword.return`
Fixes #2712
Diffstat (limited to 'tests/query/highlights/python')
-rw-r--r--tests/query/highlights/python/yield_from.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/query/highlights/python/yield_from.py b/tests/query/highlights/python/yield_from.py
new file mode 100644
index 00000000..2f323837
--- /dev/null
+++ b/tests/query/highlights/python/yield_from.py
@@ -0,0 +1,7 @@
+from foo import bar
+# ^ @include
+# ^ @include
+def generator():
+ yield from bar(42)
+ # ^ @keyword.return
+ # ^ @keyword.return