]> git.eshelyaron.com Git - emacs.git/commitdiff
; Minor change in c-ts-mode--indent-styles
authorYuan Fu <casouri@gmail.com>
Sun, 15 Jan 2023 04:53:10 +0000 (20:53 -0800)
committerYuan Fu <casouri@gmail.com>
Sun, 15 Jan 2023 09:11:37 +0000 (01:11 -0800)
; * lisp/progmodes/c-ts-mode.el:
(c-ts-mode--indent-styles): Move top-level label rule to GNU style.

lisp/progmodes/c-ts-mode.el

index 5f8d7426cce20a82d2518f68036f1e174824aa79..2e2bd6beeb6b47b218ff0b36491e8a1ad9fe9c73 100644 (file)
@@ -130,7 +130,6 @@ MODE is either `c' or `cpp'."
             c-ts-mode--comment-2nd-line-anchor
             1)
            ((parent-is "comment") prev-adaptive-prefix 0)
-           (c-ts-mode--top-level-label-matcher point-min 1)
            ((node-is "labeled_statement") parent-bol 0)
            ((parent-is "labeled_statement") parent-bol c-ts-mode-indent-offset)
            ((match "preproc_ifdef" "compound_statement") point-min 0)
@@ -174,6 +173,7 @@ MODE is either `c' or `cpp'."
     `((gnu
        ;; Prepend rules to set highest priority
        ((match "while" "do_statement") parent 0)
+       (c-ts-mode--top-level-label-matcher point-min 1)
        ,@common)
       (k&r ,@common)
       (linux