commonmarker 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of commonmarker might be problematic. Click here for more details.

Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +3 -0
  3. data/bin/commonmarker +19 -3
  4. data/ext/commonmarker/cmark/CMakeLists.txt +1 -0
  5. data/ext/commonmarker/cmark/COPYING +2 -24
  6. data/ext/commonmarker/cmark/Makefile +25 -5
  7. data/ext/commonmarker/cmark/README.md +1 -1
  8. data/ext/commonmarker/cmark/api_test/CMakeLists.txt +1 -1
  9. data/ext/commonmarker/cmark/api_test/main.c +25 -27
  10. data/ext/commonmarker/cmark/build/CMakeCache.txt +12 -9
  11. data/ext/commonmarker/cmark/build/CMakeFiles/{3.6.0 → 3.6.1}/CMakeCCompiler.cmake +0 -0
  12. data/ext/commonmarker/cmark/build/CMakeFiles/{3.6.0 → 3.6.1}/CMakeCXXCompiler.cmake +0 -0
  13. data/ext/commonmarker/cmark/build/CMakeFiles/{3.6.0 → 3.6.1}/CMakeDetermineCompilerABI_C.bin +0 -0
  14. data/ext/commonmarker/cmark/build/CMakeFiles/{3.6.0 → 3.6.1}/CMakeDetermineCompilerABI_CXX.bin +0 -0
  15. data/ext/commonmarker/cmark/build/CMakeFiles/{3.6.0 → 3.6.1}/CMakeSystem.cmake +4 -4
  16. data/ext/commonmarker/cmark/build/CMakeFiles/{3.6.0 → 3.6.1}/CompilerIdC/CMakeCCompilerId.c +0 -0
  17. data/ext/commonmarker/cmark/build/CMakeFiles/{3.6.0 → 3.6.1}/CompilerIdC/a.out +0 -0
  18. data/ext/commonmarker/cmark/build/CMakeFiles/{3.6.0 → 3.6.1}/CompilerIdCXX/CMakeCXXCompilerId.cpp +0 -0
  19. data/ext/commonmarker/cmark/build/CMakeFiles/{3.6.0 → 3.6.1}/CompilerIdCXX/a.out +0 -0
  20. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeError.log +6 -6
  21. data/ext/commonmarker/cmark/build/CMakeFiles/CMakeOutput.log +148 -148
  22. data/ext/commonmarker/cmark/build/CMakeFiles/Makefile.cmake +41 -109
  23. data/ext/commonmarker/cmark/build/CMakeFiles/Makefile2 +66 -10
  24. data/ext/commonmarker/cmark/build/CMakeFiles/TargetDirectories.txt +8 -0
  25. data/ext/commonmarker/cmark/build/CMakeFiles/progress.marks +1 -1
  26. data/ext/commonmarker/cmark/build/CTestTestfile.cmake +1 -0
  27. data/ext/commonmarker/cmark/build/Makefile +23 -9
  28. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/api_test.dir/build.make +2 -2
  29. data/ext/commonmarker/cmark/build/api_test/CMakeFiles/progress.marks +1 -1
  30. data/ext/commonmarker/cmark/build/api_test/Makefile +9 -9
  31. data/ext/commonmarker/cmark/build/cmake_install.cmake +1 -0
  32. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  33. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/C.includecache +190 -0
  34. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/DependInfo.cmake +29 -0
  35. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/autolink.c.o +0 -0
  36. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/build.make +249 -0
  37. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/cmake_clean.cmake +15 -0
  38. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/cmake_clean_target.cmake +3 -0
  39. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/core-extensions.c.o +0 -0
  40. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/depend.internal +92 -0
  41. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/depend.make +92 -0
  42. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/ext_scanners.c.o +0 -0
  43. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/flags.make +10 -0
  44. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/link.txt +2 -0
  45. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/progress.make +8 -0
  46. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/strikethrough.c.o +0 -0
  47. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/table.c.o +0 -0
  48. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/libcmarkextensions_static.dir/whitelist.c.o +0 -0
  49. data/ext/commonmarker/cmark/build/extensions/CMakeFiles/progress.marks +1 -0
  50. data/ext/commonmarker/cmark/build/extensions/Makefile +390 -0
  51. data/ext/commonmarker/cmark/build/extensions/cmake_install.cmake +29 -0
  52. data/ext/commonmarker/cmark/build/extensions/libcmarkextensions.a +0 -0
  53. data/ext/commonmarker/cmark/build/man/Makefile +9 -9
  54. data/ext/commonmarker/cmark/build/src/CMakeFiles/Export/lib/cmake/cmark.cmake +1 -1
  55. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/DependInfo.cmake +7 -19
  56. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/build.make +6 -517
  57. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/cmake_clean.cmake +0 -19
  58. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/flags.make +1 -1
  59. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/link.txt +1 -1
  60. data/ext/commonmarker/cmark/build/src/CMakeFiles/cmark.dir/progress.make +0 -19
  61. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/DependInfo.cmake +9 -0
  62. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/build.make +112 -4
  63. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/cmake_clean.cmake +4 -0
  64. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/flags.make +1 -1
  65. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/link.txt +1 -1
  66. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark.dir/progress.make +24 -20
  67. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/C.includecache +144 -10
  68. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/DependInfo.cmake +9 -0
  69. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/blocks.c.o +0 -0
  70. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/build.make +112 -4
  71. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmake_clean.cmake +4 -0
  72. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/cmark.c.o +0 -0
  73. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/commonmark.c.o +0 -0
  74. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.internal +74 -0
  75. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/depend.make +74 -0
  76. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/flags.make +1 -1
  77. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/html.c.o +0 -0
  78. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/inlines.c.o +0 -0
  79. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/iterator.c.o +0 -0
  80. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/latex.c.o +0 -0
  81. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/link.txt +1 -1
  82. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/linked_list.c.o +0 -0
  83. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/man.c.o +0 -0
  84. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/node.c.o +0 -0
  85. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/plugin.c.o +0 -0
  86. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/progress.make +24 -20
  87. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/registry.c.o +0 -0
  88. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/scanners.c.o +0 -0
  89. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/syntax_extension.c.o +0 -0
  90. data/ext/commonmarker/cmark/build/src/CMakeFiles/libcmark_static.dir/xml.c.o +0 -0
  91. data/ext/commonmarker/cmark/build/src/CMakeFiles/progress.marks +1 -1
  92. data/ext/commonmarker/cmark/build/src/Makefile +141 -66
  93. data/ext/commonmarker/cmark/build/src/cmake_install.cmake +4 -0
  94. data/ext/commonmarker/cmark/build/src/libcmark.a +0 -0
  95. data/ext/commonmarker/cmark/build/testdir/CTestTestfile.cmake +3 -1
  96. data/ext/commonmarker/cmark/build/testdir/Makefile +9 -9
  97. data/ext/commonmarker/cmark/extensions/CMakeLists.txt +82 -0
  98. data/ext/commonmarker/cmark/extensions/autolink.c +338 -0
  99. data/ext/commonmarker/cmark/extensions/autolink.h +8 -0
  100. data/ext/commonmarker/cmark/extensions/core-extensions.c +16 -0
  101. data/ext/commonmarker/cmark/extensions/core-extensions.h +16 -0
  102. data/ext/commonmarker/cmark/extensions/ext_scanners.c +585 -0
  103. data/ext/commonmarker/cmark/extensions/ext_scanners.h +20 -0
  104. data/ext/commonmarker/cmark/extensions/ext_scanners.re +65 -0
  105. data/ext/commonmarker/cmark/extensions/strikethrough.c +142 -0
  106. data/ext/commonmarker/cmark/extensions/strikethrough.h +9 -0
  107. data/ext/commonmarker/cmark/extensions/table.c +493 -0
  108. data/ext/commonmarker/cmark/extensions/table.h +8 -0
  109. data/ext/commonmarker/cmark/extensions/whitelist.c +59 -0
  110. data/ext/commonmarker/cmark/extensions/whitelist.h +8 -0
  111. data/ext/commonmarker/cmark/man/man3/cmark.3 +98 -34
  112. data/ext/commonmarker/cmark/src/CMakeLists.txt +16 -1
  113. data/ext/commonmarker/cmark/src/blocks.c +219 -40
  114. data/ext/commonmarker/cmark/src/buffer.h +36 -0
  115. data/ext/commonmarker/cmark/src/cmark.c +5 -1
  116. data/ext/commonmarker/cmark/src/cmark.h +91 -34
  117. data/ext/commonmarker/cmark/src/cmark_ctype.h +7 -0
  118. data/ext/commonmarker/cmark/src/cmark_extension_api.h +655 -0
  119. data/ext/commonmarker/cmark/src/commonmark.c +7 -2
  120. data/ext/commonmarker/cmark/src/houdini.h +12 -6
  121. data/ext/commonmarker/cmark/src/houdini_html_e.c +1 -1
  122. data/ext/commonmarker/cmark/src/html.c +102 -54
  123. data/ext/commonmarker/cmark/src/html.h +27 -0
  124. data/ext/commonmarker/cmark/src/inlines.c +261 -53
  125. data/ext/commonmarker/cmark/src/inlines.h +7 -2
  126. data/ext/commonmarker/cmark/src/iterator.c +12 -7
  127. data/ext/commonmarker/cmark/src/latex.c +5 -2
  128. data/ext/commonmarker/cmark/src/linked_list.c +37 -0
  129. data/ext/commonmarker/cmark/src/main.c +91 -27
  130. data/ext/commonmarker/cmark/src/man.c +18 -2
  131. data/ext/commonmarker/cmark/src/node.c +157 -58
  132. data/ext/commonmarker/cmark/src/node.h +23 -0
  133. data/ext/commonmarker/cmark/src/parser.h +19 -2
  134. data/ext/commonmarker/cmark/src/plugin.c +33 -0
  135. data/ext/commonmarker/cmark/src/plugin.h +34 -0
  136. data/ext/commonmarker/cmark/src/registry.c +60 -0
  137. data/ext/commonmarker/cmark/src/registry.h +24 -0
  138. data/ext/commonmarker/cmark/src/render.h +9 -0
  139. data/ext/commonmarker/cmark/src/scanners.c +265 -391
  140. data/ext/commonmarker/cmark/src/scanners.h +5 -0
  141. data/ext/commonmarker/cmark/src/scanners.re +2 -2
  142. data/ext/commonmarker/cmark/src/syntax_extension.c +110 -0
  143. data/ext/commonmarker/cmark/src/syntax_extension.h +27 -0
  144. data/ext/commonmarker/cmark/suppressions +28 -0
  145. data/ext/commonmarker/cmark/test/CMakeLists.txt +12 -1
  146. data/ext/commonmarker/cmark/test/extensions.txt +173 -0
  147. data/ext/commonmarker/cmark/test/regression.txt +24 -0
  148. data/ext/commonmarker/cmark/test/spec.txt +27 -26
  149. data/ext/commonmarker/cmark/toolchain-mingw32.cmake +1 -1
  150. data/ext/commonmarker/commonmarker.c +132 -15
  151. data/ext/commonmarker/commonmarker.h +4 -0
  152. data/ext/commonmarker/extconf.rb +12 -5
  153. data/lib/commonmarker.rb +8 -6
  154. data/lib/commonmarker/node.rb +13 -2
  155. data/lib/commonmarker/renderer.rb +1 -1
  156. data/lib/commonmarker/version.rb +1 -1
  157. data/test/test_commonmark.rb +34 -0
  158. data/test/test_encoding.rb +2 -1
  159. data/test/test_extensions.rb +50 -0
  160. data/test/test_helper.rb +2 -1
  161. metadata +65 -11
@@ -0,0 +1,8 @@
1
+ #ifndef AUTOLINK_H
2
+ #define AUTOLINK_H
3
+
4
+ #include "core-extensions.h"
5
+
6
+ cmark_syntax_extension *create_autolink_extension(void);
7
+
8
+ #endif
@@ -0,0 +1,16 @@
1
+ #include <stdio.h>
2
+ #include <string.h>
3
+
4
+ #include "core-extensions.h"
5
+ #include "table.h"
6
+ #include "strikethrough.h"
7
+ #include "whitelist.h"
8
+ #include "autolink.h"
9
+
10
+ int core_extensions_registration(cmark_plugin *plugin) {
11
+ cmark_plugin_register_syntax_extension(plugin, create_table_extension());
12
+ cmark_plugin_register_syntax_extension(plugin, create_strikethrough_extension());
13
+ cmark_plugin_register_syntax_extension(plugin, create_whitelist_extension());
14
+ cmark_plugin_register_syntax_extension(plugin, create_autolink_extension());
15
+ return 1;
16
+ }
@@ -0,0 +1,16 @@
1
+ #ifndef CORE_EXTENSIONS_H
2
+ #define CORE_EXTENSIONS_H
3
+
4
+ #ifdef __cplusplus
5
+ extern "C" {
6
+ #endif
7
+
8
+ #include <cmark_extension_api.h>
9
+
10
+ int core_extensions_registration(cmark_plugin *plugin);
11
+
12
+ #ifdef __cplusplus
13
+ }
14
+ #endif
15
+
16
+ #endif
@@ -0,0 +1,585 @@
1
+ /* Generated by re2c 0.16 */
2
+ #include <stdlib.h>
3
+ #include "ext_scanners.h"
4
+
5
+ bufsize_t _ext_scan_at(bufsize_t (*scanner)(const unsigned char *),
6
+ unsigned char *ptr, int len, bufsize_t offset) {
7
+ bufsize_t res;
8
+
9
+ if (ptr == NULL || offset > len) {
10
+ return 0;
11
+ } else {
12
+ unsigned char lim = ptr[len];
13
+
14
+ ptr[len] = '\0';
15
+ res = scanner(ptr + offset);
16
+ ptr[len] = lim;
17
+ }
18
+
19
+ return res;
20
+ }
21
+
22
+ bufsize_t _scan_table_cell(const unsigned char *p) {
23
+ const unsigned char *marker = NULL;
24
+ const unsigned char *start = p;
25
+
26
+ {
27
+ unsigned char yych;
28
+ unsigned int yyaccept = 0;
29
+ static const unsigned char yybm[] = {
30
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 0, 64, 64, 0, 64, 64, 64, 64,
31
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
32
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
33
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
34
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
35
+ 64, 64, 128, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
36
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 0, 64,
37
+ 64, 64, 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,
39
+ 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,
41
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
42
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
43
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
44
+ 0, 0, 0, 0,
45
+ };
46
+ yych = *(marker = p);
47
+ if (yych <= 0xDF) {
48
+ if (yych <= '{') {
49
+ if (yych != '\n')
50
+ goto yy3;
51
+ } else {
52
+ if (yych <= '|')
53
+ goto yy4;
54
+ if (yych <= 0x7F)
55
+ goto yy3;
56
+ if (yych >= 0xC2)
57
+ goto yy5;
58
+ }
59
+ } else {
60
+ if (yych <= 0xEF) {
61
+ if (yych <= 0xE0)
62
+ goto yy7;
63
+ if (yych == 0xED)
64
+ goto yy9;
65
+ goto yy8;
66
+ } else {
67
+ if (yych <= 0xF0)
68
+ goto yy10;
69
+ if (yych <= 0xF3)
70
+ goto yy11;
71
+ if (yych <= 0xF4)
72
+ goto yy12;
73
+ }
74
+ }
75
+ yy2 : { return 0; }
76
+ yy3:
77
+ yych = *++p;
78
+ goto yy2;
79
+ yy4:
80
+ yyaccept = 0;
81
+ yych = *(marker = ++p);
82
+ if (yych <= '{') {
83
+ if (yych <= '\n') {
84
+ if (yych <= '\t')
85
+ goto yy14;
86
+ goto yy2;
87
+ } else {
88
+ if (yych == '\r')
89
+ goto yy2;
90
+ goto yy14;
91
+ }
92
+ } else {
93
+ if (yych <= 0x7F) {
94
+ if (yych <= '|')
95
+ goto yy2;
96
+ goto yy14;
97
+ } else {
98
+ if (yych <= 0xC1)
99
+ goto yy2;
100
+ if (yych <= 0xF4)
101
+ goto yy14;
102
+ goto yy2;
103
+ }
104
+ }
105
+ yy5:
106
+ yych = *++p;
107
+ if (yych <= 0x7F)
108
+ goto yy6;
109
+ if (yych <= 0xBF)
110
+ goto yy3;
111
+ yy6:
112
+ p = marker;
113
+ if (yyaccept == 0) {
114
+ goto yy2;
115
+ } else {
116
+ goto yy15;
117
+ }
118
+ yy7:
119
+ yych = *++p;
120
+ if (yych <= 0x9F)
121
+ goto yy6;
122
+ if (yych <= 0xBF)
123
+ goto yy5;
124
+ goto yy6;
125
+ yy8:
126
+ yych = *++p;
127
+ if (yych <= 0x7F)
128
+ goto yy6;
129
+ if (yych <= 0xBF)
130
+ goto yy5;
131
+ goto yy6;
132
+ yy9:
133
+ yych = *++p;
134
+ if (yych <= 0x7F)
135
+ goto yy6;
136
+ if (yych <= 0x9F)
137
+ goto yy5;
138
+ goto yy6;
139
+ yy10:
140
+ yych = *++p;
141
+ if (yych <= 0x8F)
142
+ goto yy6;
143
+ if (yych <= 0xBF)
144
+ goto yy8;
145
+ goto yy6;
146
+ yy11:
147
+ yych = *++p;
148
+ if (yych <= 0x7F)
149
+ goto yy6;
150
+ if (yych <= 0xBF)
151
+ goto yy8;
152
+ goto yy6;
153
+ yy12:
154
+ yych = *++p;
155
+ if (yych <= 0x7F)
156
+ goto yy6;
157
+ if (yych <= 0x8F)
158
+ goto yy8;
159
+ goto yy6;
160
+ yy13:
161
+ yyaccept = 1;
162
+ marker = ++p;
163
+ yych = *p;
164
+ yy14:
165
+ if (yybm[0 + yych] & 64) {
166
+ goto yy13;
167
+ }
168
+ if (yych <= 0xEC) {
169
+ if (yych <= 0xC1) {
170
+ if (yych <= '\r')
171
+ goto yy15;
172
+ if (yych <= '\\')
173
+ goto yy16;
174
+ } else {
175
+ if (yych <= 0xDF)
176
+ goto yy18;
177
+ if (yych <= 0xE0)
178
+ goto yy19;
179
+ goto yy20;
180
+ }
181
+ } else {
182
+ if (yych <= 0xF0) {
183
+ if (yych <= 0xED)
184
+ goto yy21;
185
+ if (yych <= 0xEF)
186
+ goto yy20;
187
+ goto yy22;
188
+ } else {
189
+ if (yych <= 0xF3)
190
+ goto yy23;
191
+ if (yych <= 0xF4)
192
+ goto yy24;
193
+ }
194
+ }
195
+ yy15 : { return (bufsize_t)(p - start); }
196
+ yy16:
197
+ yyaccept = 1;
198
+ marker = ++p;
199
+ yych = *p;
200
+ if (yybm[0 + yych] & 128) {
201
+ goto yy16;
202
+ }
203
+ if (yych <= 0xDF) {
204
+ if (yych <= '\f') {
205
+ if (yych == '\n')
206
+ goto yy15;
207
+ goto yy13;
208
+ } else {
209
+ if (yych <= '\r')
210
+ goto yy15;
211
+ if (yych <= 0x7F)
212
+ goto yy13;
213
+ if (yych <= 0xC1)
214
+ goto yy15;
215
+ }
216
+ } else {
217
+ if (yych <= 0xEF) {
218
+ if (yych <= 0xE0)
219
+ goto yy19;
220
+ if (yych == 0xED)
221
+ goto yy21;
222
+ goto yy20;
223
+ } else {
224
+ if (yych <= 0xF0)
225
+ goto yy22;
226
+ if (yych <= 0xF3)
227
+ goto yy23;
228
+ if (yych <= 0xF4)
229
+ goto yy24;
230
+ goto yy15;
231
+ }
232
+ }
233
+ yy18:
234
+ ++p;
235
+ yych = *p;
236
+ if (yych <= 0x7F)
237
+ goto yy6;
238
+ if (yych <= 0xBF)
239
+ goto yy13;
240
+ goto yy6;
241
+ yy19:
242
+ ++p;
243
+ yych = *p;
244
+ if (yych <= 0x9F)
245
+ goto yy6;
246
+ if (yych <= 0xBF)
247
+ goto yy18;
248
+ goto yy6;
249
+ yy20:
250
+ ++p;
251
+ yych = *p;
252
+ if (yych <= 0x7F)
253
+ goto yy6;
254
+ if (yych <= 0xBF)
255
+ goto yy18;
256
+ goto yy6;
257
+ yy21:
258
+ ++p;
259
+ yych = *p;
260
+ if (yych <= 0x7F)
261
+ goto yy6;
262
+ if (yych <= 0x9F)
263
+ goto yy18;
264
+ goto yy6;
265
+ yy22:
266
+ ++p;
267
+ yych = *p;
268
+ if (yych <= 0x8F)
269
+ goto yy6;
270
+ if (yych <= 0xBF)
271
+ goto yy20;
272
+ goto yy6;
273
+ yy23:
274
+ ++p;
275
+ yych = *p;
276
+ if (yych <= 0x7F)
277
+ goto yy6;
278
+ if (yych <= 0xBF)
279
+ goto yy20;
280
+ goto yy6;
281
+ yy24:
282
+ ++p;
283
+ yych = *p;
284
+ if (yych <= 0x7F)
285
+ goto yy6;
286
+ if (yych <= 0x8F)
287
+ goto yy20;
288
+ goto yy6;
289
+ }
290
+ }
291
+
292
+ bufsize_t _scan_table_row_end(const unsigned char *p) {
293
+ const unsigned char *marker = NULL;
294
+ const unsigned char *start = p;
295
+
296
+ {
297
+ unsigned char yych;
298
+ yych = *(marker = p);
299
+ if (yych <= 0xDF) {
300
+ if (yych <= '{') {
301
+ if (yych != '\n')
302
+ goto yy28;
303
+ } else {
304
+ if (yych <= '|')
305
+ goto yy29;
306
+ if (yych <= 0x7F)
307
+ goto yy28;
308
+ if (yych >= 0xC2)
309
+ goto yy30;
310
+ }
311
+ } else {
312
+ if (yych <= 0xEF) {
313
+ if (yych <= 0xE0)
314
+ goto yy32;
315
+ if (yych == 0xED)
316
+ goto yy34;
317
+ goto yy33;
318
+ } else {
319
+ if (yych <= 0xF0)
320
+ goto yy35;
321
+ if (yych <= 0xF3)
322
+ goto yy36;
323
+ if (yych <= 0xF4)
324
+ goto yy37;
325
+ }
326
+ }
327
+ yy27 : { return 0; }
328
+ yy28:
329
+ yych = *++p;
330
+ goto yy27;
331
+ yy29:
332
+ yych = *(marker = ++p);
333
+ if (yych == '\n')
334
+ goto yy38;
335
+ if (yych == '\r')
336
+ goto yy40;
337
+ goto yy27;
338
+ yy30:
339
+ yych = *++p;
340
+ if (yych <= 0x7F)
341
+ goto yy31;
342
+ if (yych <= 0xBF)
343
+ goto yy28;
344
+ yy31:
345
+ p = marker;
346
+ goto yy27;
347
+ yy32:
348
+ yych = *++p;
349
+ if (yych <= 0x9F)
350
+ goto yy31;
351
+ if (yych <= 0xBF)
352
+ goto yy30;
353
+ goto yy31;
354
+ yy33:
355
+ yych = *++p;
356
+ if (yych <= 0x7F)
357
+ goto yy31;
358
+ if (yych <= 0xBF)
359
+ goto yy30;
360
+ goto yy31;
361
+ yy34:
362
+ yych = *++p;
363
+ if (yych <= 0x7F)
364
+ goto yy31;
365
+ if (yych <= 0x9F)
366
+ goto yy30;
367
+ goto yy31;
368
+ yy35:
369
+ yych = *++p;
370
+ if (yych <= 0x8F)
371
+ goto yy31;
372
+ if (yych <= 0xBF)
373
+ goto yy33;
374
+ goto yy31;
375
+ yy36:
376
+ yych = *++p;
377
+ if (yych <= 0x7F)
378
+ goto yy31;
379
+ if (yych <= 0xBF)
380
+ goto yy33;
381
+ goto yy31;
382
+ yy37:
383
+ yych = *++p;
384
+ if (yych <= 0x7F)
385
+ goto yy31;
386
+ if (yych <= 0x8F)
387
+ goto yy33;
388
+ goto yy31;
389
+ yy38:
390
+ ++p;
391
+ { return (bufsize_t)(p - start); }
392
+ yy40:
393
+ ++p;
394
+ if ((yych = *p) == '\n')
395
+ goto yy38;
396
+ goto yy31;
397
+ }
398
+ }
399
+
400
+ bufsize_t _scan_table_start(const unsigned char *p) {
401
+ const unsigned char *marker = NULL;
402
+ const unsigned char *start = p;
403
+
404
+ {
405
+ unsigned char yych;
406
+ static const unsigned char yybm[] = {
407
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 64, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0,
408
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
409
+ 0, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
410
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
411
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
412
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
413
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
414
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
415
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
416
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
417
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
418
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
419
+ };
420
+ yych = *(marker = p);
421
+ if (yych <= 0xDF) {
422
+ if (yych <= '{') {
423
+ if (yych != '\n')
424
+ goto yy44;
425
+ } else {
426
+ if (yych <= '|')
427
+ goto yy45;
428
+ if (yych <= 0x7F)
429
+ goto yy44;
430
+ if (yych >= 0xC2)
431
+ goto yy46;
432
+ }
433
+ } else {
434
+ if (yych <= 0xEF) {
435
+ if (yych <= 0xE0)
436
+ goto yy48;
437
+ if (yych == 0xED)
438
+ goto yy50;
439
+ goto yy49;
440
+ } else {
441
+ if (yych <= 0xF0)
442
+ goto yy51;
443
+ if (yych <= 0xF3)
444
+ goto yy52;
445
+ if (yych <= 0xF4)
446
+ goto yy53;
447
+ }
448
+ }
449
+ yy43 : { return 0; }
450
+ yy44:
451
+ yych = *++p;
452
+ goto yy43;
453
+ yy45:
454
+ yych = *(marker = ++p);
455
+ if (yybm[0 + yych] & 64) {
456
+ goto yy54;
457
+ }
458
+ if (yych == '-')
459
+ goto yy56;
460
+ goto yy43;
461
+ yy46:
462
+ yych = *++p;
463
+ if (yych <= 0x7F)
464
+ goto yy47;
465
+ if (yych <= 0xBF)
466
+ goto yy44;
467
+ yy47:
468
+ p = marker;
469
+ goto yy43;
470
+ yy48:
471
+ yych = *++p;
472
+ if (yych <= 0x9F)
473
+ goto yy47;
474
+ if (yych <= 0xBF)
475
+ goto yy46;
476
+ goto yy47;
477
+ yy49:
478
+ yych = *++p;
479
+ if (yych <= 0x7F)
480
+ goto yy47;
481
+ if (yych <= 0xBF)
482
+ goto yy46;
483
+ goto yy47;
484
+ yy50:
485
+ yych = *++p;
486
+ if (yych <= 0x7F)
487
+ goto yy47;
488
+ if (yych <= 0x9F)
489
+ goto yy46;
490
+ goto yy47;
491
+ yy51:
492
+ yych = *++p;
493
+ if (yych <= 0x8F)
494
+ goto yy47;
495
+ if (yych <= 0xBF)
496
+ goto yy49;
497
+ goto yy47;
498
+ yy52:
499
+ yych = *++p;
500
+ if (yych <= 0x7F)
501
+ goto yy47;
502
+ if (yych <= 0xBF)
503
+ goto yy49;
504
+ goto yy47;
505
+ yy53:
506
+ yych = *++p;
507
+ if (yych <= 0x7F)
508
+ goto yy47;
509
+ if (yych <= 0x8F)
510
+ goto yy49;
511
+ goto yy47;
512
+ yy54:
513
+ ++p;
514
+ yych = *p;
515
+ if (yybm[0 + yych] & 64) {
516
+ goto yy54;
517
+ }
518
+ if (yych != '-')
519
+ goto yy47;
520
+ yy56:
521
+ ++p;
522
+ yych = *p;
523
+ if (yybm[0 + yych] & 128) {
524
+ goto yy56;
525
+ }
526
+ if (yych <= '\f') {
527
+ if (yych == '\t')
528
+ goto yy58;
529
+ if (yych <= '\n')
530
+ goto yy47;
531
+ } else {
532
+ if (yych <= ' ') {
533
+ if (yych <= 0x1F)
534
+ goto yy47;
535
+ } else {
536
+ if (yych == '|')
537
+ goto yy60;
538
+ goto yy47;
539
+ }
540
+ }
541
+ yy58:
542
+ ++p;
543
+ yych = *p;
544
+ if (yych <= '\f') {
545
+ if (yych == '\t')
546
+ goto yy58;
547
+ if (yych <= '\n')
548
+ goto yy47;
549
+ goto yy58;
550
+ } else {
551
+ if (yych <= ' ') {
552
+ if (yych <= 0x1F)
553
+ goto yy47;
554
+ goto yy58;
555
+ } else {
556
+ if (yych != '|')
557
+ goto yy47;
558
+ }
559
+ }
560
+ yy60:
561
+ ++p;
562
+ yych = *p;
563
+ if (yybm[0 + yych] & 64) {
564
+ goto yy54;
565
+ }
566
+ if (yych <= '\r') {
567
+ if (yych <= 0x08)
568
+ goto yy47;
569
+ if (yych >= '\v')
570
+ goto yy63;
571
+ } else {
572
+ if (yych == '-')
573
+ goto yy56;
574
+ goto yy47;
575
+ }
576
+ yy61:
577
+ ++p;
578
+ { return (bufsize_t)(p - start); }
579
+ yy63:
580
+ ++p;
581
+ if ((yych = *p) == '\n')
582
+ goto yy61;
583
+ goto yy47;
584
+ }
585
+ }