Commit graph

18 commits

Author SHA1 Message Date
ObserverOfTime
310f0925ec feat(c-family): inherit injections 2025-05-12 18:43:40 +02:00
ganhaque
1b050206e4
fix(rust): indentation in multi-line tuple pattern (#6402)
* fix(rust): indentation in multi-line tuple pattern

* test(indent): rust - add test for tuple pattern indent
2024-04-04 15:12:31 +00:00
ganhaque
5489e2150f fix(rust): indentation in multi-line for expression
Fix indentation when the for loop expression is on multiple lines

Example:

previous:

```rust
for (
    abc,
    def
) in thing.iter() {
        // ...
    }
```
new:

```rust
for (
    abc,
    def
) in thing.iter() {
    // ...
}
```
2024-04-04 09:50:27 +02:00
ganhaque
4d4b63692f fix(rust): indentation in tuple type patterns 2024-04-04 09:50:27 +02:00
Amaan Qureshi
3d473a4d5d fix(rust): indentation in tuple struct patterns 2024-03-26 22:34:53 -04:00
Phạm Huy Hoàng
722617e672 refactor(format): drop extra indentation for field 2024-03-21 15:51:26 +01:00
Amaan Qureshi
c28396de30 feat(rust): improve indents 2024-03-21 06:48:53 -04:00
Amaan Qureshi
4d76587eec fix(rust): dedent on macro definition end 2024-03-20 19:22:23 -04:00
Pham Huy Hoang
c41d38b70e fix(rust): Add back 1 indent for macro rules (#5834) 2024-01-20 18:50:31 +09:00
Pham Huy Hoang
57a8acf0c4 chore: query formatting 2024-01-19 16:58:37 +01:00
George Harker
cb568af539 use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md

adjust indents for bass

fix doc capture comment
2023-03-24 13:07:53 -04:00
kiyan
8bc4d046e7 fix(rust): remove if_let from indent captures
fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3073
2022-07-08 00:27:51 +02:00
Munif Tanjim
c2e3938510 fix(indent): rust - support newline after closing brace 2022-01-21 16:40:36 +01:00
Munif Tanjim
c0110e34aa feat: rewrite indent module 2022-01-21 10:51:51 +01:00
Brian Shu
7ffcaf4ee8 fixed rust match indents 2021-03-01 23:35:25 +01:00
elianiva
0bf8f58cd2 feat: use @ignore for comments and multiline strings 2021-03-01 23:28:53 +01:00
elianiva
6533fb9af7 fix: rust use_list + tuple_expression indent 2021-02-08 07:03:16 +01:00
elianiva
9184cf3953 feat: added more indent queries 2021-01-14 14:43:04 +01:00