commonmarker 0.23.10 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +1220 -0
  3. data/Cargo.toml +7 -0
  4. data/README.md +217 -170
  5. data/ext/commonmarker/Cargo.toml +20 -0
  6. data/ext/commonmarker/extconf.rb +3 -6
  7. data/ext/commonmarker/src/lib.rs +183 -0
  8. data/ext/commonmarker/src/node.rs +1095 -0
  9. data/ext/commonmarker/src/options.rs +165 -0
  10. data/ext/commonmarker/src/plugins/syntax_highlighting.rs +74 -0
  11. data/ext/commonmarker/src/plugins.rs +3 -0
  12. data/ext/commonmarker/src/utils.rs +8 -0
  13. data/lib/commonmarker/config.rb +90 -40
  14. data/lib/commonmarker/constants.rb +7 -0
  15. data/lib/commonmarker/extension.rb +14 -0
  16. data/lib/commonmarker/node/ast.rb +8 -0
  17. data/lib/commonmarker/node/inspect.rb +14 -4
  18. data/lib/commonmarker/node.rb +29 -47
  19. data/lib/commonmarker/renderer.rb +1 -127
  20. data/lib/commonmarker/utils.rb +22 -0
  21. data/lib/commonmarker/version.rb +2 -2
  22. data/lib/commonmarker.rb +27 -25
  23. metadata +38 -186
  24. data/Rakefile +0 -109
  25. data/bin/commonmarker +0 -118
  26. data/commonmarker.gemspec +0 -38
  27. data/ext/commonmarker/arena.c +0 -104
  28. data/ext/commonmarker/autolink.c +0 -508
  29. data/ext/commonmarker/autolink.h +0 -8
  30. data/ext/commonmarker/blocks.c +0 -1622
  31. data/ext/commonmarker/buffer.c +0 -278
  32. data/ext/commonmarker/buffer.h +0 -116
  33. data/ext/commonmarker/case_fold_switch.inc +0 -4327
  34. data/ext/commonmarker/chunk.h +0 -135
  35. data/ext/commonmarker/cmark-gfm-core-extensions.h +0 -54
  36. data/ext/commonmarker/cmark-gfm-extension_api.h +0 -737
  37. data/ext/commonmarker/cmark-gfm-extensions_export.h +0 -42
  38. data/ext/commonmarker/cmark-gfm.h +0 -833
  39. data/ext/commonmarker/cmark-gfm_export.h +0 -42
  40. data/ext/commonmarker/cmark-gfm_version.h +0 -7
  41. data/ext/commonmarker/cmark.c +0 -55
  42. data/ext/commonmarker/cmark_ctype.c +0 -44
  43. data/ext/commonmarker/cmark_ctype.h +0 -33
  44. data/ext/commonmarker/commonmark.c +0 -514
  45. data/ext/commonmarker/commonmarker.c +0 -1308
  46. data/ext/commonmarker/commonmarker.h +0 -16
  47. data/ext/commonmarker/config.h +0 -76
  48. data/ext/commonmarker/core-extensions.c +0 -27
  49. data/ext/commonmarker/entities.inc +0 -2138
  50. data/ext/commonmarker/ext_scanners.c +0 -879
  51. data/ext/commonmarker/ext_scanners.h +0 -24
  52. data/ext/commonmarker/footnotes.c +0 -63
  53. data/ext/commonmarker/footnotes.h +0 -27
  54. data/ext/commonmarker/houdini.h +0 -57
  55. data/ext/commonmarker/houdini_href_e.c +0 -100
  56. data/ext/commonmarker/houdini_html_e.c +0 -66
  57. data/ext/commonmarker/houdini_html_u.c +0 -149
  58. data/ext/commonmarker/html.c +0 -502
  59. data/ext/commonmarker/html.h +0 -27
  60. data/ext/commonmarker/inlines.c +0 -1788
  61. data/ext/commonmarker/inlines.h +0 -29
  62. data/ext/commonmarker/iterator.c +0 -159
  63. data/ext/commonmarker/iterator.h +0 -26
  64. data/ext/commonmarker/latex.c +0 -468
  65. data/ext/commonmarker/linked_list.c +0 -37
  66. data/ext/commonmarker/man.c +0 -274
  67. data/ext/commonmarker/map.c +0 -129
  68. data/ext/commonmarker/map.h +0 -44
  69. data/ext/commonmarker/node.c +0 -1045
  70. data/ext/commonmarker/node.h +0 -167
  71. data/ext/commonmarker/parser.h +0 -59
  72. data/ext/commonmarker/plaintext.c +0 -218
  73. data/ext/commonmarker/plugin.c +0 -36
  74. data/ext/commonmarker/plugin.h +0 -34
  75. data/ext/commonmarker/references.c +0 -43
  76. data/ext/commonmarker/references.h +0 -26
  77. data/ext/commonmarker/registry.c +0 -63
  78. data/ext/commonmarker/registry.h +0 -24
  79. data/ext/commonmarker/render.c +0 -213
  80. data/ext/commonmarker/render.h +0 -62
  81. data/ext/commonmarker/scanners.c +0 -14056
  82. data/ext/commonmarker/scanners.h +0 -70
  83. data/ext/commonmarker/scanners.re +0 -341
  84. data/ext/commonmarker/strikethrough.c +0 -167
  85. data/ext/commonmarker/strikethrough.h +0 -9
  86. data/ext/commonmarker/syntax_extension.c +0 -149
  87. data/ext/commonmarker/syntax_extension.h +0 -34
  88. data/ext/commonmarker/table.c +0 -917
  89. data/ext/commonmarker/table.h +0 -12
  90. data/ext/commonmarker/tagfilter.c +0 -60
  91. data/ext/commonmarker/tagfilter.h +0 -8
  92. data/ext/commonmarker/tasklist.c +0 -156
  93. data/ext/commonmarker/tasklist.h +0 -8
  94. data/ext/commonmarker/utf8.c +0 -317
  95. data/ext/commonmarker/utf8.h +0 -35
  96. data/ext/commonmarker/xml.c +0 -182
  97. data/lib/commonmarker/renderer/html_renderer.rb +0 -256
@@ -1,879 +0,0 @@
1
- /* Generated by re2c 1.3 */
2
-
3
- #include "ext_scanners.h"
4
- #include <stdlib.h>
5
-
6
- bufsize_t _ext_scan_at(bufsize_t (*scanner)(const unsigned char *),
7
- unsigned char *ptr, int len, bufsize_t offset) {
8
- bufsize_t res;
9
-
10
- if (ptr == NULL || offset >= len) {
11
- return 0;
12
- } else {
13
- unsigned char lim = ptr[len];
14
-
15
- ptr[len] = '\0';
16
- res = scanner(ptr + offset);
17
- ptr[len] = lim;
18
- }
19
-
20
- return res;
21
- }
22
-
23
- bufsize_t _scan_table_start(const unsigned char *p) {
24
- const unsigned char *marker = NULL;
25
- const unsigned char *start = p;
26
-
27
- {
28
- unsigned char yych;
29
- static const unsigned char yybm[] = {
30
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 64, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0,
31
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
32
- 0, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
33
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
34
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
35
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
36
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
37
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
38
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
39
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
40
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
41
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
42
- };
43
- yych = *p;
44
- if (yych <= ' ') {
45
- if (yych <= '\n') {
46
- if (yych == '\t')
47
- goto yy4;
48
- } else {
49
- if (yych <= '\f')
50
- goto yy4;
51
- if (yych >= ' ')
52
- goto yy4;
53
- }
54
- } else {
55
- if (yych <= '9') {
56
- if (yych == '-')
57
- goto yy5;
58
- } else {
59
- if (yych <= ':')
60
- goto yy6;
61
- if (yych == '|')
62
- goto yy4;
63
- }
64
- }
65
- ++p;
66
- yy3 : { return 0; }
67
- yy4:
68
- yych = *(marker = ++p);
69
- if (yybm[0 + yych] & 64) {
70
- goto yy7;
71
- }
72
- if (yych == '-')
73
- goto yy10;
74
- if (yych == ':')
75
- goto yy12;
76
- goto yy3;
77
- yy5:
78
- yych = *(marker = ++p);
79
- if (yybm[0 + yych] & 128) {
80
- goto yy10;
81
- }
82
- if (yych <= ' ') {
83
- if (yych <= 0x08)
84
- goto yy3;
85
- if (yych <= '\r')
86
- goto yy14;
87
- if (yych <= 0x1F)
88
- goto yy3;
89
- goto yy14;
90
- } else {
91
- if (yych <= ':') {
92
- if (yych <= '9')
93
- goto yy3;
94
- goto yy13;
95
- } else {
96
- if (yych == '|')
97
- goto yy14;
98
- goto yy3;
99
- }
100
- }
101
- yy6:
102
- yych = *(marker = ++p);
103
- if (yybm[0 + yych] & 128) {
104
- goto yy10;
105
- }
106
- goto yy3;
107
- yy7:
108
- yych = *++p;
109
- if (yybm[0 + yych] & 64) {
110
- goto yy7;
111
- }
112
- if (yych == '-')
113
- goto yy10;
114
- if (yych == ':')
115
- goto yy12;
116
- yy9:
117
- p = marker;
118
- goto yy3;
119
- yy10:
120
- yych = *++p;
121
- if (yybm[0 + yych] & 128) {
122
- goto yy10;
123
- }
124
- if (yych <= 0x1F) {
125
- if (yych <= '\n') {
126
- if (yych <= 0x08)
127
- goto yy9;
128
- if (yych <= '\t')
129
- goto yy13;
130
- goto yy15;
131
- } else {
132
- if (yych <= '\f')
133
- goto yy13;
134
- if (yych <= '\r')
135
- goto yy17;
136
- goto yy9;
137
- }
138
- } else {
139
- if (yych <= ':') {
140
- if (yych <= ' ')
141
- goto yy13;
142
- if (yych <= '9')
143
- goto yy9;
144
- goto yy13;
145
- } else {
146
- if (yych == '|')
147
- goto yy18;
148
- goto yy9;
149
- }
150
- }
151
- yy12:
152
- yych = *++p;
153
- if (yybm[0 + yych] & 128) {
154
- goto yy10;
155
- }
156
- goto yy9;
157
- yy13:
158
- yych = *++p;
159
- yy14:
160
- if (yych <= '\r') {
161
- if (yych <= '\t') {
162
- if (yych <= 0x08)
163
- goto yy9;
164
- goto yy13;
165
- } else {
166
- if (yych <= '\n')
167
- goto yy15;
168
- if (yych <= '\f')
169
- goto yy13;
170
- goto yy17;
171
- }
172
- } else {
173
- if (yych <= ' ') {
174
- if (yych <= 0x1F)
175
- goto yy9;
176
- goto yy13;
177
- } else {
178
- if (yych == '|')
179
- goto yy18;
180
- goto yy9;
181
- }
182
- }
183
- yy15:
184
- ++p;
185
- { return (bufsize_t)(p - start); }
186
- yy17:
187
- yych = *++p;
188
- if (yych == '\n')
189
- goto yy15;
190
- goto yy9;
191
- yy18:
192
- yych = *++p;
193
- if (yybm[0 + yych] & 128) {
194
- goto yy10;
195
- }
196
- if (yych <= '\r') {
197
- if (yych <= '\t') {
198
- if (yych <= 0x08)
199
- goto yy9;
200
- goto yy18;
201
- } else {
202
- if (yych <= '\n')
203
- goto yy15;
204
- if (yych <= '\f')
205
- goto yy18;
206
- goto yy17;
207
- }
208
- } else {
209
- if (yych <= ' ') {
210
- if (yych <= 0x1F)
211
- goto yy9;
212
- goto yy18;
213
- } else {
214
- if (yych == ':')
215
- goto yy12;
216
- goto yy9;
217
- }
218
- }
219
- }
220
- }
221
-
222
- bufsize_t _scan_table_cell(const unsigned char *p) {
223
- const unsigned char *marker = NULL;
224
- const unsigned char *start = p;
225
-
226
- {
227
- unsigned char yych;
228
- unsigned int yyaccept = 0;
229
- static const unsigned char yybm[] = {
230
- 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 0, 64, 64, 0, 64, 64, 64, 64,
231
- 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
232
- 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
233
- 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
234
- 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
235
- 64, 64, 128, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
236
- 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 0, 64,
237
- 64, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
238
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
239
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
240
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
241
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
242
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
243
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
244
- 0, 0, 0, 0,
245
- };
246
- yych = *p;
247
- if (yybm[0 + yych] & 64) {
248
- goto yy22;
249
- }
250
- if (yych <= 0xEC) {
251
- if (yych <= 0xC1) {
252
- if (yych <= '\r')
253
- goto yy25;
254
- if (yych <= '\\')
255
- goto yy27;
256
- goto yy25;
257
- } else {
258
- if (yych <= 0xDF)
259
- goto yy29;
260
- if (yych <= 0xE0)
261
- goto yy30;
262
- goto yy31;
263
- }
264
- } else {
265
- if (yych <= 0xF0) {
266
- if (yych <= 0xED)
267
- goto yy32;
268
- if (yych <= 0xEF)
269
- goto yy31;
270
- goto yy33;
271
- } else {
272
- if (yych <= 0xF3)
273
- goto yy34;
274
- if (yych <= 0xF4)
275
- goto yy35;
276
- goto yy25;
277
- }
278
- }
279
- yy22:
280
- yyaccept = 0;
281
- yych = *(marker = ++p);
282
- if (yybm[0 + yych] & 64) {
283
- goto yy22;
284
- }
285
- if (yych <= 0xEC) {
286
- if (yych <= 0xC1) {
287
- if (yych <= '\r')
288
- goto yy24;
289
- if (yych <= '\\')
290
- goto yy27;
291
- } else {
292
- if (yych <= 0xDF)
293
- goto yy36;
294
- if (yych <= 0xE0)
295
- goto yy38;
296
- goto yy39;
297
- }
298
- } else {
299
- if (yych <= 0xF0) {
300
- if (yych <= 0xED)
301
- goto yy40;
302
- if (yych <= 0xEF)
303
- goto yy39;
304
- goto yy41;
305
- } else {
306
- if (yych <= 0xF3)
307
- goto yy42;
308
- if (yych <= 0xF4)
309
- goto yy43;
310
- }
311
- }
312
- yy24 : { return (bufsize_t)(p - start); }
313
- yy25:
314
- ++p;
315
- yy26 : { return 0; }
316
- yy27:
317
- yyaccept = 0;
318
- yych = *(marker = ++p);
319
- if (yybm[0 + yych] & 128) {
320
- goto yy27;
321
- }
322
- if (yych <= 0xDF) {
323
- if (yych <= '\f') {
324
- if (yych == '\n')
325
- goto yy24;
326
- goto yy22;
327
- } else {
328
- if (yych <= '\r')
329
- goto yy24;
330
- if (yych <= 0x7F)
331
- goto yy22;
332
- if (yych <= 0xC1)
333
- goto yy24;
334
- goto yy36;
335
- }
336
- } else {
337
- if (yych <= 0xEF) {
338
- if (yych <= 0xE0)
339
- goto yy38;
340
- if (yych == 0xED)
341
- goto yy40;
342
- goto yy39;
343
- } else {
344
- if (yych <= 0xF0)
345
- goto yy41;
346
- if (yych <= 0xF3)
347
- goto yy42;
348
- if (yych <= 0xF4)
349
- goto yy43;
350
- goto yy24;
351
- }
352
- }
353
- yy29:
354
- yych = *++p;
355
- if (yych <= 0x7F)
356
- goto yy26;
357
- if (yych <= 0xBF)
358
- goto yy22;
359
- goto yy26;
360
- yy30:
361
- yyaccept = 1;
362
- yych = *(marker = ++p);
363
- if (yych <= 0x9F)
364
- goto yy26;
365
- if (yych <= 0xBF)
366
- goto yy36;
367
- goto yy26;
368
- yy31:
369
- yyaccept = 1;
370
- yych = *(marker = ++p);
371
- if (yych <= 0x7F)
372
- goto yy26;
373
- if (yych <= 0xBF)
374
- goto yy36;
375
- goto yy26;
376
- yy32:
377
- yyaccept = 1;
378
- yych = *(marker = ++p);
379
- if (yych <= 0x7F)
380
- goto yy26;
381
- if (yych <= 0x9F)
382
- goto yy36;
383
- goto yy26;
384
- yy33:
385
- yyaccept = 1;
386
- yych = *(marker = ++p);
387
- if (yych <= 0x8F)
388
- goto yy26;
389
- if (yych <= 0xBF)
390
- goto yy39;
391
- goto yy26;
392
- yy34:
393
- yyaccept = 1;
394
- yych = *(marker = ++p);
395
- if (yych <= 0x7F)
396
- goto yy26;
397
- if (yych <= 0xBF)
398
- goto yy39;
399
- goto yy26;
400
- yy35:
401
- yyaccept = 1;
402
- yych = *(marker = ++p);
403
- if (yych <= 0x7F)
404
- goto yy26;
405
- if (yych <= 0x8F)
406
- goto yy39;
407
- goto yy26;
408
- yy36:
409
- yych = *++p;
410
- if (yych <= 0x7F)
411
- goto yy37;
412
- if (yych <= 0xBF)
413
- goto yy22;
414
- yy37:
415
- p = marker;
416
- if (yyaccept == 0) {
417
- goto yy24;
418
- } else {
419
- goto yy26;
420
- }
421
- yy38:
422
- yych = *++p;
423
- if (yych <= 0x9F)
424
- goto yy37;
425
- if (yych <= 0xBF)
426
- goto yy36;
427
- goto yy37;
428
- yy39:
429
- yych = *++p;
430
- if (yych <= 0x7F)
431
- goto yy37;
432
- if (yych <= 0xBF)
433
- goto yy36;
434
- goto yy37;
435
- yy40:
436
- yych = *++p;
437
- if (yych <= 0x7F)
438
- goto yy37;
439
- if (yych <= 0x9F)
440
- goto yy36;
441
- goto yy37;
442
- yy41:
443
- yych = *++p;
444
- if (yych <= 0x8F)
445
- goto yy37;
446
- if (yych <= 0xBF)
447
- goto yy39;
448
- goto yy37;
449
- yy42:
450
- yych = *++p;
451
- if (yych <= 0x7F)
452
- goto yy37;
453
- if (yych <= 0xBF)
454
- goto yy39;
455
- goto yy37;
456
- yy43:
457
- yych = *++p;
458
- if (yych <= 0x7F)
459
- goto yy37;
460
- if (yych <= 0x8F)
461
- goto yy39;
462
- goto yy37;
463
- }
464
- }
465
-
466
- bufsize_t _scan_table_cell_end(const unsigned char *p) {
467
- const unsigned char *start = p;
468
-
469
- {
470
- unsigned char yych;
471
- static const unsigned char yybm[] = {
472
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 128, 128, 0, 0, 0, 0, 0, 0, 0,
473
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 0, 0, 0, 0,
474
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
475
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
476
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
477
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
478
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
479
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
480
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
481
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
482
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
483
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
484
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
485
- };
486
- yych = *p;
487
- if (yych == '|')
488
- goto yy48;
489
- ++p;
490
- { return 0; }
491
- yy48:
492
- yych = *++p;
493
- if (yybm[0 + yych] & 128) {
494
- goto yy48;
495
- }
496
- { return (bufsize_t)(p - start); }
497
- }
498
- }
499
-
500
- bufsize_t _scan_table_row_end(const unsigned char *p) {
501
- const unsigned char *marker = NULL;
502
- const unsigned char *start = p;
503
-
504
- {
505
- unsigned char yych;
506
- static const unsigned char yybm[] = {
507
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 128, 128, 0, 0, 0, 0, 0, 0, 0,
508
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 0, 0, 0, 0,
509
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
510
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
511
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
512
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
513
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
514
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
515
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
516
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
517
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
518
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
519
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
520
- };
521
- yych = *p;
522
- if (yych <= '\f') {
523
- if (yych <= 0x08)
524
- goto yy53;
525
- if (yych == '\n')
526
- goto yy56;
527
- goto yy55;
528
- } else {
529
- if (yych <= '\r')
530
- goto yy58;
531
- if (yych == ' ')
532
- goto yy55;
533
- }
534
- yy53:
535
- ++p;
536
- yy54 : { return 0; }
537
- yy55:
538
- yych = *(marker = ++p);
539
- if (yych <= 0x08)
540
- goto yy54;
541
- if (yych <= '\r')
542
- goto yy60;
543
- if (yych == ' ')
544
- goto yy60;
545
- goto yy54;
546
- yy56:
547
- ++p;
548
- { return (bufsize_t)(p - start); }
549
- yy58:
550
- yych = *++p;
551
- if (yych == '\n')
552
- goto yy56;
553
- goto yy54;
554
- yy59:
555
- yych = *++p;
556
- yy60:
557
- if (yybm[0 + yych] & 128) {
558
- goto yy59;
559
- }
560
- if (yych <= 0x08)
561
- goto yy61;
562
- if (yych <= '\n')
563
- goto yy56;
564
- if (yych <= '\r')
565
- goto yy62;
566
- yy61:
567
- p = marker;
568
- goto yy54;
569
- yy62:
570
- yych = *++p;
571
- if (yych == '\n')
572
- goto yy56;
573
- goto yy61;
574
- }
575
- }
576
-
577
- bufsize_t _scan_tasklist(const unsigned char *p) {
578
- const unsigned char *marker = NULL;
579
- const unsigned char *start = p;
580
-
581
- {
582
- unsigned char yych;
583
- static const unsigned char yybm[] = {
584
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 64, 64, 0, 0, 0,
585
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
586
- 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
587
- 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 0, 0, 0, 0, 0, 0,
588
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
589
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
590
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
591
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
592
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
593
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
594
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
595
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
596
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
597
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
598
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
599
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
600
- };
601
- yych = *p;
602
- if (yych <= ' ') {
603
- if (yych <= '\n') {
604
- if (yych == '\t')
605
- goto yy67;
606
- } else {
607
- if (yych <= '\f')
608
- goto yy67;
609
- if (yych >= ' ')
610
- goto yy67;
611
- }
612
- } else {
613
- if (yych <= ',') {
614
- if (yych <= ')')
615
- goto yy65;
616
- if (yych <= '+')
617
- goto yy68;
618
- } else {
619
- if (yych <= '-')
620
- goto yy68;
621
- if (yych <= '/')
622
- goto yy65;
623
- if (yych <= '9')
624
- goto yy69;
625
- }
626
- }
627
- yy65:
628
- ++p;
629
- yy66 : { return 0; }
630
- yy67:
631
- yych = *(marker = ++p);
632
- if (yybm[0 + yych] & 64) {
633
- goto yy70;
634
- }
635
- if (yych <= ',') {
636
- if (yych <= ')')
637
- goto yy66;
638
- if (yych <= '+')
639
- goto yy73;
640
- goto yy66;
641
- } else {
642
- if (yych <= '-')
643
- goto yy73;
644
- if (yych <= '/')
645
- goto yy66;
646
- if (yych <= '9')
647
- goto yy74;
648
- goto yy66;
649
- }
650
- yy68:
651
- yych = *(marker = ++p);
652
- if (yych <= '\n') {
653
- if (yych == '\t')
654
- goto yy75;
655
- goto yy66;
656
- } else {
657
- if (yych <= '\f')
658
- goto yy75;
659
- if (yych == ' ')
660
- goto yy75;
661
- goto yy66;
662
- }
663
- yy69:
664
- yych = *(marker = ++p);
665
- if (yych <= 0x1F) {
666
- if (yych <= '\t') {
667
- if (yych <= 0x08)
668
- goto yy78;
669
- goto yy73;
670
- } else {
671
- if (yych <= '\n')
672
- goto yy66;
673
- if (yych <= '\f')
674
- goto yy73;
675
- goto yy78;
676
- }
677
- } else {
678
- if (yych <= 0x7F) {
679
- if (yych <= ' ')
680
- goto yy73;
681
- goto yy78;
682
- } else {
683
- if (yych <= 0xC1)
684
- goto yy66;
685
- if (yych <= 0xF4)
686
- goto yy78;
687
- goto yy66;
688
- }
689
- }
690
- yy70:
691
- yych = *++p;
692
- if (yybm[0 + yych] & 64) {
693
- goto yy70;
694
- }
695
- if (yych <= ',') {
696
- if (yych <= ')')
697
- goto yy72;
698
- if (yych <= '+')
699
- goto yy73;
700
- } else {
701
- if (yych <= '-')
702
- goto yy73;
703
- if (yych <= '/')
704
- goto yy72;
705
- if (yych <= '9')
706
- goto yy74;
707
- }
708
- yy72:
709
- p = marker;
710
- goto yy66;
711
- yy73:
712
- yych = *++p;
713
- if (yych == '[')
714
- goto yy72;
715
- goto yy76;
716
- yy74:
717
- yych = *++p;
718
- if (yych <= '\n') {
719
- if (yych == '\t')
720
- goto yy73;
721
- goto yy78;
722
- } else {
723
- if (yych <= '\f')
724
- goto yy73;
725
- if (yych == ' ')
726
- goto yy73;
727
- goto yy78;
728
- }
729
- yy75:
730
- yych = *++p;
731
- yy76:
732
- if (yych <= '\f') {
733
- if (yych == '\t')
734
- goto yy75;
735
- if (yych <= '\n')
736
- goto yy72;
737
- goto yy75;
738
- } else {
739
- if (yych <= ' ') {
740
- if (yych <= 0x1F)
741
- goto yy72;
742
- goto yy75;
743
- } else {
744
- if (yych == '[')
745
- goto yy86;
746
- goto yy72;
747
- }
748
- }
749
- yy77:
750
- yych = *++p;
751
- yy78:
752
- if (yybm[0 + yych] & 128) {
753
- goto yy77;
754
- }
755
- if (yych <= 0xC1) {
756
- if (yych <= '\f') {
757
- if (yych <= 0x08)
758
- goto yy73;
759
- if (yych == '\n')
760
- goto yy72;
761
- goto yy75;
762
- } else {
763
- if (yych == ' ')
764
- goto yy75;
765
- if (yych <= 0x7F)
766
- goto yy73;
767
- goto yy72;
768
- }
769
- } else {
770
- if (yych <= 0xED) {
771
- if (yych <= 0xDF)
772
- goto yy79;
773
- if (yych <= 0xE0)
774
- goto yy80;
775
- if (yych <= 0xEC)
776
- goto yy81;
777
- goto yy82;
778
- } else {
779
- if (yych <= 0xF0) {
780
- if (yych <= 0xEF)
781
- goto yy81;
782
- goto yy83;
783
- } else {
784
- if (yych <= 0xF3)
785
- goto yy84;
786
- if (yych <= 0xF4)
787
- goto yy85;
788
- goto yy72;
789
- }
790
- }
791
- }
792
- yy79:
793
- yych = *++p;
794
- if (yych <= 0x7F)
795
- goto yy72;
796
- if (yych <= 0xBF)
797
- goto yy73;
798
- goto yy72;
799
- yy80:
800
- yych = *++p;
801
- if (yych <= 0x9F)
802
- goto yy72;
803
- if (yych <= 0xBF)
804
- goto yy79;
805
- goto yy72;
806
- yy81:
807
- yych = *++p;
808
- if (yych <= 0x7F)
809
- goto yy72;
810
- if (yych <= 0xBF)
811
- goto yy79;
812
- goto yy72;
813
- yy82:
814
- yych = *++p;
815
- if (yych <= 0x7F)
816
- goto yy72;
817
- if (yych <= 0x9F)
818
- goto yy79;
819
- goto yy72;
820
- yy83:
821
- yych = *++p;
822
- if (yych <= 0x8F)
823
- goto yy72;
824
- if (yych <= 0xBF)
825
- goto yy81;
826
- goto yy72;
827
- yy84:
828
- yych = *++p;
829
- if (yych <= 0x7F)
830
- goto yy72;
831
- if (yych <= 0xBF)
832
- goto yy81;
833
- goto yy72;
834
- yy85:
835
- yych = *++p;
836
- if (yych <= 0x7F)
837
- goto yy72;
838
- if (yych <= 0x8F)
839
- goto yy81;
840
- goto yy72;
841
- yy86:
842
- yych = *++p;
843
- if (yych <= 'W') {
844
- if (yych != ' ')
845
- goto yy72;
846
- } else {
847
- if (yych <= 'X')
848
- goto yy87;
849
- if (yych != 'x')
850
- goto yy72;
851
- }
852
- yy87:
853
- yych = *++p;
854
- if (yych != ']')
855
- goto yy72;
856
- yych = *++p;
857
- if (yych <= '\n') {
858
- if (yych != '\t')
859
- goto yy72;
860
- } else {
861
- if (yych <= '\f')
862
- goto yy89;
863
- if (yych != ' ')
864
- goto yy72;
865
- }
866
- yy89:
867
- yych = *++p;
868
- if (yych <= '\n') {
869
- if (yych == '\t')
870
- goto yy89;
871
- } else {
872
- if (yych <= '\f')
873
- goto yy89;
874
- if (yych == ' ')
875
- goto yy89;
876
- }
877
- { return (bufsize_t)(p - start); }
878
- }
879
- }