aboutsummaryrefslogtreecommitdiffstats
path: root/queries/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 /queries/python
parenthighlights(fennel): fix "collect" "icollect" "accumulate" (diff)
downloadnvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.tar
nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.tar.gz
nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.tar.bz2
nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.tar.lz
nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.tar.xz
nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.tar.zst
nvim-treesitter-b8d1c2445a1f8799ed1320ab59d121f78150ad6d.zip
highlights(python): "from" in yield should be `@keyword.return`
Fixes #2712
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index ccbb2e79d..e7b59caf6 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -226,8 +226,11 @@
"return"
"yield"
] @keyword.return
+(yield "from" @keyword.return)
+
+(import_from_statement "from" @include)
+"import" @include
-["from" "import"] @include
(aliased_import "as" @include)
["if" "elif" "else" "match" "case"] @conditional