aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanchayan Maity <sanchayan@sanchayanmaity.net>2023-08-24 10:45:20 +0530
committerChristian Clason <c.clason@uni-graz.at>2023-08-27 10:03:24 +0900
commit874b8172a69a0a5b0973f32410036823edc0dba7 (patch)
tree504ae84da531c33ad0384dc9c38434c2fbff9e43
parentc4728a5c4619a87b67720ca35225e2e45aaafccd (diff)
downloadrneovim-874b8172a69a0a5b0973f32410036823edc0dba7.tar.gz
rneovim-874b8172a69a0a5b0973f32410036823edc0dba7.tar.bz2
rneovim-874b8172a69a0a5b0973f32410036823edc0dba7.zip
build(deps): bump tree-sitter-python to v0.20.4
-rw-r--r--cmake.deps/deps.txt4
-rw-r--r--runtime/queries/python/highlights.scm8
2 files changed, 9 insertions, 3 deletions
diff --git a/cmake.deps/deps.txt b/cmake.deps/deps.txt
index c5465f7e6a..bb1bd70dae 100644
--- a/cmake.deps/deps.txt
+++ b/cmake.deps/deps.txt
@@ -54,8 +54,8 @@ TREESITTER_VIMDOC_URL https://github.com/neovim/tree-sitter-vimdoc/archive/v2.0.
TREESITTER_VIMDOC_SHA256 61e165df29778dc0c9277c2a7bc67447cc4e1bed36ca916a2f476dd25ce3260e
TREESITTER_QUERY_URL https://github.com/nvim-treesitter/tree-sitter-query/archive/v0.1.0.tar.gz
TREESITTER_QUERY_SHA256 e2b806f80e8bf1c4f4e5a96248393fe6622fc1fc6189d6896d269658f67f914c
-TREESITTER_PYTHON_URL https://github.com/tree-sitter/tree-sitter-python/archive/v0.20.3.tar.gz
-TREESITTER_PYTHON_SHA256 df7899aae97373b04dc247e670c9ec2c2f7dd95dada5e47497c8b999820df4f3
+TREESITTER_PYTHON_URL https://github.com/tree-sitter/tree-sitter-python/archive/v0.20.4.tar.gz
+TREESITTER_PYTHON_SHA256 1e38c991832f461c0da8ca222fbe5be3b82b868fe34025f0295206b5e5789d7a
TREESITTER_BASH_URL https://github.com/tree-sitter/tree-sitter-bash/archive/493646764e7ad61ce63ce3b8c59ebeb37f71b841.tar.gz
TREESITTER_BASH_SHA256 99ebe9f2886efecc1a5e9e1360d804a1b49ad89976a66bb5c3871539cca5fb7e
TREESITTER_MARKDOWN_URL https://github.com/MDeiml/tree-sitter-markdown/archive/v0.1.6.tar.gz
diff --git a/runtime/queries/python/highlights.scm b/runtime/queries/python/highlights.scm
index c18b748674..04398668e9 100644
--- a/runtime/queries/python/highlights.scm
+++ b/runtime/queries/python/highlights.scm
@@ -27,6 +27,8 @@
"credits"
"license"))
+"_" @constant.builtin ; match wildcard
+
((attribute
attribute: (identifier) @field)
(#lua-match? @field "^[%l_].*$"))
@@ -155,7 +157,10 @@
(#lua-match? @preproc "^#!/"))
(string) @string
-(escape_sequence) @string.escape
+[
+ (escape_sequence)
+ (escape_interpolation)
+] @string.escape
; doc-strings
@@ -241,6 +246,7 @@
"print"
"with"
"as"
+ "type"
] @keyword
[