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/javascript/highlights.scm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'queries/javascript') diff --git a/queries/javascript/highlights.scm b/queries/javascript/highlights.scm index 627c4b2d1..d83228c37 100644 --- a/queries/javascript/highlights.scm +++ b/queries/javascript/highlights.scm @@ -184,30 +184,36 @@ "async" "await" "break" -"catch" "class" "const" "debugger" -"delete" "export" "extends" -"finally" "function" "get" "in" "instanceof" "let" -"new" "return" "set" "static" "switch" "target" -"throw" -"try" "typeof" "var" "void" "with" "yield" ] @keyword + +[ + "new" + "delete" +] @keyword.operator + +[ + "throw" + "try" + "catch" + "finally" +] @exception -- cgit v1.2.3-70-g09d2