Skip to content

Commit

Permalink
Make php-function-call inherit font-lock-function-call-face
Browse files Browse the repository at this point in the history
  • Loading branch information
bricka authored and zonuexe committed Jun 20, 2024
1 parent c8e4c16 commit b09d6b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ All notable changes of the PHP Mode 1.19.1 release series are documented in this
* Remove `$` from face names for interoperability with treesit ([#780], [emacs-php/php-ts-mode#68])
* `php-$this``php-this`
* `php-$this-sigil``php-this-sigil`
* Make `php-function-call` inherit `font-lock-function-call-face` on Emacs 29.1 and above ([#782], thanks [@bricka]!)

### Removed

Expand All @@ -32,6 +33,8 @@ All notable changes of the PHP Mode 1.19.1 release series are documented in this
[#776]: https://github.com/emacs-php/php-mode/discussions/776
[#777]: https://github.com/emacs-php/php-mode/pull/777
[#780]: https://github.com/emacs-php/php-mode/issues/780
[#782]: https://github.com/emacs-php/php-mode/issues/782
[@bricka]: https://github.com/bricka
[emacs-php/php-ts-mode#68]: https://github.com/emacs-php/php-ts-mode/pull/68
[PEAR Coding Standards]: https://pear.php.net/manual/en/standards.php

Expand Down
3 changes: 2 additions & 1 deletion lisp/php-face.el
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
:group 'php-faces
:tag "PHP Function Name")

(defface php-function-call '((t ()))
(defface php-function-call `((t ,(when (eval-when-compile (get 'font-lock-function-call-face 'face-defface-spec))
'(:inherit font-lock-function-call-face))))
"PHP Mode face used to highlight function names in calles."
:group 'php-faces
:tag "PHP Function Call")
Expand Down

0 comments on commit b09d6b5

Please sign in to comment.