mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-11 14:40:50 +00:00

* 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.
51 lines
404 B
Text
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;
|
|
|
|
=-=-=
|