]> git.eshelyaron.com Git - emacs.git/commitdiff
Add indentation rule for concatenated_string (bug#60572)
authorTheodor Thornhill <theo@thornhill.no>
Sat, 7 Jan 2023 12:04:07 +0000 (13:04 +0100)
committerYuan Fu <casouri@gmail.com>
Sun, 8 Jan 2023 02:44:17 +0000 (18:44 -0800)
* lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles): Indent to
parent-bol.

lisp/progmodes/c-ts-mode.el

index f58fac40ce2d11f5d5e6d13658d35e590a6a39ea..66f179f2f7f9bb0731f2f0a47e70d7ee7594f1e3 100644 (file)
@@ -138,6 +138,7 @@ MODE is either `c' or `cpp'."
            ((parent-is "function_definition") parent-bol 0)
            ((parent-is "conditional_expression") first-sibling 0)
            ((parent-is "assignment_expression") parent-bol c-ts-mode-indent-offset)
+           ((parent-is "concatenated_string") parent-bol c-ts-mode-indent-offset)
            ((parent-is "comma_expression") first-sibling 0)
            ((parent-is "init_declarator") parent-bol c-ts-mode-indent-offset)
            ((parent-is "parenthesized_expression") first-sibling 1)