aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYuan Fu2023-03-21 16:24:29 -0700
committerYuan Fu2023-03-21 16:24:29 -0700
commitdf669c5a11f6667de52b0467cda815a5a6e6035d (patch)
treef2207635b4792d1890557285ac6da8e2228e0ba7 /test
parent8b6a0de964d61cb8d57ed3fe65086fa305a3c53e (diff)
downloademacs-df669c5a11f6667de52b0467cda815a5a6e6035d.tar.gz
emacs-df669c5a11f6667de52b0467cda815a5a6e6035d.zip
Add missing indent rule for c-ts-mode
* lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles): New rule for case. * 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.erts30
1 files changed, 30 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 9e28ef203fd..5cdefe2122c 100644
--- a/test/lisp/progmodes/c-ts-mode-resources/indent.erts
+++ b/test/lisp/progmodes/c-ts-mode-resources/indent.erts
@@ -188,6 +188,36 @@ int main()
188} 188}
189=-=-= 189=-=-=
190 190
191Name: Switch-Case statement
192
193=-=
194int main() {
195switch (a) {
196case 1:
197b = c;
198return 10;
199case 2:
200{
201a = b;
202return 12
203}
204}
205}
206=-=
207int main() {
208 switch (a) {
209 case 1:
210 b = c;
211 return 10;
212 case 2:
213 {
214 a = b;
215 return 12
216 }
217 }
218}
219=-=-=
220
191Name: Multiline Block Comments 1 (bug#60270) 221Name: Multiline Block Comments 1 (bug#60270)
192 222
193=-= 223=-=