From: Yuan Fu Date: Mon, 2 Dec 2024 00:47:53 +0000 (-0800) Subject: ; Indent by 8 in BSD indent tests for c-ts-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=814572631f714ea2a720a10dff09a140177b3226;p=emacs.git ; Indent by 8 in BSD indent tests for c-ts-mode * test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts: Set indent offset to 8. (cherry picked from commit de98b5a24f2b2ad293b4298bb898842b8f23e5bc) --- diff --git a/test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts b/test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts index 0f6f87800ec..2325b3b008d 100644 --- a/test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts +++ b/test/lisp/progmodes/c-ts-mode-resources/indent-bsd.erts @@ -2,7 +2,7 @@ Code: (lambda () (c-ts-mode) (setq-local indent-tabs-mode nil) - (setq-local c-ts-mode-indent-offset 2) + (setq-local c-ts-mode-indent-offset 8) (c-ts-mode-set-style 'bsd) (indent-region (point-min) (point-max))) @@ -14,7 +14,7 @@ Name: Basic int main (void) { - return 0; + return 0; } =-=-= @@ -24,10 +24,10 @@ Name: Hanging Braces int main (void) { - if (true) - { - | - } + if (true) + { + | + } } =-=-= @@ -38,20 +38,20 @@ int main (void) { label: - return 0; - if (true) - { - label: - return 0; - } - else - { - if (true) - { - label: - return 0; - } - } + return 0; + if (true) + { + label: + return 0; + } + else + { + if (true) + { + label: + return 0; + } + } } =-=-= @@ -60,14 +60,14 @@ Name: If-Else =-= int main() { - if (true) - { - return 0; - } - else - { - return 1; - } + if (true) + { + return 0; + } + else + { + return 1; + } } =-=-= @@ -75,7 +75,7 @@ Name: Empty Line =-= int main() { - | + | } =-=-= @@ -86,9 +86,9 @@ int main (int argc, char *argv[]) { - { - int i = 0; - } + { + int i = 0; + } } =-=-= @@ -111,17 +111,17 @@ else break; =-= for (int i = 0; i < 5; i++) - continue; + continue; while (true) - return 1; + return 1; do - i++; + i++; while (true) if (true) - break; + break; else - break; + break; =-=-=