Skip to content

Commit 00eeb2f

Browse files
author
Demis Balbach
committed
Add php class declaration specification face
1 parent a1469dd commit 00eeb2f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

php-face.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,15 @@
202202
:tag "PHPDoc Class Name")
203203

204204
(defface php-class-declaration '((t (:inherit php-keyword)))
205-
"Face used to class declarations."
205+
"Face used to highlight class declaration keywords"
206206
:group 'php-faces
207207
:tag "PHP Class Declaration")
208208

209+
(defface php-class-declaration-spec '((t (:inherit php-keyword)))
210+
"Face used to highlight class declaration specification keywords (implements, extends)"
211+
:group 'php-faces
212+
:tag "PHP Class Declaration Specification")
213+
209214
(define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag "1.19.0")
210215

211216
(provide 'php-face)

php-mode.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,6 +1541,9 @@ a completion list."
15411541
`(
15421542
;; Class declaration keywords (class, trait, interface)
15431543
("class\\|trait\\|interface" . 'php-class-declaration)
1544+
1545+
;; Class declaration specification keywords (implements, extends)
1546+
("implements\\|extends" . 'php-class-declaration-spec)
15441547

15451548
;; Highlight variables, e.g. 'var' in '$var' and '$obj->var', but
15461549
;; not in $obj->var()

0 commit comments

Comments
 (0)