summaryrefslogtreecommitdiff
path: root/tests/lexers/php/example2.txt
blob: 65e7f1e365b9dbc4727ca91d1d6b39530a0691fe (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---input---
<?php

$x = array(0123, 0x0a, -0x0a, -0123, 12, -12);

?>
<?php
$a = 1.234; 
$b = 1.2e3; 
$c = 7E-10;
?>

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

'$x'          Name.Variable
' '           Text
'='           Operator
' '           Text
'array'       Keyword
'('           Punctuation
'0123'        Literal.Number.Oct
','           Punctuation
' '           Text
'0x0a'        Literal.Number.Hex
','           Punctuation
' '           Text
'-'           Operator
'0x0a'        Literal.Number.Hex
','           Punctuation
' '           Text
'-'           Operator
'0123'        Literal.Number.Oct
','           Punctuation
' '           Text
'12'          Literal.Number.Integer
','           Punctuation
' '           Text
'-'           Operator
'12'          Literal.Number.Integer
');'          Punctuation
'\n\n'        Text

'?>'          Comment.Preproc
'\n'          Other

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

'$a'          Name.Variable
' '           Text
'='           Operator
' '           Text
'1.234'       Literal.Number.Float
';'           Punctuation
' \n'         Text

'$b'          Name.Variable
' '           Text
'='           Operator
' '           Text
'1.2e3'       Literal.Number.Float
';'           Punctuation
' \n'         Text

'$c'          Name.Variable
' '           Text
'='           Operator
' '           Text
'7E-10'       Literal.Number.Float
';'           Punctuation
'\n'          Text

'?>'          Comment.Preproc
'\n'          Other