Skip to content

Commit d090486

Browse files
committed
Define face to reserve in advance
These faces are not currently used, but may be expanded in the future.
1 parent 7b869da commit d090486

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

Diff for: php-face.el

+27-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,32 @@
8686
:group 'php-faces
8787
:tag "PHP Variable Sigil")
8888

89-
(defface php-object-op '((t (:inherit default)))
89+
(defface php-operator '((t (:inherit default)))
90+
"PHP Mode face used to operators."
91+
:group 'php-faces
92+
:tag "PHP Operator")
93+
94+
(defface php-assignment-op '((t (:inherit php-operator)))
95+
"PHP Mode face used to assignment operators (=, +=, ...)."
96+
:group 'php-faces
97+
:tag "PHP Object Op")
98+
99+
(defface php-comparison-op '((t (:inherit php-operator)))
100+
"PHP Mode face used to comparison operators (==, !=, ===, ...)."
101+
:group 'php-faces
102+
:tag "PHP Comparison Op")
103+
104+
(defface php-logical-op '((t (:inherit php-operator)))
105+
"PHP Mode face used to logical operators (&&, ||, ?:)."
106+
:group 'php-faces
107+
:tag "PHP Logical Op")
108+
109+
(defface php-string-op '((t (:inherit php-operator)))
110+
"PHP Mode face used to logical operators (.)."
111+
:group 'php-faces
112+
:tag "PHP String Op")
113+
114+
(defface php-object-op '((t (:inherit php-operator)))
90115
"PHP Mode face used to object operators (->)."
91116
:group 'php-faces
92117
:tag "PHP Object Op")
@@ -131,7 +156,7 @@
131156
:group 'php-faces
132157
:tag "PHP $this Sigil")
133158

134-
(defface php-errorcontrol-op '((t (:inherit font-lock-type-face)))
159+
(defface php-errorcontrol-op '((t (:inherit font-lock-type-face)))
135160
"PHP Mode face used to highlight errorcontrol operators (@).."
136161
:group 'php-faces
137162
:tag "PHP ErrorControl Op")

0 commit comments

Comments
 (0)