From ca006807bf17fea558b179102ac28c0f1f46a3fb Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 2 Dec 2020 13:07:40 +0100 Subject: [PATCH] Fix alignment of declaractions of arrays * lisp/align.el (align-rules-list): Align variable declarations like char *foo[], too (bug#23370). --- lisp/align.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/align.el b/lisp/align.el index b2cab1c1b27..a11d834b823 100644 --- a/lisp/align.el +++ b/lisp/align.el @@ -412,7 +412,7 @@ The possible settings for `align-region-separate' are: (c-variable-declaration (regexp . ,(concat "[*&0-9A-Za-z_]>?[&*]*\\(\\s-+[*&]*\\)" - "[A-Za-z_][0-9A-Za-z:_]*\\s-*\\(\\()\\|" + "[A-Za-z_][][0-9A-Za-z:_]*\\s-*\\(\\()\\|" "=[^=\n].*\\|(.*)\\|\\(\\[.*\\]\\)*\\)" "\\s-*[;,]\\|)\\s-*$\\)")) (group . 1) -- 2.39.5