aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-04-23 12:23:15 -0700
committerChristian Clason <c.clason@uni-graz.at>2024-05-01 09:59:50 +0200
commitf58cae6c228e26681039253cb172de16cd764408 (patch)
tree5dab18e7bf7eb9fcecc99f543a7b3c6e776291d5 /queries/python
parentbot(lockfile): update angular, cpp, djot, html, json5, mlir, python, solidity... (diff)
downloadnvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.tar
nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.tar.gz
nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.tar.bz2
nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.tar.lz
nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.tar.xz
nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.tar.zst
nvim-treesitter-f58cae6c228e26681039253cb172de16cd764408.zip
feat: more `@keyword.type` captures
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 4737fd401..663fccf55 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -300,7 +300,6 @@
[
"assert"
- "class"
"exec"
"global"
"nonlocal"
@@ -308,10 +307,14 @@
"print"
"with"
"as"
- "type"
] @keyword
[
+ "type"
+ "class"
+] @keyword.type
+
+[
"async"
"await"
] @keyword.coroutine