aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/typst/folds.scm3
-rw-r--r--queries/typst/indents.scm11
2 files changed, 14 insertions, 0 deletions
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