From c5b19f66e05c760ed056279ae3d8ade3c98ea1b1 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 28 Feb 2024 19:52:01 +0100 Subject: [PATCH] fix(typst): adapt queries to breaking parser update --- lockfile.json | 2 +- queries/typst/highlights.scm | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/lockfile.json b/lockfile.json index ce6aa9a08..adcb568e4 100644 --- a/lockfile.json +++ b/lockfile.json @@ -720,7 +720,7 @@ "revision": "43b221c0b76e77244efdaa9963e402a17c930fbc" }, "typst": { - "revision": "baddc325e858afff90501dbefa00ecfa28528931" + "revision": "3c3e5f8e0caeba6157e26a1bedf8321e1da62799" }, "udev": { "revision": "caa721ff38704c1186c2afeb467bead8c27ea382" diff --git a/queries/typst/highlights.scm b/queries/typst/highlights.scm index a1a118eda..e36105413 100644 --- a/queries/typst/highlights.scm +++ b/queries/typst/highlights.scm @@ -72,24 +72,12 @@ (bool) @boolean -; identifiers -(builtin) @module.builtin - (ident) @constant ; name-value pairs (tagged field: (ident) @variable.member) -; function definitions, calls, etc. -; TODO: support for functions such as #calc.cos, tree view appears as -; (call) -; item: (field) -; (builtin) -; field: (ident) -(call - item: (builtin) @function.builtin) - (call item: (ident) @function.call)