diff options
author | Erasin | 2022-08-08 10:04:18 +0000 |
---|---|---|
committer | Michael Davis | 2022-08-08 22:57:08 +0000 |
commit | f09d2bc56bfb8f5865ed364de371dad571e6a92f (patch) | |
tree | 0b7a5da49ca940aa81a2c79259758cec59ed0f45 /runtime/queries/slint/indents.scm | |
parent | 3e11017ade8b25e580b20dab5187374fa3338bae (diff) |
Add slint-ui support
<https://slint-ui.com/>
lsp: <https://github.com/slint-ui/slint/tree/HEAD/tools/lsp>
tree-sitter-slint: <https://github.com/jrmoulton/tree-sitter-slint>
Diffstat (limited to 'runtime/queries/slint/indents.scm')
-rw-r--r-- | runtime/queries/slint/indents.scm | 29 |
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 + |