|
37 | 37 |
|
38 | 38 | (defface php-string '((t (:inherit font-lock-string-face))) |
39 | 39 | "PHP Mode face used to highlight string literals." |
40 | | - :group 'php-faces |
41 | 40 | :tag "PHP String") |
42 | 41 |
|
43 | 42 | (defface php-keyword '((t (:inherit font-lock-keyword-face))) |
44 | 43 | "PHP Mode face used to highlight keywords." |
45 | | - :group 'php-faces |
46 | 44 | :tag "PHP Keyword") |
47 | 45 |
|
48 | 46 | (defface php-builtin '((t (:inherit font-lock-builtin-face))) |
49 | 47 | "PHP Mode face used to highlight builtins." |
50 | | - :group 'php-faces |
51 | 48 | :tag "PHP Built-in") |
52 | 49 |
|
53 | 50 | (defface php-function-name '((t (:inherit font-lock-function-name-face))) |
54 | 51 | "PHP Mode face used to highlight function names." |
55 | | - :group 'php-faces |
56 | 52 | :tag "PHP Function Name") |
57 | 53 |
|
58 | 54 | (defface php-function-call-standard `((t ,(when (eval-when-compile (get 'font-lock-function-call-face 'face-defface-spec)) |
59 | 55 | '(:inherit font-lock-function-call-face)))) |
60 | 56 | "PHP Mode face used to highlight function names in calles." |
61 | | - :group 'php-faces |
62 | 57 | :tag "PHP Function Call Standard") |
63 | 58 |
|
64 | 59 | (defface php-function-call-traditional '((t ())) |
65 | 60 | "PHP Mode face used to highlight function names in calles." |
66 | | - :group 'php-faces |
67 | 61 | :tag "PHP Function Call Traditional") |
68 | 62 |
|
69 | 63 | (define-obsolete-face-alias 'php-function-call 'php-function-call-traditional "1.26.0") |
70 | 64 |
|
71 | 65 | (defface php-method-call-standard '((t (:inherit php-function-call-standard))) |
72 | 66 | "PHP Mode face used to highlight method names in calles." |
73 | | - :group 'php-faces |
74 | 67 | :tag "PHP Method Call Standard") |
75 | 68 |
|
76 | 69 | (defface php-method-call-traditional '((t (:inherit php-function-call-traditional))) |
77 | 70 | "PHP Mode face used to highlight method names in calles." |
78 | | - :group 'php-faces |
79 | 71 | :tag "PHP Method Call Traditional") |
80 | 72 |
|
81 | 73 | (define-obsolete-face-alias 'php-method-call 'php-method-call-traditional "1.26.0") |
82 | 74 |
|
83 | 75 | (defface php-static-method-call-standard '((t (:inherit php-method-call-standard))) |
84 | 76 | "PHP Mode face used to highlight static method names in calles." |
85 | | - :group 'php-faces |
86 | 77 | :tag "PHP Static Method Call Standard") |
87 | 78 |
|
88 | 79 | (defface php-static-method-call-traditional '((t (:inherit php-method-call-traditional))) |
89 | 80 | "PHP Mode face used to highlight static method names in calles." |
90 | | - :group 'php-faces |
91 | 81 | :tag "PHP Static Method Call Traditional") |
92 | 82 |
|
93 | 83 | (define-obsolete-face-alias 'php-static-method-call 'php-static-method-call-traditional "1.26.0") |
94 | 84 |
|
95 | 85 | (defface php-variable-name '((t (:inherit font-lock-variable-name-face))) |
96 | 86 | "PHP Mode face used to highlight variable names." |
97 | | - :group 'php-faces |
98 | 87 | :tag "PHP Variable Name") |
99 | 88 |
|
100 | 89 | (defface php-property-name '((t (:inherit php-variable-name))) |
101 | 90 | "PHP Mode face used to highlight property names." |
102 | | - :group 'php-faces |
103 | 91 | :tag "PHP Property Name") |
104 | 92 |
|
105 | 93 | (defface php-variable-sigil '((t ())) |
106 | 94 | "PHP Mode face used to highlight variable sigils ($)." |
107 | | - :group 'php-faces |
108 | 95 | :tag "PHP Variable Sigil") |
109 | 96 |
|
110 | 97 | (defface php-operator '((t ())) |
111 | 98 | "PHP Mode face used to operators." |
112 | | - :group 'php-faces |
113 | 99 | :tag "PHP Operator") |
114 | 100 |
|
115 | 101 | (defface php-assignment-op '((t (:inherit php-operator))) |
116 | 102 | "PHP Mode face used to assignment operators (=, +=, ...)." |
117 | | - :group 'php-faces |
118 | 103 | :tag "PHP Object Op") |
119 | 104 |
|
120 | 105 | (defface php-comparison-op '((t (:inherit php-operator))) |
121 | 106 | "PHP Mode face used to comparison operators (==, !=, ===, ...)." |
122 | | - :group 'php-faces |
123 | 107 | :tag "PHP Comparison Op") |
124 | 108 |
|
125 | 109 | (defface php-logical-op '((t (:inherit php-operator))) |
126 | 110 | "PHP Mode face used to logical operators (&&, ||, ?:)." |
127 | | - :group 'php-faces |
128 | 111 | :tag "PHP Logical Op") |
129 | 112 |
|
130 | 113 | (defface php-arithmetic-op '((t (:inherit php-operator))) |
131 | 114 | "PHP Mode face used to arithmetic operators (+, -, %, ...)." |
132 | | - :group 'php-faces |
133 | 115 | :tag "PHP Arithmetic Op") |
134 | 116 |
|
135 | 117 | (defface php-inc-dec-op '((t (:inherit php-operator))) |
136 | 118 | "PHP Mode face used to increment and decremt operators (--, ++)." |
137 | | - :group 'php-faces |
138 | 119 | :tag "PHP Increment/Decrement Op") |
139 | 120 |
|
140 | 121 | (defface php-string-op '((t (:inherit php-operator))) |
141 | 122 | "PHP Mode face used to logical operators (.)." |
142 | | - :group 'php-faces |
143 | 123 | :tag "PHP String Op") |
144 | 124 |
|
145 | 125 | (defface php-object-op '((t (:inherit php-operator))) |
146 | 126 | "PHP Mode face used to object operators (->)." |
147 | | - :group 'php-faces |
148 | 127 | :tag "PHP Object Op") |
149 | 128 |
|
150 | 129 | (defface php-paamayim-nekudotayim '((t ())) |
151 | 130 | "PHP Mode face used to highlight scope resolution operators (::). |
152 | 131 | The operator is also knows as \"Paamayim Nekudotayim\"." |
153 | | - :group 'php-faces |
154 | 132 | :tag "PHP Paamayim Nekudotayim") |
155 | 133 |
|
156 | 134 | (defface php-type '((t (:inherit font-lock-type-face))) |
157 | 135 | "PHP Mode face used to highlight types." |
158 | | - :group 'php-faces |
159 | 136 | :tag "PHP Type") |
160 | 137 |
|
161 | 138 | (defface php-class '((t (:inherit font-lock-type-face))) |
162 | 139 | "PHP Mode face used to highlight class." |
163 | | - :group 'php-faces |
164 | 140 | :tag "PHP Class") |
165 | 141 |
|
166 | 142 | (defface php-constant '((t (:inherit font-lock-constant-face))) |
167 | 143 | "PHP Mode face used to highlight constants." |
168 | | - :group 'php-faces |
169 | 144 | :tag "PHP Constant") |
170 | 145 |
|
171 | 146 | (defface php-constant-assign '((t (:inherit php-constant))) |
172 | 147 | "PHP Mode face used to highlight constant assigning (\"const\" statement)." |
173 | | - :group 'php-faces |
174 | 148 | :tag "PHP Constant Assign") |
175 | 149 |
|
176 | 150 | (defface php-magical-constant '((t (:inherit font-lock-builtin-face))) |
177 | 151 | "PHP Mode face used to highlight magical constants." |
178 | | - :group 'php-faces |
179 | 152 | :tag "PHP Magical Constant") |
180 | 153 |
|
181 | 154 | (defface php-this '((t (:inherit php-constant))) |
182 | 155 | "PHP Mode face used to highlight $this variables." |
183 | | - :group 'php-faces |
184 | 156 | :tag "PHP $this") |
185 | 157 |
|
186 | 158 | (defface php-this-sigil '((t (:inherit php-constant))) |
187 | 159 | "PHP Mode face used to highlight sigils($) of $this variable." |
188 | | - :group 'php-faces |
189 | 160 | :tag "PHP $this Sigil") |
190 | 161 |
|
191 | 162 | (define-obsolete-face-alias 'php-$this 'php-this "1.26.0") |
192 | 163 | (define-obsolete-face-alias 'php-$this-sigil 'php-this-sigil "1.26.0") |
193 | 164 |
|
194 | 165 | (defface php-errorcontrol-op '((t (:inherit font-lock-type-face))) |
195 | 166 | "PHP Mode face used to highlight errorcontrol operators (@).." |
196 | | - :group 'php-faces |
197 | 167 | :tag "PHP ErrorControl Op") |
198 | 168 |
|
199 | 169 | (defface php-php-tag '((t (:inherit font-lock-preprocessor-face))) |
200 | 170 | "PHP Mode face used to highlight PHP tags." |
201 | | - :group 'php-faces |
202 | 171 | :tag "PHP php Tag") |
203 | 172 |
|
204 | 173 | (defface php-doc-annotation-tag (eval-when-compile |
205 | 174 | (if (eval-when-compile (boundp 'font-lock-doc-markup-face)) |
206 | 175 | '((t . (:inherit font-lock-doc-markup-face))) |
207 | 176 | '((t . (:inherit font-lock-constant-face))))) |
208 | 177 | "Face used to highlight annotation tags in doc-comment." |
209 | | - :group 'php-faces |
210 | 178 | :tag "PHPDoc Annotation Tag") |
211 | 179 |
|
212 | 180 | (defface php-doc-variable-sigil '((t (:inherit font-lock-variable-name-face))) |
213 | 181 | "PHP Mode face used to highlight variable sigils($)." |
214 | | - :group 'php-faces |
215 | 182 | :tag "PHPDoc Variable Sigil") |
216 | 183 |
|
217 | 184 | (defface php-doc-$this '((t (:inherit php-type))) |
218 | 185 | "PHP Mode face used to highlight $this variable in doc-comment." |
219 | | - :group 'php-faces |
220 | 186 | :tag "PHPDoc $this") |
221 | 187 |
|
222 | 188 | (defface php-doc-$this-sigil '((t (:inherit php-type))) |
223 | 189 | "PHP Mode face used to highlight sigil of $this variable in doc-comment." |
224 | | - :group 'php-faces |
225 | 190 | :tag "PHPDoc $this Sigil") |
226 | 191 |
|
227 | 192 | (defface php-doc-class-name '((t (:inherit php-string))) |
228 | 193 | "PHP Mode Face used to class names in doc-comment." |
229 | | - :group 'php-faces |
230 | 194 | :tag "PHPDoc Class Name") |
231 | 195 |
|
232 | 196 | (defface php-class-declaration '((t (:inherit php-keyword))) |
233 | 197 | "PHP Mode Face used to class declarations." |
234 | | - :group 'php-faces |
235 | 198 | :tag "PHP Class Declaration") |
236 | 199 |
|
237 | 200 | (defface php-class-declaration-spec '((t (:inherit php-keyword))) |
238 | 201 | "PHP Mode Face used to highlight class declaration specification keywords. |
239 | 202 | The keywords include: implements, extends." |
240 | | - :group 'php-faces |
241 | 203 | :tag "PHP Class Declaration Specification") |
242 | 204 |
|
243 | 205 | (defface php-namespace-declaration '((t (:inherit php-keyword))) |
244 | 206 | "PHP Mode Face used to highlight namespace declaration keyword." |
245 | | - :group 'php-faces |
246 | 207 | :tag "PHP Namespace Declaration") |
247 | 208 |
|
248 | 209 | (defface php-import-declaration '((t (:inherit php-keyword))) |
249 | 210 | "PHP Mode Face used to highlight import statements (use ... as ...)." |
250 | | - :group 'php-faces |
251 | 211 | :tag "PHP Import Statement") |
252 | 212 |
|
253 | 213 | (defface php-class-modifier '((t (:inherit php-keyword))) |
254 | 214 | "PHP Mode Face used to highlight class modifiers (final, abstract)." |
255 | | - :group 'php-faces |
256 | 215 | :tag "PHP Class Modifier") |
257 | 216 |
|
258 | 217 | (defface php-method-modifier '((t (:inherit php-keyword))) |
259 | 218 | "PHP Mode Face used to highlight method modifiers (final, abstract)." |
260 | | - :group 'php-faces |
261 | 219 | :tag "PHP Method Modifier") |
262 | 220 |
|
263 | 221 | (defface php-visibility-modifier '((t (:inherit php-keyword))) |
264 | 222 | "PHP Mode Face used to highlight access keywords (public, protected, private)." |
265 | | - :group 'php-faces |
266 | 223 | :tag "PHP Visibility Modifier") |
267 | 224 |
|
268 | 225 | (defface php-control-structure '((t (:inherit php-keyword))) |
269 | 226 | "PHP Mode Face used to highlight control structures. |
270 | 227 | The control structures include: if, foreach, while, switch, catch." |
271 | | - :group 'php-faces |
272 | 228 | :tag "PHP Control Structure") |
273 | 229 |
|
274 | 230 | (define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag "1.19.0") |
|
0 commit comments