summaryrefslogtreecommitdiff
path: root/tests/snippets/php/anonymous_class.txt
blob: 4f5e2aeff56e95b5d18482a0d8a12845536967e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---input---
<?php
$containerObject = new class {
  public $something;
}

---tokens---
'<?php'       Comment.Preproc
'\n'          Text

'$containerObject' Name.Variable
' '           Text
'='           Operator
' '           Text
'new'         Keyword
' '           Text
'class'       Keyword
' '           Text
'{'           Punctuation
'\n  '        Text
'public'      Keyword
' '           Text
'$something'  Name.Variable
';'           Punctuation
'\n'          Text

'}'           Punctuation
'\n'          Text