diff options
-rw-r--r-- | pygments/lexers/php.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/php.py b/pygments/lexers/php.py index 90496d42..632ac9e0 100644 --- a/pygments/lexers/php.py +++ b/pygments/lexers/php.py @@ -137,7 +137,7 @@ class PhpLexer(RegexLexer): ], 'php': [ (r'\?>', Comment.Preproc, '#pop'), - (r'<<<(\'?)(' + _ident_inner + ')\1\n.*?\n\2\;?\n', String), + (r'<<<([\'"]?)(' + _ident_inner + r')\1\n.*?\n\2\;?\n', String), (r'\s+', Text), (r'#.*?\n', Comment.Single), (r'//.*?\n', Comment.Single), |