File tree Expand file tree Collapse file tree 6 files changed +78
-1
lines changed Expand file tree Collapse file tree 6 files changed +78
-1
lines changed Original file line number Diff line number Diff line change @@ -688,6 +688,7 @@ but only if the setting is enabled"
688688 (case-label . + )
689689 (class-open . 0 )
690690 (comment-intro . 0 )
691+ (inexpr-class . 0 )
691692 (inlambda . 0 )
692693 (inline-open . 0 )
693694 (namespace-open . 0 )
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ $ class = new class () extends IteratorAggregate {
4+ // ###php-mode-test### ((indent 4))
5+ };
6+
7+ is_object (1 , new class () extends IteratorAggregate {
8+ // ###php-mode-test### ((indent 4))
9+ });
Original file line number Diff line number Diff line change 1+ ; ; -*- mode : emacs-lisp -*-
2+ ((" <?php" . php-php-tag)
3+ (" \n\n " )
4+ (" $" . php-variable-sigil)
5+ (" class" . php-variable-name)
6+ (" " )
7+ (" =" . php-assignment-op)
8+ (" " )
9+ (" new" . php-keyword)
10+ (" " )
11+ (" class" . php-keyword)
12+ (" () " )
13+ (" extends" . php-keyword)
14+ (" " )
15+ (" IteratorAggregate" . font-lock-type-face )
16+ (" {\n " )
17+ (" // " . font-lock-comment-delimiter-face )
18+ (" ###php-mode-test### ((indent 4))\n " . font-lock-comment-face )
19+ (" };\n\n " )
20+ (" is_object" . php-function-call)
21+ (" (1, " )
22+ (" new" . php-keyword)
23+ (" " )
24+ (" class" . php-keyword)
25+ (" () " )
26+ (" extends" . php-keyword)
27+ (" " )
28+ (" IteratorAggregate" . font-lock-type-face )
29+ (" {\n " )
30+ (" // " . font-lock-comment-delimiter-face )
31+ (" ###php-mode-test### ((indent 4))\n " . font-lock-comment-face )
32+ (" });\n " ))
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ is_object (static function () {
4+ // ###php-mode-test### ((indent 4))
5+ });
6+
7+ is_object (static function (): void {
8+ // ###php-mode-test### ((indent 4))
9+ });
Original file line number Diff line number Diff line change 1+ ; ; -*- mode : emacs-lisp -*-
2+ ((" <?php" . php-php-tag)
3+ (" \n\n " )
4+ (" is_object" . php-function-call)
5+ (" (" )
6+ (" static" . php-keyword)
7+ (" " )
8+ (" function" . php-keyword)
9+ (" () {\n " )
10+ (" // " . font-lock-comment-delimiter-face )
11+ (" ###php-mode-test### ((indent 4))\n " . font-lock-comment-face )
12+ (" });\n\n " )
13+ (" is_object" . php-function-call)
14+ (" (" )
15+ (" static" . php-keyword)
16+ (" " )
17+ (" function" . php-keyword)
18+ (" (): " )
19+ (" void" . font-lock-type-face )
20+ (" {\n " )
21+ (" // " . font-lock-comment-delimiter-face )
22+ (" ###php-mode-test### ((indent 4))\n " . font-lock-comment-face )
23+ (" });\n " ))
Original file line number Diff line number Diff line change @@ -540,7 +540,8 @@ style from Drupal."
540540(ert-deftest php-mode-test-issue-227 ()
541541 " multi-line strings indents "
542542 (custom-set-variables '(php-lineup-cascaded-calls t ))
543- (with-php-mode-test (" issue-227.php" :indent t :style pear)))
543+ (with-php-mode-test (" issue-227.php" :indent t :style pear :magic t )))
544+
544545(ert-deftest php-mode-test-issue-237 ()
545546 " Indent chaining method for PSR2."
546547 (with-php-mode-test (" issue-237.php" :indent t :style psr2 :magic t )))
@@ -680,7 +681,9 @@ Meant for `php-mode-test-issue-503'."
680681 (t t ))))
681682 (with-php-mode-test (" doc-comment/return-type.php" :faces t ))
682683 (with-php-mode-test (" doc-comment/inheritdoc.php" :faces t ))
684+ (with-php-mode-test (" lang/class/anonymous-class.php" :indent t :magic t :faces t ))
683685 (with-php-mode-test (" lang/function/calls.php" :faces t ))
686+ (with-php-mode-test (" lang/function/closure.php" :indent t :magic t :faces t ))
684687 (with-php-mode-test (" lang/try-cactch/multiple.php" :faces t ))
685688 (with-php-mode-test (" lang/types/cast.php" :faces t ))
686689 (with-php-mode-test (" lang/types/function.php" :faces t ))
You can’t perform that action at this time.
0 commit comments