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 201201 :group 'php-faces
202202 :tag " PHPDoc Class Name" )
203203
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+
204209(define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag " 1.19.0" )
205210
206211(provide 'php-face )
Original file line number Diff line number Diff line change @@ -1494,6 +1494,9 @@ a completion list."
14941494 ; ; only add patterns here if you want to prevent cc-mode from applying
14951495 ; ; a different face.
14961496 `(
1497+ ; ; Class declaration keywords (class, trait, interface)
1498+ (" class\\ |trait\\ |interface" . 'php-class-declaration )
1499+
14971500 ; ; Highlight variables, e.g. 'var' in '$var' and '$obj->var', but
14981501 ; ; not in $obj->var()
14991502 (" \\ (->\\ )\\ (\\ sw+\\ )\\ s-*(" (1 'php-object-op ) (2 'php-method-call ))
You can’t perform that action at this time.
0 commit comments