emacs/test/lisp/progmodes/csharp-mode-resources/indent-ts.erts

52 lines
404 B
Plaintext

Code:
(lambda ()
(csharp-ts-mode)
(indent-region (point-min) (point-max)))
Point-Char: |
Name: Indent single statement body for if/else. (bug#70345)
=-=
int x;
int y;
if (true)
x = 2;
if (true)
{
x = 2;
}
if (true)
x = 2;
else
y = 2;
if (true)
{
x = 2;
}
else
{
y = 2;
}
if (true)
x = 2;
else
{
y = 2;
}
if (true)
{
x = 2;
}
else
y = 2;
=-=-=