tests/snippets/php/anonymous_class.txt
raw| 1 | ---input--- |
| 2 | <?php |
| 3 | $containerObject = new class { |
| 4 | public $something; |
| 5 | } |
| 6 | |
| 7 | ---tokens--- |
| 8 | '<?php' Comment.Preproc |
| 9 | '\n' Text |
| 10 | |
| 11 | '$containerObject' Name.Variable |
| 12 | ' ' Text |
| 13 | '=' Operator |
| 14 | ' ' Text |
| 15 | 'new' Keyword |
| 16 | ' ' Text |
| 17 | 'class' Keyword |
| 18 | ' ' Text |
| 19 | '{' Punctuation |
| 20 | '\n ' Text |
| 21 | 'public' Keyword |
| 22 | ' ' Text |
| 23 | '$something' Name.Variable |
| 24 | ';' Punctuation |
| 25 | '\n' Text |
| 26 | |
| 27 | '}' Punctuation |
| 28 | '\n' Text |