aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Kangas2023-03-02 06:30:15 +0100
committerStefan Kangas2023-03-02 06:30:15 +0100
commita798a29f7519244b47ffc3035fcd8bf7bafea4d5 (patch)
treefb3cfc98279285fb18c27a8997312ebcd54ff29d /test
parent65e99fb08b8f14a5381ad488ad2b1e2a6149f60f (diff)
parent59365f928565f1be551b1697b9246b00cb87a9b7 (diff)
downloademacs-a798a29f7519244b47ffc3035fcd8bf7bafea4d5.tar.gz
emacs-a798a29f7519244b47ffc3035fcd8bf7bafea4d5.zip
Merge from origin/emacs-29
59365f92856 * lisp/progmodes/go-ts-mode.el: Use treesit-language-avai... 56cd810b9d1 Don’t signal warning when loading go-ts-mode.el without g... b06d5519664 Fix c-ts-mode empty line indentation (bug#61893) 6b2720778dc Improve tree-sitter's prev-sibling indent anchor
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/c-ts-mode-resources/indent.erts33
1 files changed, 25 insertions, 8 deletions
diff --git a/test/lisp/progmodes/c-ts-mode-resources/indent.erts b/test/lisp/progmodes/c-ts-mode-resources/indent.erts
index 36d7af4faf1..904c6498cb5 100644
--- a/test/lisp/progmodes/c-ts-mode-resources/indent.erts
+++ b/test/lisp/progmodes/c-ts-mode-resources/indent.erts
@@ -84,14 +84,6 @@ int main()
84} 84}
85=-=-= 85=-=-=
86 86
87Name: Empty Line
88=-=
89int main()
90{
91 |
92}
93=-=-=
94
95Name: Concecutive blocks (GNU Style) (bug#60873) 87Name: Concecutive blocks (GNU Style) (bug#60873)
96 88
97=-= 89=-=
@@ -385,3 +377,28 @@ namespace test {
385 }; 377 };
386} 378}
387=-=-= 379=-=-=
380
381Code:
382 (lambda ()
383 (c-ts-mode)
384 (setq-local indent-tabs-mode nil)
385 (setq-local c-ts-mode-indent-offset 2)
386 (c-ts-mode-set-style 'gnu)
387 (indent-for-tab-command))
388
389Name: Empty Line
390=-=
391int main()
392{
393 |
394}
395=-=-=
396
397Name: Empty Line Previous Sibling
398=-=
399int main()
400{
401 int a = 1;
402 |
403}
404=-=-=