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 /tests | |
parent | 4cfd3fdf7e74d47124ca58ad39e89a00304a28ad (diff) | |
download | pygments-git-b4e9027ec01939bbbb9953bf5dfbc3f1cbe81148.tar.gz |
Support PHP attributes (#2347)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examplefiles/php/test.php | 4 | ||||
-rw-r--r-- | tests/examplefiles/php/test.php.output | 18 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/examplefiles/php/test.php b/tests/examplefiles/php/test.php index e8efdc6a..0076e04b 100644 --- a/tests/examplefiles/php/test.php +++ b/tests/examplefiles/php/test.php @@ -542,3 +542,7 @@ some_delimiter; ?> +<?php +#[Attribute] +class Extra {} +?>
\ No newline at end of file diff --git a/tests/examplefiles/php/test.php.output b/tests/examplefiles/php/test.php.output index 7d63ddb3..8337da7b 100644 --- a/tests/examplefiles/php/test.php.output +++ b/tests/examplefiles/php/test.php.output @@ -3101,4 +3101,22 @@ '\n' Text '?>' Comment.Preproc +'\n\n' Other + +'<?php' Comment.Preproc +'\n' Text + +'#[' Punctuation +'Attribute' Name.Other +']' Punctuation +'\n' Text + +'class' Keyword +' ' Text +'Extra' Name.Class +' ' Text +'{}' Punctuation +'\n' Text + +'?>' Comment.Preproc '\n' Other |