Skip to content

Commit 79cb812

Browse files
committed
Fix regexp for constant font-locking
This fix is not essential, we will redesign at a later date.
1 parent d8b482a commit 79cb812

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,8 +1565,8 @@ a completion list."
15651565
(")\\s-*:\\s-*\\??\\(array\\)\\b" 1 font-lock-type-face)
15661566

15671567
;; namespaces
1568-
("\\(\\([a-zA-Z0-9]+\\\\\\)+[a-zA-Z0-9]+\\|\\(\\\\[a-zA-Z0-9]+\\)+\\)[^:a-zA-Z0-9\\\\]" 1 'font-lock-type-face)
1569-
("\\(\\([a-zA-Z0-9]+\\\\\\)+[a-zA-Z0-9]+\\|\\(\\\\[a-zA-Z0-9]+\\)+\\)::" 1 'php-constant)
1568+
("\\(\\([a-zA-Z0-9_]+\\\\\\)+[a-zA-Z0-9_]+\\|\\(\\\\[a-zA-Z0-9_]+\\)+\\)[^:a-zA-Z0-9_\\\\]" 1 'font-lock-type-face)
1569+
("\\(\\([a-zA-Z0-9_]+\\\\\\)+[a-zA-Z0-9_]+\\|\\(\\\\[a-zA-Z0-9_]+\\)+\\)::" 1 'php-constant)
15701570

15711571
;; Support the ::class constant in PHP5.6
15721572
("\\sw+\\(::\\)\\(class\\)\\b" (1 'php-paamayim-nekudotayim) (2 'php-constant)))

0 commit comments

Comments
 (0)