From 7e3c4f808940a981a034709163724eb5a7546e2d Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sun, 13 Sep 2020 15:08:11 +0200 Subject: Add @keyword.operator for operators that are English words and add @exception for Java/JS --- queries/python/highlights.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'queries/python') 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" -- cgit v1.2.3-70-g09d2