Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--runtime/queries/typst/highlights.scm17
1 files changed, 9 insertions, 8 deletions
diff --git a/runtime/queries/typst/highlights.scm b/runtime/queries/typst/highlights.scm
index 4e012a2f..7b1b7c72 100644
--- a/runtime/queries/typst/highlights.scm
+++ b/runtime/queries/typst/highlights.scm
@@ -1,11 +1,3 @@
-(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)
@@ -50,6 +42,15 @@
(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)