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
This commit is contained in:
ganhaque 2024-04-04 10:12:31 -05:00 committed by GitHub
parent 8f444c9fcb
commit 1b050206e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -8,6 +8,7 @@
(tuple_struct_pattern)
(tuple_expression)
(tuple_type)
(tuple_pattern)
(match_block)
(call_expression)
(assignment_expression)
@ -88,6 +89,9 @@
(tuple_type
")" @indent.end)
(tuple_pattern
")" @indent.end)
(trait_item
body: (declaration_list
"}" @indent.end))

View file

@ -0,0 +1,8 @@
fn foo() {
for (
a,
b
) in c.iter() {
// ...
}
}