emacs/test/lisp/progmodes/csharp-mode-resources/indent-ts.erts
Eli Zaretskii d8687fd6cd Fix last change
* test/lisp/progmodes/csharp-mode-tests.el
(csharp-ts-mode-test-indentation): Move the test to here.
* test/lisp/progmodes/csharp-ts-mode-tests.el: Remove file.
* test/lisp/progmodes/csharp-ts-mode-resources/indent.erts: Move
to test/lisp/progmodes/csharp-mode-resources/indent-ts.erts.
2024-04-25 18:59:25 +03:00

51 lines
404 B
Text

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;
=-=-=