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/java/highlights.scm | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'queries/java') diff --git a/queries/java/highlights.scm b/queries/java/highlights.scm index 70cbb28a7..f8ce34c8b 100644 --- a/queries/java/highlights.scm +++ b/queries/java/highlights.scm @@ -141,7 +141,6 @@ "abstract" "assert" "break" -"catch" "class" "continue" "default" @@ -149,13 +148,11 @@ "exports" "extends" "final" -"finally" "implements" "instanceof" "interface" "module" "native" -"new" "open" "opens" "package" @@ -168,17 +165,18 @@ "static" "strictfp" "synchronized" -"throw" -"throws" "to" "transient" "transitive" -"try" "uses" "volatile" "with" ] @keyword +[ + "new" +] @keyword.operator + ; Conditionals [ @@ -218,6 +216,16 @@ ")" ] @punctuation.bracket +; Exceptions + +[ +"throw" +"throws" +"finally" +"try" +"catch" +] @exception + ; Labels (labeled_statement (identifier) @label) -- cgit v1.2.3-70-g09d2