File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 55
55
:group 'php-faces
56
56
:tag " PHP Function Name" )
57
57
58
- (defface php-function-call '((t ()))
58
+ ; ; `font-lock-function-call-face' was added in Emacs 29.1
59
+ (defface php-function-call (eval-when-compile
60
+ (if (get 'font-lock-function-call-face 'face-defface-spec )
61
+ '((t (:inherit font-lock-function-call-face)))
62
+ '((t ()))))
59
63
" PHP Mode face used to highlight function names in calles."
60
64
:group 'php-faces
61
65
:tag " PHP Function Call" )
Original file line number Diff line number Diff line change @@ -653,6 +653,12 @@ Meant for `php-mode-test-issue-503'."
653
653
(with-php-mode-test (" indent/issue-702.php" :indent t :magic t ))
654
654
(with-php-mode-test (" indent/issue-726.php" :indent t :magic t )))
655
655
656
+ (ert-deftest php-mode-test-issue-782 ()
657
+ " Test that function calls are fontified."
658
+ (if (version< emacs-version " 29.1" )
659
+ (should (eq (face-attribute 'php-function-call :inherit ) nil ))
660
+ (should (eq (face-attribute 'php-function-call :inherit ) 'font-lock-function-call-face ))))
661
+
656
662
(ert-deftest php-mode-test-php74 ()
657
663
" Test highlighting language constructs added in PHP 7.4."
658
664
(with-php-mode-test (" 7.4/arrow-function.php" :faces t ))
You can’t perform that action at this time.
0 commit comments