[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60748: 30.0.50; [PATCH]: Fix indentation of object_expressions in cs
From: |
Theodor Thornhill |
Subject: |
bug#60748: 30.0.50; [PATCH]: Fix indentation of object_expressions in csharp-ts-mode |
Date: |
Thu, 12 Jan 2023 09:15:44 +0100 |
Hi Jostein!
What do you think of this patch? It fixes typing out this, taken from
[0]:
```
namespace Foo {
class Foo {
void foo() {
CatOwner owner = new CatOwner
{
Cats = new List<Cat>
{
new X
{
Name = "Sylvester",
Age=8
},
new Cat
{
Name = "Whiskers", Age=2
},
new Cat
{ Name = "Sasha", Age=14 }
}
};
var x = new
{
X = 5
};
Foo foo = new Foo
{
};
Cat cat = new Cat
{
Cats = new List<Cat>
{
new X
{
Name = "Sten"
},
new Y
{ Foo = "rst" }
}
};
Cat c = new Foo()
{
};
RudimentaryMultiValuedDictionary<string, string>
rudimentaryMultiValuedDictionary3
= new RudimentaryMultiValuedDictionary<string, string>()
{
{"Group1", new string []{ "Bob", "John", "Mary" } },
{ "Group2", new string[]{ "Eric", "Emily", "Debbie",
"Jesse" } }
};
}
}
}
```
Are there any regressions, or is this ok to you?
Theo
[0]:
0001-Fix-indentation-of-object_expressions-in-csharp-ts-m.patch
Description: Text Data
- bug#60748: 30.0.50; [PATCH]: Fix indentation of object_expressions in csharp-ts-mode,
Theodor Thornhill <=