emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ca00680: Fix alignment of declaractions of arrays


From: Lars Ingebrigtsen
Subject: master ca00680: Fix alignment of declaractions of arrays
Date: Wed, 2 Dec 2020 07:08:39 -0500 (EST)

branch: master
commit ca006807bf17fea558b179102ac28c0f1f46a3fb
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 b2cab1c..a11d834 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]