Skip to content

Commit c68ab57

Browse files
author
Demis Balbach
committed
Add import statement face
1 parent 26b9948 commit c68ab57

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Diff for: php-face.el

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

219+
220+
(defface php-import-declaration '((t (:inherit php-keyword)))
221+
"Face used to highlight import statements (use ... as ...)"
222+
:group 'php-faces
223+
:tag "PHP Import Statement")
224+
219225
(define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag "1.19.0")
220226

221227
(provide 'php-face)

Diff for: php-mode.el

+3
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,9 @@ a completion list."
15471547

15481548
;; Namespace declaration
15491549
("namespace" . 'php-namespace-declaration)
1550+
1551+
;; import statement
1552+
("use\\|as" . 'php-import-declaration)
15501553

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

0 commit comments

Comments
 (0)