emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master d392a5d3c11 5/7: Fix c-ts-mode BSD style indentation


From: Yuan Fu
Subject: master d392a5d3c11 5/7: Fix c-ts-mode BSD style indentation
Date: Wed, 6 Sep 2023 00:03:50 -0400 (EDT)

branch: master
commit d392a5d3c11b7e7479d31421f8237f29952c909e
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    Fix c-ts-mode BSD style indentation
    
    * lisp/progmodes/c-ts-mode.el:
    (c-ts-mode--indent-styles): Add else_clause.
---
 lisp/progmodes/c-ts-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el
index 7350ef3f4b8..5f685e016d2 100644
--- a/lisp/progmodes/c-ts-mode.el
+++ b/lisp/progmodes/c-ts-mode.el
@@ -478,6 +478,7 @@ MODE is either `c' or `cpp'."
        ((parent-is "labeled_statement") parent-bol c-ts-mode-indent-offset)
        ((parent-is "compound_statement") parent-bol c-ts-mode-indent-offset)
        ((parent-is "if_statement") parent-bol 0)
+       ((parent-is "else_clause") parent-bol 0)
        ((parent-is "for_statement") parent-bol 0)
        ((parent-is "while_statement") parent-bol 0)
        ((parent-is "switch_statement") parent-bol 0)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]