summaryrefslogtreecommitdiff
path: root/lisp/align.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-12-02 13:07:40 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-12-02 13:08:33 +0100
commitca006807bf17fea558b179102ac28c0f1f46a3fb (patch)
treeb182a9a29def557bb2524d0eabedb2dcfdf25a1f /lisp/align.el
parent3ebd17d04f4af07ede0ec3297e6ffaaede17cc88 (diff)
downloademacs-ca006807bf17fea558b179102ac28c0f1f46a3fb.tar.gz
Fix alignment of declaractions of arrays
* lisp/align.el (align-rules-list): Align variable declarations like char *foo[], too (bug#23370).
Diffstat (limited to 'lisp/align.el')
-rw-r--r--lisp/align.el2
1 files changed, 1 insertions, 1 deletions
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)