tartrazine/spec/tests/php/attributes.txt

39 lines
734 B
Plaintext
Raw Normal View History

2024-08-03 10:36:47 +00:00
---input---
<?php
#[Attribute]
#[Attribute(true)]
#[Attribute, Attribute]
class Extra {}
---tokens---
'<?php' Comment.Preproc
'\n' Text
'#[' Punctuation
'Attribute' Name.Decorator
']' Punctuation
'\n' Text
'#[' Punctuation
'Attribute' Name.Decorator
'(' Punctuation
'true' Keyword
')' Punctuation
']' Punctuation
'\n' Text
'#[' Punctuation
'Attribute' Name.Decorator
',' Punctuation
' ' Text
'Attribute' Name.Decorator
']' Punctuation
'\n' Text
'class' Keyword
' ' Text
'Extra' Name.Class
' ' Text
'{}' Punctuation
'\n' Text