Skip to content

Commit 26b9948

Browse files
author
Demis Balbach
committed
Add namespace declaration face
1 parent 00eeb2f commit 26b9948

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

php-face.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@
211211
:group 'php-faces
212212
:tag "PHP Class Declaration Specification")
213213

214+
(defface php-namespace-declaration '((t (:inherit php-keyword)))
215+
"Face used to highlight namespace declaration keyword."
216+
:group 'php-faces
217+
:tag "PHP Namespace Declaration")
218+
214219
(define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag "1.19.0")
215220

216221
(provide 'php-face)

php-mode.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; php-mode.el --- Major mode for editing PHP code
1+
3;;; php-mode.el --- Major mode for editing PHP code
22

33
;; Copyright (C) 2018-2019 Friends of Emacs-PHP development
44
;; Copyright (C) 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad
@@ -1544,6 +1544,9 @@ a completion list."
15441544

15451545
;; Class declaration specification keywords (implements, extends)
15461546
("implements\\|extends" . 'php-class-declaration-spec)
1547+
1548+
;; Namespace declaration
1549+
("namespace" . 'php-namespace-declaration)
15471550

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

0 commit comments

Comments
 (0)