File tree 3 files changed +33
-0
lines changed
3 files changed +33
-0
lines changed 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 @@ -683,6 +683,7 @@ Meant for `php-mode-test-issue-503'."
683
683
(with-php-mode-test (" doc-comment/inheritdoc.php" :faces t ))
684
684
(with-php-mode-test (" lang/class/anonymous-class.php" :indent t :magic t :faces t ))
685
685
(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 ))
686
687
(with-php-mode-test (" lang/try-cactch/multiple.php" :faces t ))
687
688
(with-php-mode-test (" lang/types/cast.php" :faces t ))
688
689
(with-php-mode-test (" lang/types/function.php" :faces t ))
You can’t perform that action at this time.
0 commit comments