Debian Codegraph @

tests/snippets/wikitext/list.txt

raw
1 ---input---
2 ; Term : Definition1
3 : Definition2
4
5 ; '''Term'''
6 : Definition1
7 : Definition2
8 : Definition3
9 : Definition4
10
11 ; [[Wikipedia:Term#123|Blah]] : Definition1
12
13 ; [[Wikipedia:Term#123|Blah]] 
14 : Definition1
15
16 # Item1
17 # ''Item2''
18 # Item3
19 # [[Item4]]
20 ## Sub-item 1
21 ### Sub-sub-item
22 #### Sub-sub-sub-item
23 ## Sub-item 2
24 # Item5
25
26 * Item1
27 * '''Item2'''
28 * Item3
29 * [[Item4]]
30 ** Sub-item 4 a)
31 *** Sub-item 4 a) 1.
32 **** Sub-item 4 a) 1. i)
33 **** Sub-item 4 a) 1. ii)
34 ** Sub-item 4 b)
35 * Item5
36
37 Indentation as used on talk pages:
38 :[[Each]] ''colon'' at the '''start''' of a line
39 ::causes the line to be indented by three more character positions.
40 :::(The indentation persists
41 so long as no carriage return or line break is used.)
42 :::Repeat the indentation at any line break.
43 ::::Use an extra colon for each response.
44 :::::And so forth ...
45 ::::::And so on ...
46 {{Outdent|::::::}}The outdent template can give a visual indicator that we're deliberately cancelling the indent (6 levels here)
47
48 :*# Mixed list
49 ::##:*: Complex mixed list
50
51 ---tokens---
52 ';' Keyword
53 ' ' Text
54 'Term' Text
55 ' ' Text
56 ':' Keyword
57 ' ' Text
58 'Definition1' Text
59 '\n' Text
60
61 ':' Keyword
62 ' ' Text
63 'Definition2' Text
64 '\n' Text
65
66 '\n' Text
67
68 ';' Keyword
69 ' ' Text
70 "'''" Generic.Strong
71 'Term' Generic.Strong
72 "'''" Generic.Strong
73 '\n' Text
74
75 ':' Keyword
76 ' ' Text
77 'Definition1' Text
78 '\n' Text
79
80 ':' Keyword
81 ' ' Text
82 'Definition2' Text
83 '\n' Text
84
85 ':' Keyword
86 ' ' Text
87 'Definition3' Text
88 '\n' Text
89
90 ':' Keyword
91 ' ' Text
92 'Definition4' Text
93 '\n' Text
94
95 '\n' Text
96
97 ';' Keyword
98 ' ' Text
99 '[[' Punctuation
100 'Wikipedia' Name.Namespace
101 ':' Punctuation
102 'Term' Name.Tag
103 '#' Punctuation
104 '123' Name.Label
105 '|' Punctuation
106 'Blah' Text
107 ']]' Punctuation
108 '\xa0' Text
109 ':' Keyword
110 ' ' Text
111 'Definition1' Text
112 '\n' Text
113
114 '\n' Text
115
116 ';' Keyword
117 ' ' Text
118 '[[' Punctuation
119 'Wikipedia' Name.Namespace
120 ':' Punctuation
121 'Term' Name.Tag
122 '#' Punctuation
123 '123' Name.Label
124 '|' Punctuation
125 'Blah' Text
126 ']]' Punctuation
127 '\xa0' Text
128 '\n' Text
129
130 ':' Keyword
131 ' ' Text
132 'Definition1' Text
133 '\n' Text
134
135 '\n' Text
136
137 '#' Keyword
138 ' ' Text
139 'Item1' Text
140 '\n' Text
141
142 '#' Keyword
143 ' ' Text
144 "''" Generic.Emph
145 'Item2' Generic.Emph
146 "''" Generic.Emph
147 '\n' Text
148
149 '#' Keyword
150 ' ' Text
151 'Item3' Text
152 '\n' Text
153
154 '#' Keyword
155 ' ' Text
156 '[[' Punctuation
157 'Item4' Name.Tag
158 ']]' Punctuation
159 '\n' Text
160
161 '##' Keyword
162 ' ' Text
163 'Sub' Text
164 '-' Text
165 'item' Text
166 ' ' Text
167 '1' Text
168 '\n' Text
169
170 '###' Keyword
171 ' ' Text
172 'Sub' Text
173 '-' Text
174 'sub' Text
175 '-' Text
176 'item' Text
177 '\n' Text
178
179 '####' Keyword
180 ' ' Text
181 'Sub' Text
182 '-' Text
183 'sub' Text
184 '-' Text
185 'sub' Text
186 '-' Text
187 'item' Text
188 '\n' Text
189
190 '##' Keyword
191 ' ' Text
192 'Sub' Text
193 '-' Text
194 'item' Text
195 ' ' Text
196 '2' Text
197 '\n' Text
198
199 '#' Keyword
200 ' ' Text
201 'Item5' Text
202 '\n' Text
203
204 '\n' Text
205
206 '*' Keyword
207 ' ' Text
208 'Item1' Text
209 '\n' Text
210
211 '*' Keyword
212 ' ' Text
213 "'''" Generic.Strong
214 'Item2' Generic.Strong
215 "'''" Generic.Strong
216 '\n' Text
217
218 '*' Keyword
219 ' ' Text
220 'Item3' Text
221 '\n' Text
222
223 '*' Keyword
224 ' ' Text
225 '[[' Punctuation
226 'Item4' Name.Tag
227 ']]' Punctuation
228 '\n' Text
229
230 '**' Keyword
231 ' ' Text
232 'Sub' Text
233 '-' Text
234 'item' Text
235 ' ' Text
236 '4' Text
237 ' ' Text
238 'a' Text
239 ')' Text
240 '\n' Text
241
242 '***' Keyword
243 ' ' Text
244 'Sub' Text
245 '-' Text
246 'item' Text
247 ' ' Text
248 '4' Text
249 ' ' Text
250 'a' Text
251 ')' Text
252 ' ' Text
253 '1' Text
254 '.' Text
255 '\n' Text
256
257 '****' Keyword
258 ' ' Text
259 'Sub' Text
260 '-' Text
261 'item' Text
262 ' ' Text
263 '4' Text
264 ' ' Text
265 'a' Text
266 ')' Text
267 ' ' Text
268 '1' Text
269 '.' Text
270 ' ' Text
271 'i' Text
272 ')' Text
273 '\n' Text
274
275 '****' Keyword
276 ' ' Text
277 'Sub' Text
278 '-' Text
279 'item' Text
280 ' ' Text
281 '4' Text
282 ' ' Text
283 'a' Text
284 ')' Text
285 ' ' Text
286 '1' Text
287 '.' Text
288 ' ' Text
289 'ii' Text
290 ')' Text
291 '\n' Text
292
293 '**' Keyword
294 ' ' Text
295 'Sub' Text
296 '-' Text
297 'item' Text
298 ' ' Text
299 '4' Text
300 ' ' Text
301 'b' Text
302 ')' Text
303 '\n' Text
304
305 '*' Keyword
306 ' ' Text
307 'Item5' Text
308 '\n' Text
309
310 '\n' Text
311
312 'Indentation' Text
313 ' ' Text
314 'as' Text
315 ' ' Text
316 'used' Text
317 ' ' Text
318 'on' Text
319 ' ' Text
320 'talk' Text
321 ' ' Text
322 'pages' Text
323 ':' Text
324 '\n' Text
325
326 ':' Keyword
327 '[[' Punctuation
328 'Each' Name.Tag
329 ']]' Punctuation
330 ' ' Text
331 "''" Generic.Emph
332 'colon' Generic.Emph
333 "''" Generic.Emph
334 ' ' Text
335 'at' Text
336 ' ' Text
337 'the' Text
338 ' ' Text
339 "'''" Generic.Strong
340 'start' Generic.Strong
341 "'''" Generic.Strong
342 ' ' Text
343 'of' Text
344 ' ' Text
345 'a' Text
346 ' ' Text
347 'line' Text
348 '\n' Text
349
350 '::' Keyword
351 'causes' Text
352 ' ' Text
353 'the' Text
354 ' ' Text
355 'line' Text
356 ' ' Text
357 'to' Text
358 ' ' Text
359 'be' Text
360 ' ' Text
361 'indented' Text
362 ' ' Text
363 'by' Text
364 ' ' Text
365 'three' Text
366 ' ' Text
367 'more' Text
368 ' ' Text
369 'character' Text
370 ' ' Text
371 'positions' Text
372 '.' Text
373 '\n' Text
374
375 ':::' Keyword
376 '(' Text
377 'The' Text
378 ' ' Text
379 'indentation' Text
380 ' ' Text
381 'persists' Text
382 '\n' Text
383
384 'so' Text
385 ' ' Text
386 'long' Text
387 ' ' Text
388 'as' Text
389 ' ' Text
390 'no' Text
391 ' ' Text
392 'carriage' Text
393 ' ' Text
394 'return' Text
395 ' ' Text
396 'or' Text
397 ' ' Text
398 'line' Text
399 ' ' Text
400 'break' Text
401 ' ' Text
402 'is' Text
403 ' ' Text
404 'used' Text
405 '.' Text
406 ')' Text
407 '\n' Text
408
409 ':::' Keyword
410 'Repeat' Text
411 ' ' Text
412 'the' Text
413 ' ' Text
414 'indentation' Text
415 ' ' Text
416 'at' Text
417 ' ' Text
418 'any' Text
419 ' ' Text
420 'line' Text
421 ' ' Text
422 'break' Text
423 '.' Text
424 '\n' Text
425
426 '::::' Keyword
427 'Use' Text
428 ' ' Text
429 'an' Text
430 ' ' Text
431 'extra' Text
432 ' ' Text
433 'colon' Text
434 ' ' Text
435 'for' Text
436 ' ' Text
437 'each' Text
438 ' ' Text
439 'response' Text
440 '.' Text
441 '\n' Text
442
443 ':::::' Keyword
444 'And' Text
445 ' ' Text
446 'so' Text
447 ' ' Text
448 'forth' Text
449 ' ' Text
450 '.' Text
451 '.' Text
452 '.' Text
453 '\n' Text
454
455 '::::::' Keyword
456 'And' Text
457 ' ' Text
458 'so' Text
459 ' ' Text
460 'on' Text
461 ' ' Text
462 '.' Text
463 '.' Text
464 '.' Text
465 '\n' Text
466
467 '{{' Punctuation
468 'Outdent' Name.Tag
469 '|' Punctuation
470 ':' Text
471 ':' Text
472 ':' Text
473 ':' Text
474 ':' Text
475 ':' Text
476 '}}' Punctuation
477 'The' Text
478 ' ' Text
479 'outdent' Text
480 ' ' Text
481 'template' Text
482 ' ' Text
483 'can' Text
484 ' ' Text
485 'give' Text
486 ' ' Text
487 'a' Text
488 ' ' Text
489 'visual' Text
490 ' ' Text
491 'indicator' Text
492 ' ' Text
493 'that' Text
494 ' ' Text
495 'we' Text
496 "'" Text
497 're' Text
498 ' ' Text
499 'deliberately' Text
500 ' ' Text
501 'cancelling' Text
502 ' ' Text
503 'the' Text
504 ' ' Text
505 'indent' Text
506 ' ' Text
507 '(' Text
508 '6' Text
509 ' ' Text
510 'levels' Text
511 ' ' Text
512 'here' Text
513 ')' Text
514 '\n' Text
515
516 '\n' Text
517
518 ':*#' Keyword
519 ' ' Text
520 'Mixed' Text
521 ' ' Text
522 'list' Text
523 '\n' Text
524
525 '::##:*:' Keyword
526 ' ' Text
527 'Complex' Text
528 ' ' Text
529 'mixed' Text
530 ' ' Text
531 'list' Text
532 '\n' Text