summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/csharp-mode-resources/indent-ts.erts
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2024-04-25 18:59:25 +0300
committerEli Zaretskii <eliz@gnu.org>2024-04-25 18:59:25 +0300
commitd8687fd6cd807db1c76084a5e2bb214f9b6c9a49 (patch)
treecd0f5a2c7d8d8f62fdb3f03e3e8586cd00db386b /test/lisp/progmodes/csharp-mode-resources/indent-ts.erts
parent494dfd9cf2becdb33eefb1c0e6d8bc383cb8a2f0 (diff)
downloademacs-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.erts51
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;
+
+=-=-=