Skip to content

Commit

Permalink
Add php-function-call-standard 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 ee88d59
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Names Sorted Alphabetically:

- Aaron S. Hawley
- Alan Pearce
- Alex Figl-Brick
- Andreas Röhler
- Andrei Chițu
- Antoine Brand
Expand Down
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`
* Add `php-function-call-standard` face 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
6 changes: 6 additions & 0 deletions lisp/php-face.el
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
:group 'php-faces
:tag "PHP Function Name")

(defface php-function-call-standard `((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 Standard")

(defface php-function-call '((t ()))
"PHP Mode face used to highlight function names in calles."
:group 'php-faces
Expand Down

0 comments on commit ee88d59

Please sign in to comment.