diff options
author | Triton171 | 2022-01-03 02:03:57 +0000 |
---|---|---|
committer | GitHub | 2022-01-03 02:03:57 +0000 |
commit | 4da050b4bb639755e30447518aa79f7511c8952c (patch) | |
tree | 70e6a394c6d48432d5655eb21c2b6887866b8a28 /runtime | |
parent | 8f2af713408b8b40cf71873bbc0ddc009a7b3da5 (diff) |
Add basic indentation for languages without treesitter-based indentation rules (always use the indent of the current line for a new line). (#1341)
Fix several bugs in the treesitter indentation calculation.
Co-authored-by: Triton171 <triton0171@gmail.com>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/rust/indents.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/queries/rust/indents.toml b/runtime/queries/rust/indents.toml index 3900f0b9..51a0ceea 100644 --- a/runtime/queries/rust/indents.toml +++ b/runtime/queries/rust/indents.toml @@ -9,6 +9,7 @@ indent = [ "field_initializer_list", "struct_pattern", "tuple_pattern", + "unit_expression", "enum_variant_list", "call_expression", "binary_expression", |