aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2023-08-16 17:53:03 -0400
committerAmaan Qureshi <amaanq12@gmail.com>2023-08-16 20:28:11 -0400
commit0e27391e900a3efddfeebb37babc62e1e5dca595 (patch)
tree5f8051c2a3c6fc6c098b13391e5ebaea25c9312c /queries/python
parentfeat(c_sharp): add missing highlights (diff)
downloadnvim-treesitter-0e27391e900a3efddfeebb37babc62e1e5dca595.tar
nvim-treesitter-0e27391e900a3efddfeebb37babc62e1e5dca595.tar.gz
nvim-treesitter-0e27391e900a3efddfeebb37babc62e1e5dca595.tar.bz2
nvim-treesitter-0e27391e900a3efddfeebb37babc62e1e5dca595.tar.lz
nvim-treesitter-0e27391e900a3efddfeebb37babc62e1e5dca595.tar.xz
nvim-treesitter-0e27391e900a3efddfeebb37babc62e1e5dca595.tar.zst
nvim-treesitter-0e27391e900a3efddfeebb37babc62e1e5dca595.zip
feat(python): update parser & highlights
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index e0c1491a5..04398668e 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -27,6 +27,8 @@
"credits"
"license"))
+"_" @constant.builtin ; match wildcard
+
((attribute
attribute: (identifier) @field)
(#lua-match? @field "^[%l_].*$"))
@@ -244,6 +246,7 @@
"print"
"with"
"as"
+ "type"
] @keyword
[