Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/tql/highlights.scm')
| -rw-r--r-- | runtime/queries/tql/highlights.scm | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/runtime/queries/tql/highlights.scm b/runtime/queries/tql/highlights.scm new file mode 100644 index 00000000..42e4c6c5 --- /dev/null +++ b/runtime/queries/tql/highlights.scm @@ -0,0 +1,92 @@ +;; Upstream: https://github.com/tenzir/tree-sitter-tql/blob/main/queries/tql/highlights.scm + +"move" @keyword + +[ + "let" +] @keyword.storage + +[ + "and" + "or" + "not" + "in" +] @keyword.operator + +[ + "if" + "else" + "match" +] @keyword.control.conditional + +"this" @variable.builtin + +[ + "." + ":" +] @punctuation.delimiter + +[ + "[" + "]" + "{" + "}" +] @punctuation.bracket + +[ + "?" + "..." + "+" + "-" + "*" + "/" + "=" + "=>" + "|" + "::" + "==" + "!=" + ">" + ">=" + "<" + "<=" +] @operator + +[ + "(" + ")" +] @punctuation.bracket + +[ + "," +] @punctuation.delimiter + +"_" @variable.builtin + +"null" @constant.builtin + +[ + "true" + "false" +] @constant.builtin.boolean + +(dollar_var) @variable +(meta_selector) @attribute +(number) @constant.numeric +(string) @string +(format_expr) @string +(ip) @constant +(subnet) @constant +(time) @number +(duration) @constant.numeric +(frontmatter_open) @comment +(frontmatter_close) @comment +(comment) @comment + +(invocation + operator: (entity) @function.call) +(call_expression + (entity) @function.call) +(call_expression + method: (entity) @function.method) +(identifier) @variable |