From 94c96cfe0eecd0a0a00a1be3ef284d8bc8493d9d Mon Sep 17 00:00:00 2001 From: Hendrik Date: Sat, 26 Jul 2025 18:16:48 +0200 Subject: [PATCH] fix(queries): typst function highlight (#14068) --- runtime/queries/typst/highlights.scm | 17 +++++++++-------- 1 file 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) -- 2.51.2