Debian Codegraph @

tests/snippets/wikitext/language-converter.txt

raw
1 ---input---
2 -{R|zh-cn:博客;; zh-hk:網誌; zh-tw:部落格;}-
3 -{T|zh-cn:博客; zh-hk:網誌; zh-tw:部落格;}-
4 -{A|zh-cn:博客; zh-hk:網誌; zh-tw:部落格;}-
5 -{H|zh-cn:博客; zh-hk:網誌; zh-tw:部落格;}-
6 -{-|zh-cn:博客; zh-hk:網誌; zh-tw:部落格;}-
7 -{H|zh-cn:[[博客]]; zh-hk:網誌; zh-tw:部落格}-
8
9 -{zh-cn:博客; zh-hk:網誌; zh-tw:部落格;}-
10 -{zh-cn:[[博客]]; zh-hk:網誌; zh-tw:部落格}-
11 -{zh-cn:[[博客]]; zh-hk:網誌; zh-tw:部落格; }-
12
13 -{H|巨集=>zh-cn:宏;}-
14 -{D|U槽=>zh-cn:U盘; U槽=>zh-sg:U盘; U槽=>zh-my:U盘; U槽=>zh-tw:USB磁碟機; U槽=>zh-hk:U磁碟機; U槽=>zh-mo:U磁碟機}-
15
16 北-{}-韓、北朝-{}-鲜
17
18 -{部落格}- -{[[部落格]]}-
19
20 -{zh;zh-hans;zh-hant|博客、網誌、部落格}-
21 -{zh;zh-hans;zh-hant|zh-hans:博客、網誌、部落格;zh-hant:;;;;;;;;;}-
22 -{zh;zh-cn;zh-hk|博客、網誌、部落格}-
23
24 -{zh-cn:-{[[博客]]}-; zh-invalid:網誌; zh-tw:部落格}-
25 -{zh-invalid:''a''[[博客]];;;zh-cn:a}-
26 -{zh:''a''[[博客]]}-
27 -{zh-hans:<span style="font-size:120%;">xxx</span>;zh-hant:\
28 <span style="font-size:120%;">yyy</span>;}-
29
30 -{{This is a template}}-
31 -{{{This is a template parameter}}}-
32
33 ---tokens---
34 '-{' Punctuation
35 'R' Keyword
36 '|' Punctuation
37 'zh-cn' Name.Label
38 ':' Punctuation
39 '博客' Text
40 ';' Text
41 ';' Punctuation
42 ' zh-hk' Name.Label
43 ':' Punctuation
44 '網誌' Text
45 ';' Punctuation
46 ' zh-tw' Name.Label
47 ':' Punctuation
48 '部落格' Text
49 ';}-' Punctuation
50 '\n' Text
51
52 '-{' Punctuation
53 'T' Keyword
54 '|' Punctuation
55 'zh-cn' Name.Label
56 ':' Punctuation
57 '博客' Text
58 ';' Punctuation
59 ' zh-hk' Name.Label
60 ':' Punctuation
61 '網誌' Text
62 ';' Punctuation
63 ' zh-tw' Name.Label
64 ':' Punctuation
65 '部落格' Text
66 ';}-' Punctuation
67 '\n' Text
68
69 '-{' Punctuation
70 'A' Keyword
71 '|' Punctuation
72 'zh-cn' Name.Label
73 ':' Punctuation
74 '博客' Text
75 ';' Punctuation
76 ' zh-hk' Name.Label
77 ':' Punctuation
78 '網誌' Text
79 ';' Punctuation
80 ' zh-tw' Name.Label
81 ':' Punctuation
82 '部落格' Text
83 ';}-' Punctuation
84 '\n' Text
85
86 '-{' Punctuation
87 'H' Keyword
88 '|' Punctuation
89 'zh-cn' Name.Label
90 ':' Punctuation
91 '博客' Text
92 ';' Punctuation
93 ' zh-hk' Name.Label
94 ':' Punctuation
95 '網誌' Text
96 ';' Punctuation
97 ' zh-tw' Name.Label
98 ':' Punctuation
99 '部落格' Text
100 ';}-' Punctuation
101 '\n' Text
102
103 '-{' Punctuation
104 '-' Keyword
105 '|' Punctuation
106 'zh-cn' Name.Label
107 ':' Punctuation
108 '博客' Text
109 ';' Punctuation
110 ' zh-hk' Name.Label
111 ':' Punctuation
112 '網誌' Text
113 ';' Punctuation
114 ' zh-tw' Name.Label
115 ':' Punctuation
116 '部落格' Text
117 ';}-' Punctuation
118 '\n' Text
119
120 '-{' Punctuation
121 'H' Keyword
122 '|' Punctuation
123 'zh-cn' Name.Label
124 ':' Punctuation
125 '[[' Punctuation
126 '博客' Name.Tag
127 ']]' Punctuation
128 ';' Punctuation
129 ' zh-hk' Name.Label
130 ':' Punctuation
131 '網誌' Text
132 ';' Punctuation
133 ' zh-tw' Name.Label
134 ':' Punctuation
135 '部落格' Text
136 '}-' Punctuation
137 '\n' Text
138
139 '\n' Text
140
141 '-{' Punctuation
142 'zh-cn' Name.Label
143 ':' Punctuation
144 '博客' Text
145 ';' Punctuation
146 ' zh-hk' Name.Label
147 ':' Punctuation
148 '網誌' Text
149 ';' Punctuation
150 ' zh-tw' Name.Label
151 ':' Punctuation
152 '部落格' Text
153 ';}-' Punctuation
154 '\n' Text
155
156 '-{' Punctuation
157 'zh-cn' Name.Label
158 ':' Punctuation
159 '[[' Punctuation
160 '博客' Name.Tag
161 ']]' Punctuation
162 ';' Punctuation
163 ' zh-hk' Name.Label
164 ':' Punctuation
165 '網誌' Text
166 ';' Punctuation
167 ' zh-tw' Name.Label
168 ':' Punctuation
169 '部落格' Text
170 '}-' Punctuation
171 '\n' Text
172
173 '-{' Punctuation
174 'zh-cn' Name.Label
175 ':' Punctuation
176 '[[' Punctuation
177 '博客' Name.Tag
178 ']]' Punctuation
179 ';' Punctuation
180 ' zh-hk' Name.Label
181 ':' Punctuation
182 '網誌' Text
183 ';' Punctuation
184 ' zh-tw' Name.Label
185 ':' Punctuation
186 '部落格' Text
187 ';' Punctuation
188 ' ' Text
189 '}-' Punctuation
190 '\n' Text
191
192 '\n' Text
193
194 '-{' Punctuation
195 'H' Keyword
196 '|' Punctuation
197 '巨集' Text
198 '=>' Operator
199 'zh-cn' Name.Label
200 ':' Punctuation
201 '宏' Text
202 ';' Punctuation
203 '}-' Punctuation
204 '\n' Text
205
206 '-{' Punctuation
207 'D' Keyword
208 '|' Punctuation
209 'U槽' Text
210 '=>' Operator
211 'zh-cn' Name.Label
212 ':' Punctuation
213 'U盘' Text
214 ';' Punctuation
215 ' ' Text
216 'U槽' Text
217 '=>' Operator
218 'zh-sg' Name.Label
219 ':' Punctuation
220 'U盘' Text
221 ';' Punctuation
222 ' ' Text
223 'U槽' Text
224 '=>' Operator
225 'zh-my' Name.Label
226 ':' Punctuation
227 'U盘' Text
228 ';' Punctuation
229 ' ' Text
230 'U槽' Text
231 '=>' Operator
232 'zh-tw' Name.Label
233 ':' Punctuation
234 'USB磁碟機' Text
235 ';' Punctuation
236 ' ' Text
237 'U槽' Text
238 '=>' Operator
239 'zh-hk' Name.Label
240 ':' Punctuation
241 'U磁碟機' Text
242 ';' Punctuation
243 ' ' Text
244 'U槽' Text
245 '=>' Operator
246 'zh-mo' Name.Label
247 ':' Punctuation
248 'U磁碟機' Text
249 '}-' Punctuation
250 '\n' Text
251
252 '\n' Text
253
254 '北' Text
255 '-{' Punctuation
256 '}-' Punctuation
257 '韓' Text
258 '、' Text
259 '北朝' Text
260 '-{' Punctuation
261 '}-' Punctuation
262 '鲜' Text
263 '\n' Text
264
265 '\n' Text
266
267 '-{' Punctuation
268 '部落格' Text
269 '}-' Punctuation
270 ' ' Text
271 '-{' Punctuation
272 '[[' Punctuation
273 '部落格' Name.Tag
274 ']]' Punctuation
275 '}-' Punctuation
276 '\n' Text
277
278 '\n' Text
279
280 '-{' Punctuation
281 'zh' Keyword
282 ';' Punctuation
283 'zh' Keyword
284 '-' Keyword
285 'hans' Keyword
286 ';' Punctuation
287 'zh' Keyword
288 '-' Keyword
289 'hant' Keyword
290 '|' Punctuation
291 '博客' Text
292 '、' Text
293 '網誌' Text
294 '、' Text
295 '部落格' Text
296 '}-' Punctuation
297 '\n' Text
298
299 '-{' Punctuation
300 'zh' Keyword
301 ';' Punctuation
302 'zh' Keyword
303 '-' Keyword
304 'hans' Keyword
305 ';' Punctuation
306 'zh' Keyword
307 '-' Keyword
308 'hant' Keyword
309 '|' Punctuation
310 'zh' Text
311 '-' Text
312 'hans' Text
313 ':' Text
314 '博客' Text
315 '、' Text
316 '網誌' Text
317 '、' Text
318 '部落格' Text
319 ';' Text
320 'zh' Text
321 '-' Text
322 'hant' Text
323 ':' Text
324 ';' Text
325 ';' Text
326 ';' Text
327 ';' Text
328 ';' Text
329 ';' Text
330 ';' Text
331 ';' Text
332 ';' Text
333 '}-' Punctuation
334 '\n' Text
335
336 '-{' Punctuation
337 'zh' Keyword
338 ';' Punctuation
339 'zh' Keyword
340 '-' Keyword
341 'cn' Keyword
342 ';' Punctuation
343 'zh' Keyword
344 '-' Keyword
345 'hk' Keyword
346 '|' Punctuation
347 '博客' Text
348 '、' Text
349 '網誌' Text
350 '、' Text
351 '部落格' Text
352 '}-' Punctuation
353 '\n' Text
354
355 '\n' Text
356
357 '-{' Punctuation
358 'zh-cn' Name.Label
359 ':' Punctuation
360 '-{' Punctuation
361 '[[' Punctuation
362 '博客' Name.Tag
363 ']]' Punctuation
364 '}-' Punctuation
365 ';' Text
366 ' ' Text
367 'zh' Text
368 '-' Text
369 'invalid' Text
370 ':' Text
371 '網誌' Text
372 ';' Punctuation
373 ' zh-tw' Name.Label
374 ':' Punctuation
375 '部落格' Text
376 '}-' Punctuation
377 '\n' Text
378
379 '-{' Punctuation
380 'zh' Text
381 '-' Text
382 'invalid' Text
383 ':' Text
384 "''" Generic.Emph
385 'a' Generic.Emph
386 "''" Generic.Emph
387 '[[' Punctuation
388 '博客' Name.Tag
389 ']]' Punctuation
390 ';' Text
391 ';' Text
392 ';' Punctuation
393 'zh-cn' Name.Label
394 ':' Punctuation
395 'a' Text
396 '}-' Punctuation
397 '\n' Text
398
399 '-{' Punctuation
400 'zh' Name.Label
401 ':' Punctuation
402 "''" Generic.Emph
403 'a' Generic.Emph
404 "''" Generic.Emph
405 '[[' Punctuation
406 '博客' Name.Tag
407 ']]' Punctuation
408 '}-' Punctuation
409 '\n' Text
410
411 '-{' Punctuation
412 'zh-hans' Name.Label
413 ':' Punctuation
414 '<' Punctuation
415 'span' Name.Tag
416 ' ' Text.Whitespace
417 'style' Name.Attribute
418 '=' Operator
419 '"' Literal.String.Double
420 'font' Literal.String.Double
421 '-' Literal.String.Double
422 'size' Literal.String.Double
423 ':' Literal.String.Double
424 '120' Literal.String.Double
425 '%' Literal.String.Double
426 ';' Literal.String.Double
427 '"' Literal.String.Double
428 '>' Punctuation
429 'xxx' Text
430 '</' Punctuation
431 'span' Name.Tag
432 '>' Punctuation
433 ';' Punctuation
434 'zh-hant' Name.Label
435 ':' Punctuation
436 '\\' Text
437 '\n' Text
438
439 '<' Punctuation
440 'span' Name.Tag
441 ' ' Text.Whitespace
442 'style' Name.Attribute
443 '=' Operator
444 '"' Literal.String.Double
445 'font' Literal.String.Double
446 '-' Literal.String.Double
447 'size' Literal.String.Double
448 ':' Literal.String.Double
449 '120' Literal.String.Double
450 '%' Literal.String.Double
451 ';' Literal.String.Double
452 '"' Literal.String.Double
453 '>' Punctuation
454 'yyy' Text
455 '</' Punctuation
456 'span' Name.Tag
457 '>' Punctuation
458 ';}-' Punctuation
459 '\n' Text
460
461 '\n' Text
462
463 '-' Text
464 '{{' Punctuation
465 'This' Name.Tag
466 ' ' Name.Tag
467 'is' Name.Tag
468 ' ' Name.Tag
469 'a' Name.Tag
470 ' ' Name.Tag
471 'template' Name.Tag
472 '}}' Punctuation
473 '-' Text
474 '\n' Text
475
476 '-' Text
477 '{{{' Punctuation
478 'This is a template parameter' Name.Variable
479 '}}}' Punctuation
480 '-' Text
481 '\n' Text