aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/slint/indents.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/slint/indents.scm')
-rw-r--r--runtime/queries/slint/indents.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/runtime/queries/slint/indents.scm b/runtime/queries/slint/indents.scm
new file mode 100644
index 00000000..253b9c48
--- /dev/null
+++ b/runtime/queries/slint/indents.scm
@@ -0,0 +1,29 @@
+
+; [
+; (struct_definition)
+; (component_definition)
+; ] @indent
+
+[
+(field_declaration_list_body)
+(list_definition_body)
+(struct_field_declaration_list_body)
+] @indent
+
+; [
+; "{"
+; "}"
+; "("
+; ")"
+; (if_statement)
+; "else if"
+; "else"
+; ] @branch
+
+; "{" @indent
+"}" @indent_end
+
+(comment) @auto
+
+(string) @auto
+