Skip to content

Commit

Permalink
Merge pull request #69 from emacs-php/rename/php-this-face
Browse files Browse the repository at this point in the history
Remove `$` from facename for interop with treesit
  • Loading branch information
zonuexe authored May 27, 2024
2 parents 92c4d8a + 2cbf420 commit 6c0214e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions php-face.el
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,19 @@ The operator is also knows as \"Paamayim Nekudotayim\"."
:group 'php-faces
:tag "PHP Magical Constant")

(defface php-$this '((t (:inherit php-constant)))
(defface php-this '((t (:inherit php-constant)))
"PHP Mode face used to highlight $this variables."
:group 'php-faces
:tag "PHP $this")

(defface php-$this-sigil '((t (:inherit php-constant)))
(defface php-this-sigil '((t (:inherit php-constant)))
"PHP Mode face used to highlight sigils($) of $this variable."
:group 'php-faces
:tag "PHP $this Sigil")

(define-obsolete-face-alias 'php-$this 'php-this "1.26.0")
(define-obsolete-face-alias 'php-$this-sigil 'php-this-sigil "1.26.0")

(defface php-errorcontrol-op '((t (:inherit font-lock-type-face)))
"PHP Mode face used to highlight errorcontrol operators (@).."
:group 'php-faces
Expand Down

0 comments on commit 6c0214e

Please sign in to comment.