aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYuan Fu2025-01-12 22:23:36 -0800
committerYuan Fu2025-01-12 22:23:36 -0800
commit04032cd00af7617c709140f3c80b5604b05c11e8 (patch)
tree6cab4453a092ead7827488481f76085b81df8dce /test
parent7d3bc1ff2f44215ad24fdd8b243e7cee8ff66fa0 (diff)
downloademacs-04032cd00af7617c709140f3c80b5604b05c11e8.tar.gz
emacs-04032cd00af7617c709140f3c80b5604b05c11e8.zip
Fix c-ts-mode indentation (bug#75442)
* lisp/progmodes/c-ts-mode.el (c-ts-mode--simple-indent-rules): Use standalone-parent instead of parent. * test/lisp/progmodes/c-ts-mode-resources/indent.erts: New test.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/c-ts-mode-resources/indent.erts10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lisp/progmodes/c-ts-mode-resources/indent.erts b/test/lisp/progmodes/c-ts-mode-resources/indent.erts
index 691f5b6ecfd..3d875e3113e 100644
--- a/test/lisp/progmodes/c-ts-mode-resources/indent.erts
+++ b/test/lisp/progmodes/c-ts-mode-resources/indent.erts
@@ -149,6 +149,16 @@ fn()
149}; 149};
150=-=-= 150=-=-=
151 151
152Name: typedef with struct definition (bug#75442)
153
154=-=
155typedef struct Point
156{
157 int x;
158 int y;
159} Point;
160=-=-=
161
152Name: Multiline Parameter List (bug#60398) 162Name: Multiline Parameter List (bug#60398)
153 163
154=-= 164=-=