File tree 4 files changed +25
-4
lines changed
4 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,23 @@ All notable changes of the PHP Mode 1.19.1 release series are documented in this
6
6
7
7
### Added
8
8
9
- * ** Net feature** : ` php-format ` ([ #730 ] )
9
+ * ** Net feature** : ` php-format ` ([ #731 ] )
10
10
* Add ` php-format-project ` and ` php-format-this-buffer-file ` commands
11
11
* Add ` php-format-auto-mode ` minor mode
12
12
13
+ ### Fixed
14
+
15
+ * Fix array indentation broken by commenting out ([ #726 ] , [ #732 ] )
16
+
13
17
### Removed
14
18
15
19
* No longer highlights ` 'link ` in PHPDoc ([ #724 ] )
16
20
* Please use ` goto-address-prog-mode ` minor mode
17
21
18
22
[ #724 ] : https://github.com/emacs-php/php-mode/pull/724
19
- [ #730 ] : https://github.com/emacs-php/php-mode/pull/730
23
+ [ #726 ] : https://github.com/emacs-php/php-mode/pull/726
24
+ [ #731 ] : https://github.com/emacs-php/php-mode/pull/731
25
+ [ #732 ] : https://github.com/emacs-php/php-mode/pull/732
20
26
21
27
## [ 1.24.2] - 2022-11-13
22
28
Original file line number Diff line number Diff line change @@ -663,6 +663,7 @@ but only if the setting is enabled."
663
663
((looking-at-p " ->" ) '+ )
664
664
((looking-at-p " [:?]" ) '+ )
665
665
((looking-at-p " [,;]" ) nil )
666
+ ((looking-at-p " //" ) nil )
666
667
; ; Is the previous line terminated with `,' ?
667
668
((progn
668
669
(forward-line -1 )
@@ -672,7 +673,7 @@ but only if the setting is enabled."
672
673
(while (and (< beginning-of-langelem (point ))
673
674
(setq start (php-in-string-or-comment-p)))
674
675
(goto-char start)
675
- (skip-chars-backward " " )
676
+ (skip-chars-backward " \r\n " )
676
677
(backward-char 1 ))
677
678
(and (not (eq (point ) beginning-of-current-line))
678
679
(not (looking-at-p " ," ))
Original file line number Diff line number Diff line change
1
+ <?php
2
+ $ a = [
3
+ 'aaa ' => [
4
+ 'bee ' => 2 ,
5
+ ],
6
+ // 'foo' => [
7
+ // 'bar' => 1,
8
+ // ],
9
+ // ###php-mode-test### ((indent 4))
10
+ 'lee ' => 2 ,
11
+ // 'dee' => 3
12
+ 'gee ' => 4 , // ###php-mode-test### ((indent 4))
13
+ ]; // ###php-mode-test### ((indent 0))
Original file line number Diff line number Diff line change @@ -652,7 +652,8 @@ Meant for `php-mode-test-issue-503'."
652
652
653
653
(ert-deftest php-mode-test-issue-702 ()
654
654
" Proper alignment arglist."
655
- (with-php-mode-test (" indent/issue-702.php" :indent t :magic t )))
655
+ (with-php-mode-test (" indent/issue-702.php" :indent t :magic t ))
656
+ (with-php-mode-test (" indent/issue-726.php" :indent t :magic t )))
656
657
657
658
(ert-deftest php-mode-test-php74 ()
658
659
" Test highlighting language constructs added in PHP 7.4."
You can’t perform that action at this time.
0 commit comments