Skip to content

Commit 6c0214e

Browse files
authored
Merge pull request #69 from emacs-php/rename/php-this-face
Remove `$` from facename for interop with treesit
2 parents 92c4d8a + 2cbf420 commit 6c0214e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: php-face.el

+5-2
Original file line numberDiff line numberDiff line change
@@ -156,16 +156,19 @@ The operator is also knows as \"Paamayim Nekudotayim\"."
156156
:group 'php-faces
157157
:tag "PHP Magical Constant")
158158

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

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

169+
(define-obsolete-face-alias 'php-$this 'php-this "1.26.0")
170+
(define-obsolete-face-alias 'php-$this-sigil 'php-this-sigil "1.26.0")
171+
169172
(defface php-errorcontrol-op '((t (:inherit font-lock-type-face)))
170173
"PHP Mode face used to highlight errorcontrol operators (@).."
171174
:group 'php-faces

0 commit comments

Comments
 (0)