diff options
author | Richard van Velzen <rvanvelzen1@gmail.com> | 2023-02-21 16:05:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 16:05:13 +0100 |
commit | b4e9027ec01939bbbb9953bf5dfbc3f1cbe81148 (patch) | |
tree | 472245746cde4fc61a9467432ca02fad8b4ef293 /pygments/lexers/php.py | |
parent | 4cfd3fdf7e74d47124ca58ad39e89a00304a28ad (diff) | |
download | pygments-git-b4e9027ec01939bbbb9953bf5dfbc3f1cbe81148.tar.gz |
Support PHP attributes (#2347)
Diffstat (limited to 'pygments/lexers/php.py')
-rw-r--r-- | pygments/lexers/php.py | 1 |
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 |