aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
diff options
context:
space:
mode:
Diffstat (limited to 'queries/python')
-rw-r--r--queries/python/highlights.scm11
1 files changed, 7 insertions, 4 deletions
diff --git a/queries/python/highlights.scm b/queries/python/highlights.scm
index 30420af12..b0cae4cfc 100644
--- a/queries/python/highlights.scm
+++ b/queries/python/highlights.scm
@@ -157,15 +157,19 @@
"|"
"|="
"~"
+ "->"
+] @operator
+
+; Keywords
+[
"and"
"in"
"is"
"not"
"or"
- "->"
-] @operator
-; Keywords
+ "del"
+] @keyword.operator
[
"assert"
@@ -173,7 +177,6 @@
"await"
"class"
"def"
- "del"
"except"
"exec"
"finally"