summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/php.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/php.py b/pygments/lexers/php.py
index f48fa382..702bdd8d 100644
--- a/pygments/lexers/php.py
+++ b/pygments/lexers/php.py
@@ -205,6 +205,7 @@ class PhpLexer(RegexLexer):
(r'[~!%^&*+=|:.<>/@-]+', Operator),
(r'\?', Operator), # don't add to the charclass above!
(r'[\[\]{}();,]+', Punctuation),
+ (r'(new)(\s+)(class)\b', bygroups(Keyword, Text, Keyword)),
(r'(class)(\s+)', bygroups(Keyword, Text), 'classname'),
(r'(function)(\s*)(?=\()', bygroups(Keyword, Text)),
(r'(function)(\s+)(&?)(\s*)',