summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/c-ts-mode-resources
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2023-02-05 17:05:21 -0800
committerYuan Fu <casouri@gmail.com>2023-02-06 18:28:40 -0800
commit7cb92b5398771b088450942d9eaefd53b5f91cf6 (patch)
treecf429b602cf1080232d83e364fc234c715455784 /test/lisp/progmodes/c-ts-mode-resources
parentd68ff6016d0ca011b5bf0fd05578fe1abb2e53a9 (diff)
downloademacs-7cb92b5398771b088450942d9eaefd53b5f91cf6.tar.gz
emacs-7cb92b5398771b088450942d9eaefd53b5f91cf6.tar.bz2
emacs-7cb92b5398771b088450942d9eaefd53b5f91cf6.zip
Fix c-ts-mode indentation
Turns out I shouldn't have removed the explicit rules. Anyway, now it indents properly. * lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles): Add rules. * test/lisp/progmodes/c-ts-mode-resources/indent.erts: Add tests
Diffstat (limited to 'test/lisp/progmodes/c-ts-mode-resources')
-rw-r--r--test/lisp/progmodes/c-ts-mode-resources/indent.erts14
1 files changed, 14 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 2750526f893..8c588f56f9a 100644
--- a/test/lisp/progmodes/c-ts-mode-resources/indent.erts
+++ b/test/lisp/progmodes/c-ts-mode-resources/indent.erts
@@ -155,6 +155,20 @@ for (int i = 0;
;
=-=-=
+Name: Bracketless Simple Statement
+
+=-=
+for (int i = 0; i < 5; i++)
+ continue;
+
+while (true)
+ return 1;
+
+do
+ i++;
+while (true)
+=-=-=
+
Name: Multiline Block Comments 1 (bug#60270)
=-=