summaryrefslogtreecommitdiff
path: root/test/lisp
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2023-02-05 15:20:52 -0800
committerYuan Fu <casouri@gmail.com>2023-02-06 18:28:39 -0800
commitd68ff6016d0ca011b5bf0fd05578fe1abb2e53a9 (patch)
tree7b2fb360b0f2cbcb01631e03a907f5962c0ef81a /test/lisp
parent2ac8c4bbd6f47751a68b0230310f6fddd7da8de5 (diff)
downloademacs-d68ff6016d0ca011b5bf0fd05578fe1abb2e53a9.tar.gz
emacs-d68ff6016d0ca011b5bf0fd05578fe1abb2e53a9.tar.bz2
emacs-d68ff6016d0ca011b5bf0fd05578fe1abb2e53a9.zip
Fix c-ts-mode indentation (bug#61291)
Fix indentation for the semicolon in while (str_a[i++] == str_b[j++]) ; * lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles): New rule. * test/lisp/progmodes/c-ts-mode-resources/indent.erts: New test.
Diffstat (limited to 'test/lisp')
-rw-r--r--test/lisp/progmodes/c-ts-mode-resources/indent.erts11
1 files changed, 11 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 6f64e1e7953..2750526f893 100644
--- a/test/lisp/progmodes/c-ts-mode-resources/indent.erts
+++ b/test/lisp/progmodes/c-ts-mode-resources/indent.erts
@@ -144,6 +144,17 @@ int f2(int x,
};
=-=-=
+Name: Semi-colon in While Loop (bug#61291)
+
+=-=
+while (true)
+ ;
+for (int i = 0;
+ i < 5;
+ i++)
+ ;
+=-=-=
+
Name: Multiline Block Comments 1 (bug#60270)
=-=