aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/python
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 /runtime/queries/python
parentc4728a5c4619a87b67720ca35225e2e45aaafccd (diff)
downloadrneovim-874b8172a69a0a5b0973f32410036823edc0dba7.tar.gz
rneovim-874b8172a69a0a5b0973f32410036823edc0dba7.tar.bz2
rneovim-874b8172a69a0a5b0973f32410036823edc0dba7.zip
build(deps): bump tree-sitter-python to v0.20.4
Diffstat (limited to 'runtime/queries/python')
-rw-r--r--runtime/queries/python/highlights.scm8
1 files changed, 7 insertions, 1 deletions
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
[