]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix alignment of declaractions of arrays
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 2 Dec 2020 12:07:40 +0000 (13:07 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 2 Dec 2020 12:08:33 +0000 (13:08 +0100)
* lisp/align.el (align-rules-list): Align variable declarations
like char *foo[], too (bug#23370).

lisp/align.el

index b2cab1c1b27978fe1c15450d4122a2801cf17641..a11d834b823ff4eb310261e1f3a5db658f645c24 100644 (file)
@@ -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)