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.scm17
1 files changed, 8 insertions, 9 deletions
diff --git a/runtime/queries/typst/highlights.scm b/runtime/queries/typst/highlights.scm
index 7b1b7c72..4e012a2f 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)
@@ -42,15 +50,6 @@
(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
-
; MARKUP
(item "-" @markup.list)
(term ["/" ":"] @markup.list)