Debian Codegraph @

tests/snippets/cpp/test_unicode_identifiers.txt

raw
1 ---input---
2 namespace 𝐨𝐩𝐭𝐢𝐨𝐧 {
3 int _hello();
4 }
5
6 int cześć = 2;
7
8 class 𝐨𝐩𝐭𝐢𝐨𝐧𝐬 final {
9 𝐨𝐩𝐭𝐢𝐨𝐧𝐬() {
10 爴:
11 int a = 𝐨𝐩𝐭𝐢𝐨𝐧::hello();
12 };
13
14 static 𝐨𝐩𝐭𝐢𝐨𝐧𝐬 𝔡𝔢𝔣𝔞𝔲𝔩𝔱;
15 static 𝐨𝐩𝐭𝐢𝐨𝐧𝐬 𝔢𝔵𝔠𝔢𝔭𝔱𝔦𝔬𝔫𝔰;
16 };
17
18 enum class ⅭⅤ { red, green = 15, blue };
19
20 ---tokens---
21 'namespace' Keyword
22 ' ' Text.Whitespace
23 '𝐨𝐩𝐭𝐢𝐨𝐧' Name.Namespace
24 ' ' Text.Whitespace
25 '{' Punctuation
26 '\n' Text.Whitespace
27
28 ' ' Text.Whitespace
29 'int' Keyword.Type
30 ' ' Text.Whitespace
31 '_hello' Name.Function
32 '(' Punctuation
33 ')' Punctuation
34 ';' Punctuation
35 '\n' Text.Whitespace
36
37 '}' Punctuation
38 '\n' Text.Whitespace
39
40 '\n' Text.Whitespace
41
42 'int' Keyword.Type
43 ' ' Text.Whitespace
44 'cześć' Name
45 ' ' Text.Whitespace
46 '=' Operator
47 ' ' Text.Whitespace
48 '2' Literal.Number.Integer
49 ';' Punctuation
50 '\n' Text.Whitespace
51
52 '\n' Text.Whitespace
53
54 'class' Keyword
55 ' ' Text.Whitespace
56 '𝐨𝐩𝐭𝐢𝐨𝐧𝐬' Name.Class
57 ' ' Text.Whitespace
58 'final' Keyword
59 ' ' Text.Whitespace
60 '{' Punctuation
61 '\n' Text.Whitespace
62
63 ' ' Text.Whitespace
64 '𝐨𝐩𝐭𝐢𝐨𝐧𝐬' Name
65 '(' Punctuation
66 ')' Punctuation
67 ' ' Text.Whitespace
68 '{' Punctuation
69 '\n' Text.Whitespace
70
71 ' ' Text.Whitespace
72 '爴' Name.Label
73 ':' Punctuation
74 '\n' Text.Whitespace
75
76 ' ' Text.Whitespace
77 'int' Keyword.Type
78 ' ' Text.Whitespace
79 'a' Name
80 ' ' Text.Whitespace
81 '=' Operator
82 ' ' Text.Whitespace
83 '𝐨𝐩𝐭𝐢𝐨𝐧' Name
84 ':' Operator
85 ':' Operator
86 'hello' Name
87 '(' Punctuation
88 ')' Punctuation
89 ';' Punctuation
90 '\n' Text.Whitespace
91
92 ' ' Text.Whitespace
93 '}' Punctuation
94 ';' Punctuation
95 '\n' Text.Whitespace
96
97 ' ' Text.Whitespace
98 '\n' Text.Whitespace
99
100 ' ' Text.Whitespace
101 'static' Keyword
102 ' ' Text.Whitespace
103 '𝐨𝐩𝐭𝐢𝐨𝐧𝐬' Name
104 ' ' Text.Whitespace
105 '𝔡𝔢𝔣𝔞𝔲𝔩𝔱' Name
106 ';' Punctuation
107 '\n' Text.Whitespace
108
109 ' ' Text.Whitespace
110 'static' Keyword
111 ' ' Text.Whitespace
112 '𝐨𝐩𝐭𝐢𝐨𝐧𝐬' Name
113 ' ' Text.Whitespace
114 '𝔢𝔵𝔠𝔢𝔭𝔱𝔦𝔬𝔫𝔰' Name
115 ';' Punctuation
116 '\n' Text.Whitespace
117
118 '}' Punctuation
119 ';' Punctuation
120 '\n' Text.Whitespace
121
122 '\n' Text.Whitespace
123
124 'enum' Keyword
125 ' ' Text.Whitespace
126 'class' Keyword
127 ' ' Text.Whitespace
128 'ⅭⅤ' Name.Class
129 ' ' Text.Whitespace
130 '{' Punctuation
131 ' ' Text.Whitespace
132 'red' Name
133 ',' Punctuation
134 ' ' Text.Whitespace
135 'green' Name
136 ' ' Text.Whitespace
137 '=' Operator
138 ' ' Text.Whitespace
139 '15' Literal.Number.Integer
140 ',' Punctuation
141 ' ' Text.Whitespace
142 'blue' Name
143 ' ' Text.Whitespace
144 '}' Punctuation
145 ';' Punctuation
146 '\n' Text.Whitespace