summaryrefslogtreecommitdiff
path: root/queries/python/highlights.scm
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-09-13 15:08:11 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2020-09-19 07:30:49 +0200
commit7e3c4f808940a981a034709163724eb5a7546e2d (patch)
tree9ac40da7363fa5a01a24107b7843f36f9fab4a86 /queries/python/highlights.scm
parentc1313ba7af6985da7a23e612906024af4c575d52 (diff)
Add @keyword.operator for operators that are English words and add @exception for Java/JS
Diffstat (limited to 'queries/python/highlights.scm')
-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 30420af1..b0cae4cf 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"