Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/codeql/highlights.scm')
-rw-r--r--runtime/queries/codeql/highlights.scm104
1 files changed, 104 insertions, 0 deletions
diff --git a/runtime/queries/codeql/highlights.scm b/runtime/queries/codeql/highlights.scm
new file mode 100644
index 00000000..aed7b538
--- /dev/null
+++ b/runtime/queries/codeql/highlights.scm
@@ -0,0 +1,104 @@
+[
+ "and"
+ "any"
+ "as"
+ "asc"
+ "avg"
+ "by"
+ "class"
+ "concat"
+ "count"
+ "desc"
+ "else"
+ "exists"
+ "extends"
+ "forall"
+ "forex"
+ "from"
+ "if"
+ "implements"
+ "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
+
+[
+ "boolean"
+ "float"
+ "int"
+ "date"
+ "string"
+] @type.builtin
+
+(annotName) @attribute
+
+[
+ "<"
+ "<="
+ "="
+ ">"
+ ">="
+ "-"
+ "!="
+ "/"
+ "*"
+ "%"
+ "+"
+ "::"
+] @operator
+
+[
+ "("
+ ")"
+ "{"
+ "}"
+ "["
+ "]"
+] @punctuation.bracket
+
+[
+ ","
+ "|"
+] @punctuation.delimiter
+
+(className) @type
+
+(varName) @variable
+
+(integer) @constant.numeric.integer
+(float) @constant.numeric.float
+
+(string) @string
+
+(aritylessPredicateExpr (literalId) @function)
+(predicateName) @function
+
+[
+ (line_comment)
+ (block_comment)
+ (qldoc)
+] @comment