Skip to content

Commit aad24cf

Browse files
author
Demis Balbach
committed
Add class modifiers
1 parent 2cb9b54 commit aad24cf

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: php-face.el

+5-1
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,16 @@
216216
:group 'php-faces
217217
:tag "PHP Namespace Declaration")
218218

219-
220219
(defface php-import-declaration '((t (:inherit php-keyword)))
221220
"Face used to highlight import statements (use ... as ...)"
222221
:group 'php-faces
223222
:tag "PHP Import Statement")
224223

224+
(defface php-modifiers-class '((t (:inherit php-keyword)))
225+
"Face used to highlight class modifiers (final, abstract)"
226+
:group 'php-faces
227+
:tag "PHP Class Modifiers")
228+
225229
(define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag "1.19.0")
226230

227231
(provide 'php-face)

Diff for: php-mode.el

+3
Original file line numberDiff line numberDiff line change
@@ -1551,6 +1551,9 @@ a completion list."
15511551
;; import statement (use ... as ...)
15521552
("\\(use[[:space:]]\\)\\(?:[[:word:]\\]\\)" (1 'php-import-declaration))
15531553
("\\(?:[[:word:]\\]\\)\\([[:space:]]as\\)" (1 'php-import-declaration))
1554+
1555+
;; Class modifiers (abstract, final)
1556+
("\\(abstract\\|final\\)[[:space:]]\\(?:class\\)" (1 'php-modifiers-class))
15541557

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

0 commit comments

Comments
 (0)