File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 201
201
:group 'php-faces
202
202
:tag " PHPDoc Class Name" )
203
203
204
+ (defface php-class-declaration '((t (:inherit php-keyword)))
205
+ " Face used to class declarations."
206
+ :group 'php-faces
207
+ :tag " PHP Class Declaration" )
208
+
204
209
(define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag " 1.19.0" )
205
210
206
211
(provide 'php-face )
Original file line number Diff line number Diff line change @@ -1494,6 +1494,9 @@ a completion list."
1494
1494
; ; only add patterns here if you want to prevent cc-mode from applying
1495
1495
; ; a different face.
1496
1496
`(
1497
+ ; ; Class declaration keywords (class, trait, interface)
1498
+ (" class\\ |trait\\ |interface" . 'php-class-declaration )
1499
+
1497
1500
; ; Highlight variables, e.g. 'var' in '$var' and '$obj->var', but
1498
1501
; ; not in $obj->var()
1499
1502
(" \\ (->\\ )\\ (\\ sw+\\ )\\ s-*(" (1 'php-object-op ) (2 'php-method-call ))
You can’t perform that action at this time.
0 commit comments