98 lines
1.5 KiB
Plaintext
98 lines
1.5 KiB
Plaintext
Code:
|
|
(lambda ()
|
|
(csharp-mode)
|
|
(indent-region (point-min) (point-max)))
|
|
|
|
Point-Char: |
|
|
|
|
Name: Don't consider closed statements as object initializers. (bug#69571)
|
|
|
|
=-=
|
|
public class Foo {
|
|
void Bar () {
|
|
var x = new X(); // [1]
|
|
for (;;) {
|
|
x();
|
|
} // [2]
|
|
}
|
|
}
|
|
|
|
public class Foo {
|
|
void Bar () {
|
|
var x = new X();
|
|
for (;;) {
|
|
x();
|
|
} // [2]
|
|
}
|
|
}
|
|
|
|
public class Foo {
|
|
void Bar () {
|
|
var x = new X()
|
|
{
|
|
var b = 3;
|
|
};
|
|
for (;;) {
|
|
x();
|
|
} // [2]
|
|
}
|
|
}
|
|
|
|
public class Foo {
|
|
void Bar () {
|
|
var x = new X() // Hello
|
|
{
|
|
var b = 3;
|
|
};
|
|
for (;;) {
|
|
x();
|
|
} // [2]
|
|
}
|
|
}
|
|
|
|
public class Foo {
|
|
void Bar () {
|
|
var x = new X() // Hello ;
|
|
{
|
|
var b = 3;
|
|
};
|
|
for (;;) {
|
|
x();
|
|
} // [2]
|
|
}
|
|
}
|
|
|
|
public class Foo {
|
|
void Bar () {
|
|
var x = new X // Hello ;
|
|
{
|
|
var b = 3;
|
|
};
|
|
for (;;) {
|
|
x();
|
|
} // [2]
|
|
}
|
|
}
|
|
|
|
public class Foo {
|
|
void Bar () {
|
|
var x = new X(); // Hello ;
|
|
for (;;) {
|
|
x();
|
|
} // [2]
|
|
}
|
|
}
|
|
|
|
public class Foo
|
|
{
|
|
void Bar ()
|
|
{
|
|
var x = new X(); // Hello ;
|
|
for (;;)
|
|
{
|
|
x();
|
|
} // [2]
|
|
}
|
|
}
|
|
=-=-=
|