summaryrefslogtreecommitdiff
path: root/pygments/lexers
diff options
context:
space:
mode:
authorRichard van Velzen <rvanvelzen1@gmail.com>2023-02-21 16:05:13 +0100
committerGitHub <noreply@github.com>2023-02-21 16:05:13 +0100
commitb4e9027ec01939bbbb9953bf5dfbc3f1cbe81148 (patch)
tree472245746cde4fc61a9467432ca02fad8b4ef293 /pygments/lexers
parent4cfd3fdf7e74d47124ca58ad39e89a00304a28ad (diff)
downloadpygments-git-b4e9027ec01939bbbb9953bf5dfbc3f1cbe81148.tar.gz
Support PHP attributes (#2347)
Diffstat (limited to 'pygments/lexers')
-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 61d552ab..c99daa4d 100644
--- a/pygments/lexers/php.py
+++ b/pygments/lexers/php.py
@@ -192,6 +192,7 @@ class PhpLexer(RegexLexer):
bygroups(String, String, String.Delimiter, String, String.Delimiter,
Punctuation, Text)),
(r'\s+', Text),
+ (r'#\[', Punctuation),
(r'#.*?\n', Comment.Single),
(r'//.*?\n', Comment.Single),
# put the empty comment here, it is otherwise seen as