aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python
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
parentLink to gallery (diff)
downloadnvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.tar
nvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.tar.gz
nvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.tar.bz2
nvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.tar.lz
nvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.tar.xz
nvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.tar.zst
nvim-treesitter-7e3c4f808940a981a034709163724eb5a7546e2d.zip
Add @keyword.operator for operators that are English words and add @exception for Java/JS
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"