summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/examplefiles/php/test.php4
-rw-r--r--tests/examplefiles/php/test.php.output18
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