diff options
Diffstat (limited to 'tests/snippets/php/attributes.txt')
-rw-r--r-- | tests/snippets/php/attributes.txt | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/snippets/php/attributes.txt b/tests/snippets/php/attributes.txt new file mode 100644 index 00000000..cd70176d --- /dev/null +++ b/tests/snippets/php/attributes.txt @@ -0,0 +1,38 @@ +---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 |