aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/python
diff options
context:
space:
mode:
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
[