diff options
| author | Eli Zaretskii | 2024-04-27 06:23:46 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2024-04-27 06:23:46 -0400 |
| commit | 687c4137fa473031bc62aa0d41aec74df4f1e5af (patch) | |
| tree | b78b4eba22fd0f5e8a6ab16cd820521c8ea3a25e /test | |
| parent | b761a381066ca2fdeb510c0d5a88be58b524685d (diff) | |
| parent | f37f01b5046b510656d0f2ace22168a222f6481a (diff) | |
| download | emacs-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.erts | 51 | ||||
| -rw-r--r-- | test/lisp/progmodes/csharp-mode-tests.el | 3 |
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 @@ | |||
| 1 | Code: | ||
| 2 | (lambda () | ||
| 3 | (csharp-ts-mode) | ||
| 4 | (indent-region (point-min) (point-max))) | ||
| 5 | |||
| 6 | Point-Char: | | ||
| 7 | |||
| 8 | Name: Indent single statement body for if/else. (bug#70345) | ||
| 9 | |||
| 10 | =-= | ||
| 11 | |||
| 12 | int x; | ||
| 13 | int y; | ||
| 14 | |||
| 15 | if (true) | ||
| 16 | x = 2; | ||
| 17 | |||
| 18 | if (true) | ||
| 19 | { | ||
| 20 | x = 2; | ||
| 21 | } | ||
| 22 | |||
| 23 | if (true) | ||
| 24 | x = 2; | ||
| 25 | else | ||
| 26 | y = 2; | ||
| 27 | |||
| 28 | if (true) | ||
| 29 | { | ||
| 30 | x = 2; | ||
| 31 | } | ||
| 32 | else | ||
| 33 | { | ||
| 34 | y = 2; | ||
| 35 | } | ||
| 36 | |||
| 37 | if (true) | ||
| 38 | x = 2; | ||
| 39 | else | ||
| 40 | { | ||
| 41 | y = 2; | ||
| 42 | } | ||
| 43 | |||
| 44 | if (true) | ||
| 45 | { | ||
| 46 | x = 2; | ||
| 47 | } | ||
| 48 | else | ||
| 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 |