Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/typst/highlights.scm')
-rw-r--r--runtime/queries/typst/highlights.scm19
1 files changed, 10 insertions, 9 deletions
diff --git a/runtime/queries/typst/highlights.scm b/runtime/queries/typst/highlights.scm
index 7b1b7c72..0bbccede 100644
--- a/runtime/queries/typst/highlights.scm
+++ b/runtime/queries/typst/highlights.scm
@@ -1,3 +1,11 @@
+(call
+ item: (ident) @function)
+(call
+ item: (field field: (ident) @function.method))
+(tagged field: (ident) @tag)
+(field field: (ident) @tag)
+(comment) @comment
+
; CONTROL
(let "let" @keyword.storage.type)
(branch ["if" "else"] @keyword.control.conditional)
@@ -13,7 +21,6 @@
; OPERATOR
(in ["in" "not"] @keyword.operator)
-(context "context" @keyword.control)
(and "and" @keyword.operator)
(or "or" @keyword.operator)
(not "not" @keyword.operator)
@@ -38,18 +45,12 @@
(string) @string
(content ["[" "]"] @operator)
(bool) @constant.builtin.boolean
+(builtin) @constant.builtin
(none) @constant.builtin
(auto) @constant.builtin
(ident) @variable
-
-; FUNCTIONS
-(call
- item: (ident) @function)
(call
- item: (field field: (ident) @function.method))
-(tagged field: (ident) @tag)
-(field field: (ident) @tag)
-(comment) @comment
+ item: (builtin) @function.builtin)
; MARKUP
(item "-" @markup.list)