Skip to content

Commit

Permalink
Remove $ from facename for interop with treesit
Browse files Browse the repository at this point in the history
  • Loading branch information
zonuexe committed May 27, 2024
1 parent 92c4d8a commit 2cbf420
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 2cbf420

Please sign in to comment.