From: Lars Ingebrigtsen Date: Wed, 2 Dec 2020 12:07:40 +0000 (+0100) Subject: Fix alignment of declaractions of arrays X-Git-Tag: emacs-28.0.90~4966 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ca006807bf17fea558b179102ac28c0f1f46a3fb;p=emacs.git Fix alignment of declaractions of arrays * lisp/align.el (align-rules-list): Align variable declarations like char *foo[], too (bug#23370). --- 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)