diff options
author | Eli Zaretskii <eliz@gnu.org> | 2024-04-25 18:59:25 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-04-25 18:59:25 +0300 |
commit | d8687fd6cd807db1c76084a5e2bb214f9b6c9a49 (patch) | |
tree | cd0f5a2c7d8d8f62fdb3f03e3e8586cd00db386b /test/lisp/progmodes/csharp-mode-resources/indent-ts.erts | |
parent | 494dfd9cf2becdb33eefb1c0e6d8bc383cb8a2f0 (diff) | |
download | emacs-d8687fd6cd807db1c76084a5e2bb214f9b6c9a49.tar.gz emacs-d8687fd6cd807db1c76084a5e2bb214f9b6c9a49.tar.bz2 emacs-d8687fd6cd807db1c76084a5e2bb214f9b6c9a49.zip |
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.
Diffstat (limited to 'test/lisp/progmodes/csharp-mode-resources/indent-ts.erts')
-rw-r--r-- | test/lisp/progmodes/csharp-mode-resources/indent-ts.erts | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/test/lisp/progmodes/csharp-mode-resources/indent-ts.erts b/test/lisp/progmodes/csharp-mode-resources/indent-ts.erts new file mode 100644 index 00000000000..3cb23608270 --- /dev/null +++ b/test/lisp/progmodes/csharp-mode-resources/indent-ts.erts @@ -0,0 +1,51 @@ +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; + +=-=-= |