aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2020-12-28 02:47:25 +0100
committerLars Ingebrigtsen2020-12-28 02:47:25 +0100
commit66274210687a911e7a9e61e96db908ec9782039e (patch)
tree0db9bd1607e78e112fbf67785e0f3f7a75e603e8
parentb825131041e2c9294ca662125ea6b70ba9242a8e (diff)
downloademacs-66274210687a911e7a9e61e96db908ec9782039e.tar.gz
emacs-66274210687a911e7a9e61e96db908ec9782039e.zip
Fix alignment of Java String[] and the like
* lisp/align.el (align-rules-list): Allow aligning Java String[] etc (bug#19385). Test case: class X { String field1; String[] field2; int field3; int[] field4; X field5; X[] field6; }
-rw-r--r--lisp/align.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/align.el b/lisp/align.el
index a11d834b823..905328b6625 100644
--- a/lisp/align.el
+++ b/lisp/align.el
@@ -411,7 +411,7 @@ The possible settings for `align-region-separate' are:
411 (modes . align-c++-modes)) 411 (modes . align-c++-modes))
412 412
413 (c-variable-declaration 413 (c-variable-declaration
414 (regexp . ,(concat "[*&0-9A-Za-z_]>?[&*]*\\(\\s-+[*&]*\\)" 414 (regexp . ,(concat "[*&0-9A-Za-z_]>?[][&*]*\\(\\s-+[*&]*\\)"
415 "[A-Za-z_][][0-9A-Za-z:_]*\\s-*\\(\\()\\|" 415 "[A-Za-z_][][0-9A-Za-z:_]*\\s-*\\(\\()\\|"
416 "=[^=\n].*\\|(.*)\\|\\(\\[.*\\]\\)*\\)" 416 "=[^=\n].*\\|(.*)\\|\\(\\[.*\\]\\)*\\)"
417 "\\s-*[;,]\\|)\\s-*$\\)")) 417 "\\s-*[;,]\\|)\\s-*$\\)"))