From c920b668f8d7a1522af1cb779636d9ed0fd9b5c8 Mon Sep 17 00:00:00 2001 From: Raafat Turki Date: Fri, 16 Feb 2024 17:31:02 +0300 Subject: [PATCH] feat: add typst queries --- queries/typst/folds.scm | 3 +++ queries/typst/indents.scm | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 queries/typst/folds.scm create mode 100644 queries/typst/indents.scm diff --git a/queries/typst/folds.scm b/queries/typst/folds.scm new file mode 100644 index 000000000..02eb3830d --- /dev/null +++ b/queries/typst/folds.scm @@ -0,0 +1,3 @@ +(set) @fold +(let) @fold +(call) @fold diff --git a/queries/typst/indents.scm b/queries/typst/indents.scm new file mode 100644 index 000000000..855095955 --- /dev/null +++ b/queries/typst/indents.scm @@ -0,0 +1,11 @@ +[ + (set) + (let) + (call) +] @indent.begin + +[ + "]" + "}" + ")" +] @indent.branch @indent.end