From 61ea08f8d3b5a14c3a67dbb2527441c5a3bafab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alvaro=20Mu=C3=B1oz?= Date: Wed, 30 Sep 2020 09:41:53 +0200 Subject: [PATCH] fine tune keyword highlights --- queries/ql/highlights.scm | 68 +++++++++++++++++++++++++-------------- 1 file changed, 43 insertions(+), 25 deletions(-) diff --git a/queries/ql/highlights.scm b/queries/ql/highlights.scm index 67810de6..bc58a7e5 100644 --- a/queries/ql/highlights.scm +++ b/queries/ql/highlights.scm @@ -1,50 +1,68 @@ [ - "and" - "any" "as" "asc" - "avg" "by" "class" - "concat" - "count" "desc" - "else" - "exists" "extends" "forall" "forex" "from" - "if" "implies" - "import" "in" - "instanceof" - "max" - "min" "module" "newtype" - "not" - "or" "order" - "rank" "select" - "strictconcat" - "strictcount" - "strictsum" - "sum" - "then" "where" - (false) (predicate) (result) (specialId) - (super) - (this) - (true) ] @keyword +[ + "and" + "not" + "or" +] @keyword.operator + +[ + "avg" + "any" + "count" + "concat" + "exists" + "max" + "min" + "instanceof" + "rank" + "sum" + "strictconcat" + "strictcount" + "strictsum" +] @function.builtin + +[ + "import" +] @include + +[ + "if" + "then" + "else" +] @conditional + +[ + (true) + (false) +] @boolean + +[ + (this) + (super) +] @variable.builtin + [ "boolean" "float" @@ -89,7 +107,7 @@ (varName) @variable (integer) @number -(float) @number +(float) @float (string) @string