summaryrefslogtreecommitdiff
path: root/tests/lexers/c/example.txt
blob: b579a5ed36a868b5ae77fd8640c054ab3396c440 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---input---
/*
 * Some Number Test
 */

int i = 24241424;
float f1 = 342423423.24234;
float f2 = 25235235.;
float f3 = .234234;
float f4 = 234243e+34343;
float f5 = 24234e-234;
int o = 0234;
int h = 0x2342;

---tokens---
'/*\n * Some Number Test\n */' Comment.Multiline
'\n'          Text

'\n'          Text

'int'         Keyword.Type
' '           Text
'i'           Name
' '           Text
'='           Operator
' '           Text
'24241424'    Literal.Number.Integer
';'           Punctuation
'\n'          Text

'float'       Keyword.Type
' '           Text
'f1'          Name
' '           Text
'='           Operator
' '           Text
'342423423.24234' Literal.Number.Float
';'           Punctuation
'\n'          Text

'float'       Keyword.Type
' '           Text
'f2'          Name
' '           Text
'='           Operator
' '           Text
'25235235.'   Literal.Number.Float
';'           Punctuation
'\n'          Text

'float'       Keyword.Type
' '           Text
'f3'          Name
' '           Text
'='           Operator
' '           Text
'.234234'     Literal.Number.Float
';'           Punctuation
'\n'          Text

'float'       Keyword.Type
' '           Text
'f4'          Name
' '           Text
'='           Operator
' '           Text
'234243e+34343' Literal.Number.Float
';'           Punctuation
'\n'          Text

'float'       Keyword.Type
' '           Text
'f5'          Name
' '           Text
'='           Operator
' '           Text
'24234e-234'  Literal.Number.Float
';'           Punctuation
'\n'          Text

'int'         Keyword.Type
' '           Text
'o'           Name
' '           Text
'='           Operator
' '           Text
'0234'        Literal.Number.Oct
';'           Punctuation
'\n'          Text

'int'         Keyword.Type
' '           Text
'h'           Name
' '           Text
'='           Operator
' '           Text
'0x2342'      Literal.Number.Hex
';'           Punctuation
'\n'          Text