diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-06-12 09:54:30 -0600 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2025-05-12 18:43:40 +0200 |
| commit | 692b051b09935653befdb8f7ba8afdb640adf17b (patch) | |
| tree | 167162b6b129ae04f68c5735078521a72917c742 /runtime/queries/leo/indents.scm | |
| parent | feat(c-family): inherit injections (diff) | |
| download | nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.gz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.bz2 nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.lz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.xz nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.zst nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.zip | |
feat!: drop modules, general refactor and cleanup
Diffstat (limited to 'runtime/queries/leo/indents.scm')
| -rw-r--r-- | runtime/queries/leo/indents.scm | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/runtime/queries/leo/indents.scm b/runtime/queries/leo/indents.scm new file mode 100644 index 000000000..b2d33a59b --- /dev/null +++ b/runtime/queries/leo/indents.scm @@ -0,0 +1,61 @@ +[ + (array_expression) + (assert_statement) + (assignment_statement) + (block) + (constant_declaration) + (expression_statement) + (items_block) + (loop_statement) + (mapping_declaration) + (parenthesized_expression) + (record_declaration) + (return_statement) + (struct_declaration) + (struct_expression) + (tuple_expression) + (variable_declaration) +] @indent.begin + +((function_parameters) @indent.align + (#set! indent.open_delimiter "(") + (#set! indent.close_delimiter ")")) + +((function_arguments) @indent.align + (#set! indent.open_delimiter "(") + (#set! indent.close_delimiter ")")) + +(parenthesized_expression + ")" @indent.branch) + +(function_parameters + ")" @indent.branch) + +(function_arguments + ")" @indent.branch) + +(record_declaration + "}" @indent.branch) + +(struct_declaration + "}" @indent.branch) + +(struct_expression + "}" @indent.branch) + +(array_expression + "]" @indent.branch) + +(tuple_expression + ")" @indent.branch) + +(items_block + "}" @indent.branch) + +(block + "}" @indent.branch) + +[ + (comment) + (ERROR) +] @indent.auto |
