aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEli Zaretskii2024-04-27 06:23:46 -0400
committerEli Zaretskii2024-04-27 06:23:46 -0400
commit687c4137fa473031bc62aa0d41aec74df4f1e5af (patch)
treeb78b4eba22fd0f5e8a6ab16cd820521c8ea3a25e /test
parentb761a381066ca2fdeb510c0d5a88be58b524685d (diff)
parentf37f01b5046b510656d0f2ace22168a222f6481a (diff)
downloademacs-687c4137fa473031bc62aa0d41aec74df4f1e5af.tar.gz
emacs-687c4137fa473031bc62aa0d41aec74df4f1e5af.zip
Merge from origin/emacs-29
f37f01b5046 Fix a typo in Introduction to Emacs Lisp (bug#70571). d8687fd6cd8 Fix last change 494dfd9cf2b Fix indentation of if/else in 'csharp-ts-mode' (bug#70345) 1cc6322e612 ; * etc/PROBLEMS: Document crashes due to tree-sitter ABI... 42766f95e5c * build-aux/make-info-dir: Avoid bashism (bug#70484). 81476fa19e8 Improve documentation of selection and navigation in *xre... 2a533514929 Fix Widget manual typos, markup and omissions (bug#70502) 90be3015b4d ; Document bookmark fringe mark in the user manual afd0b548fcc Fix python-ts-mode built-in functions and attributes (bug... dc720decc3a Fix markup and indexing in the Calendar chapter of user m... f593bf79a91 Fix the user manual for `calendar-time-zone-style' aed2b7a3d82 Avoid assertion violations in 'push_prefix_prop' c929532b469 Remove ert-equal-including-properties from manual e3aae5fd385 ; Document 'filtered-frame-list'
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/csharp-mode-resources/indent-ts.erts51
-rw-r--r--test/lisp/progmodes/csharp-mode-tests.el3
2 files changed, 54 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 @@
1Code:
2 (lambda ()
3 (csharp-ts-mode)
4 (indent-region (point-min) (point-max)))
5
6Point-Char: |
7
8Name: Indent single statement body for if/else. (bug#70345)
9
10=-=
11
12int x;
13int y;
14
15if (true)
16 x = 2;
17
18if (true)
19{
20 x = 2;
21}
22
23if (true)
24 x = 2;
25else
26 y = 2;
27
28if (true)
29{
30 x = 2;
31}
32else
33{
34 y = 2;
35}
36
37if (true)
38 x = 2;
39else
40{
41 y = 2;
42}
43
44if (true)
45{
46 x = 2;
47}
48else
49 y = 2;
50
51=-=-=
diff --git a/test/lisp/progmodes/csharp-mode-tests.el b/test/lisp/progmodes/csharp-mode-tests.el
index f50fabf5836..2878fa601f2 100644
--- a/test/lisp/progmodes/csharp-mode-tests.el
+++ b/test/lisp/progmodes/csharp-mode-tests.el
@@ -26,5 +26,8 @@
26(ert-deftest csharp-mode-test-indentation () 26(ert-deftest csharp-mode-test-indentation ()
27 (ert-test-erts-file (ert-resource-file "indent.erts"))) 27 (ert-test-erts-file (ert-resource-file "indent.erts")))
28 28
29(ert-deftest csharp-ts-mode-test-indentation ()
30 (ert-test-erts-file (ert-resource-file "indent-ts.erts")))
31
29(provide 'csharp-mode-tests) 32(provide 'csharp-mode-tests)
30;;; csharp-mode-tests.el ends here 33;;; csharp-mode-tests.el ends here