@gmb/bitmark-parser-generator 1.5.11 → 1.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/cjs/ast/Ast.js +13 -13
- package/dist/cjs/ast/Ast.js.map +1 -1
- package/dist/cjs/ast/Builder.js +1 -1
- package/dist/cjs/ast/Builder.js.map +1 -1
- package/dist/cjs/generated/build-info.js +1 -1
- package/dist/cjs/generated/parser/text/text-peggy-parser.js +1126 -651
- package/dist/cjs/generated/parser/text/text-peggy-parser.js.map +1 -1
- package/dist/cjs/generator/AstWalkerGenerator.js +83 -0
- package/dist/cjs/generator/AstWalkerGenerator.js.map +1 -0
- package/dist/cjs/generator/bitmark/BitmarkGenerator.js +144 -180
- package/dist/cjs/generator/bitmark/BitmarkGenerator.js.map +1 -1
- package/dist/cjs/generator/json/JsonGenerator.js +84 -114
- package/dist/cjs/generator/json/JsonGenerator.js.map +1 -1
- package/dist/cjs/generator/text/TextGenerator.js +91 -124
- package/dist/cjs/generator/text/TextGenerator.js.map +1 -1
- package/dist/cjs/model/enum/TextMarkType.js +13 -2
- package/dist/cjs/model/enum/TextMarkType.js.map +1 -1
- package/dist/cjs/model/enum/TextNodeType.js +1 -0
- package/dist/cjs/model/enum/TextNodeType.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +20 -10
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/cjs/parser/json/JsonParser.js +1 -1
- package/dist/cjs/parser/json/JsonParser.js.map +1 -1
- package/dist/esm/ast/Ast.js +13 -13
- package/dist/esm/ast/Ast.js.map +1 -1
- package/dist/esm/ast/Builder.js +1 -1
- package/dist/esm/ast/Builder.js.map +1 -1
- package/dist/esm/generated/build-info.js +1 -1
- package/dist/esm/generated/parser/text/text-peggy-parser.js +1126 -651
- package/dist/esm/generated/parser/text/text-peggy-parser.js.map +1 -1
- package/dist/esm/generator/AstWalkerGenerator.js +80 -0
- package/dist/esm/generator/AstWalkerGenerator.js.map +1 -0
- package/dist/esm/generator/bitmark/BitmarkGenerator.js +144 -180
- package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +1 -1
- package/dist/esm/generator/json/JsonGenerator.js +84 -114
- package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
- package/dist/esm/generator/text/TextGenerator.js +91 -124
- package/dist/esm/generator/text/TextGenerator.js.map +1 -1
- package/dist/esm/model/enum/TextMarkType.js +13 -2
- package/dist/esm/model/enum/TextMarkType.js.map +1 -1
- package/dist/esm/model/enum/TextNodeType.js +1 -0
- package/dist/esm/model/enum/TextNodeType.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +20 -10
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/esm/parser/json/JsonParser.js +1 -1
- package/dist/esm/parser/json/JsonParser.js.map +1 -1
- package/dist/types/ast/Ast.d.ts +4 -8
- package/dist/types/ast/Ast.d.ts.map +1 -1
- package/dist/types/generated/parser/text/text-peggy-parser.d.ts.map +1 -1
- package/dist/types/generator/AstWalkerGenerator.d.ts +32 -0
- package/dist/types/generator/AstWalkerGenerator.d.ts.map +1 -0
- package/dist/types/generator/Generator.d.ts +2 -2
- package/dist/types/generator/Generator.d.ts.map +1 -1
- package/dist/types/generator/bitmark/BitmarkGenerator.d.ts +121 -127
- package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +1 -1
- package/dist/types/generator/json/JsonGenerator.d.ts +43 -48
- package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
- package/dist/types/generator/text/TextGenerator.d.ts +13 -17
- package/dist/types/generator/text/TextGenerator.d.ts.map +1 -1
- package/dist/types/model/enum/TextMarkType.d.ts +26 -4
- package/dist/types/model/enum/TextMarkType.d.ts.map +1 -1
- package/dist/types/model/enum/TextNodeType.d.ts +2 -0
- package/dist/types/model/enum/TextNodeType.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +1 -1
- package/package.json +13 -13
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
//
|
|
3
3
|
// https://peggyjs.org/
|
|
4
4
|
import { Breakscape } from "../../../breakscaping/Breakscape";
|
|
5
|
-
// export const UNBREAKSCAPE_REGEX = new RegExp(/=\^(\^*)(?==)|\*\^(\^*)(?=\*)|_\^(\^*)(?=_)|`\^(\^*)(?=`)|!\^(\^*)(?=!)|\^(\^*)\]|\[\^(\^*)|•\^(\^*)|#\^(\^*)|\|\^(\^*)|\^(\^*)/, "g")
|
|
6
5
|
function s(_string) {
|
|
7
6
|
return _string !== null && _string !== void 0 ? _string : "";
|
|
8
7
|
}
|
|
@@ -11,46 +10,55 @@ function unbreakscape(_str) {
|
|
|
11
10
|
// function replacer(match, p1, offset, string, groups) {
|
|
12
11
|
// return match.replace("^", "");
|
|
13
12
|
// }
|
|
14
|
-
// let re_ =
|
|
13
|
+
// let re_ = new RegExp( /=\^(\^*)(?==)|\*\^(\^*)(?=\*)|_\^(\^*)(?=_)|`\^(\^*)(?=`)|!\^(\^*)(?=!)|\[\^(\^*)|•\^(\^*)|#\^(\^*)|\|\^(\^*)|\|\^(\^*)/, "g") // RegExp( /([\[*_`!])\^(?!\^)/, "g")
|
|
15
14
|
// u_ = u_.replace(re_, replacer)
|
|
16
15
|
u_ = Breakscape.unbreakscape(u_);
|
|
17
16
|
return u_;
|
|
18
17
|
}
|
|
19
|
-
function
|
|
20
|
-
if (typeof
|
|
21
|
-
|
|
18
|
+
function removeTempParsingParent(obj) {
|
|
19
|
+
if (obj && typeof obj === 'object') {
|
|
20
|
+
delete obj._tempParsingParent; // Remove the property if exists
|
|
21
|
+
Object.keys(obj).forEach(key => {
|
|
22
|
+
// Recursively call the function for all sub-objects
|
|
23
|
+
removeTempParsingParent(obj[key]);
|
|
24
|
+
});
|
|
22
25
|
}
|
|
23
|
-
|
|
26
|
+
}
|
|
27
|
+
function bitmarkPlusPlus(_str) {
|
|
24
28
|
// if (parser) {
|
|
25
29
|
// return parser.parse(_str, { startRule: "bitmarkPlusPlus" })
|
|
26
30
|
// } else {
|
|
27
31
|
// // embedded in Get More Brain
|
|
28
32
|
// return parse(_str, { startRule: "bitmarkPlusPlus" })
|
|
29
33
|
// }
|
|
30
|
-
}
|
|
31
|
-
function bitmarkPlusString(_str) {
|
|
32
34
|
if (typeof parser !== 'undefined') {
|
|
33
|
-
return parser.parse(_str, { startRule: "
|
|
35
|
+
return parser.parse(_str, { startRule: "bitmarkPlusPlus" });
|
|
34
36
|
}
|
|
35
|
-
return peg$parse(_str, { startRule: "
|
|
37
|
+
return peg$parse(_str, { startRule: "bitmarkPlusPlus" });
|
|
38
|
+
}
|
|
39
|
+
function bitmarkPlusString(_str) {
|
|
36
40
|
// if (parser) {
|
|
37
41
|
// return parser.parse(_str, { startRule: "bitmarkPlusString" })
|
|
38
42
|
// } else {
|
|
39
43
|
// // embedded in Get More Brain
|
|
40
44
|
// return parse(_str, { startRule: "bitmarkPlusString" })
|
|
41
45
|
// }
|
|
42
|
-
}
|
|
43
|
-
function bitmarkMinusMinusString(_str) {
|
|
44
46
|
if (typeof parser !== 'undefined') {
|
|
45
|
-
return parser.parse(_str, { startRule: "
|
|
47
|
+
return parser.parse(_str, { startRule: "bitmarkPlusString" });
|
|
46
48
|
}
|
|
47
|
-
return peg$parse(_str, { startRule: "
|
|
49
|
+
return peg$parse(_str, { startRule: "bitmarkPlusString" });
|
|
50
|
+
}
|
|
51
|
+
function bitmarkMinusMinusString(_str) {
|
|
48
52
|
// if (parser) {
|
|
49
53
|
// return parser.parse(_str, { startRule: "bitmarkMinusMinusString" })
|
|
50
54
|
// } else {
|
|
51
55
|
// // embedded in Get More Brain
|
|
52
56
|
// return parse(_str, { startRule: "bitmarkMinusMinusString" })
|
|
53
57
|
// }
|
|
58
|
+
if (typeof parser !== 'undefined') {
|
|
59
|
+
return parser.parse(_str, { startRule: "bitmarkMinusMinusString" });
|
|
60
|
+
}
|
|
61
|
+
return peg$parse(_str, { startRule: "bitmarkMinusMinusString" });
|
|
54
62
|
}
|
|
55
63
|
function peg$subclass(child, parent) {
|
|
56
64
|
function C() { this.constructor = child; }
|
|
@@ -212,70 +220,84 @@ function peg$parse(input, options) {
|
|
|
212
220
|
var peg$c8 = "JavaScript";
|
|
213
221
|
var peg$c9 = "\u2022 ";
|
|
214
222
|
var peg$c10 = "\u20221 ";
|
|
215
|
-
var peg$c11 = "\
|
|
216
|
-
var peg$c12 = "\u2022
|
|
217
|
-
var peg$c13 = "\
|
|
218
|
-
var peg$c14 = "
|
|
219
|
-
var peg$c15 = "
|
|
220
|
-
var peg$c16 = "
|
|
221
|
-
var peg$c17 = "
|
|
222
|
-
var peg$c18 = "
|
|
223
|
-
var peg$c19 = "
|
|
224
|
-
var peg$c20 = "
|
|
225
|
-
var peg$c21 = "
|
|
226
|
-
var peg$c22 = "
|
|
227
|
-
var peg$c23 = "
|
|
228
|
-
var peg$c24 = "
|
|
229
|
-
var peg$c25 = "
|
|
230
|
-
var peg$c26 = "
|
|
231
|
-
var peg$c27 = "
|
|
232
|
-
var peg$c28 = "
|
|
233
|
-
var peg$c29 = "
|
|
234
|
-
var peg$c30 = "
|
|
235
|
-
var peg$c31 = "
|
|
236
|
-
var peg$c32 = "
|
|
237
|
-
var peg$c33 = "
|
|
238
|
-
var peg$c34 = "
|
|
239
|
-
var peg$c35 = "
|
|
240
|
-
var peg$c36 = "
|
|
241
|
-
var peg$c37 = "
|
|
242
|
-
var peg$c38 = "
|
|
243
|
-
var peg$c39 = "
|
|
244
|
-
var peg$c40 = "
|
|
245
|
-
var peg$c41 = "
|
|
246
|
-
var peg$c42 = "
|
|
247
|
-
var peg$c43 = "
|
|
248
|
-
var peg$c44 = "
|
|
249
|
-
var peg$c45 = "
|
|
250
|
-
var peg$c46 = "
|
|
251
|
-
var peg$c47 = "
|
|
252
|
-
var peg$c48 = "
|
|
253
|
-
var peg$c49 = "
|
|
254
|
-
var peg$c50 = "
|
|
255
|
-
var peg$c51 = "
|
|
256
|
-
var peg$c52 = "
|
|
257
|
-
var peg$c53 = "
|
|
258
|
-
var peg$c54 = "
|
|
259
|
-
var peg$c55 = "
|
|
260
|
-
var peg$c56 = "
|
|
261
|
-
var peg$c57 = "
|
|
262
|
-
var peg$c58 = "
|
|
263
|
-
var peg$c59 = "
|
|
264
|
-
var peg$c60 = "
|
|
265
|
-
var peg$c61 = "
|
|
266
|
-
var peg$c62 = "
|
|
267
|
-
var peg$c63 = "
|
|
268
|
-
var peg$c64 = "
|
|
269
|
-
var peg$c65 = "
|
|
270
|
-
var peg$c66 = "
|
|
271
|
-
var peg$c67 = "
|
|
272
|
-
var peg$c68 = "
|
|
273
|
-
var peg$c69 = "
|
|
274
|
-
var peg$c70 = "
|
|
275
|
-
var peg$c71 = "
|
|
276
|
-
var peg$c72 = "
|
|
277
|
-
var peg$c73 = "
|
|
278
|
-
var peg$c74 = "
|
|
223
|
+
var peg$c11 = "\u2022A ";
|
|
224
|
+
var peg$c12 = "\u2022+ ";
|
|
225
|
+
var peg$c13 = "\u2022- ";
|
|
226
|
+
var peg$c14 = "\t";
|
|
227
|
+
var peg$c15 = "image";
|
|
228
|
+
var peg$c16 = " ";
|
|
229
|
+
var peg$c17 = "#";
|
|
230
|
+
var peg$c18 = "@";
|
|
231
|
+
var peg$c19 = "width";
|
|
232
|
+
var peg$c20 = "height";
|
|
233
|
+
var peg$c21 = "=";
|
|
234
|
+
var peg$c22 = "\uD835\uDC53";
|
|
235
|
+
var peg$c23 = "link:";
|
|
236
|
+
var peg$c24 = "var:";
|
|
237
|
+
var peg$c25 = "code:";
|
|
238
|
+
var peg$c26 = "timer";
|
|
239
|
+
var peg$c27 = "timer:";
|
|
240
|
+
var peg$c28 = "duration:";
|
|
241
|
+
var peg$c29 = "P";
|
|
242
|
+
var peg$c30 = "color:";
|
|
243
|
+
var peg$c31 = "bold";
|
|
244
|
+
var peg$c32 = "italic";
|
|
245
|
+
var peg$c33 = "light";
|
|
246
|
+
var peg$c34 = "highlight";
|
|
247
|
+
var peg$c35 = "strike";
|
|
248
|
+
var peg$c36 = "subscript";
|
|
249
|
+
var peg$c37 = "superscript";
|
|
250
|
+
var peg$c38 = "ins";
|
|
251
|
+
var peg$c39 = "del";
|
|
252
|
+
var peg$c40 = "underline";
|
|
253
|
+
var peg$c41 = "doubleUnderline";
|
|
254
|
+
var peg$c42 = "circle";
|
|
255
|
+
var peg$c43 = "languageEm";
|
|
256
|
+
var peg$c44 = "userUnderline";
|
|
257
|
+
var peg$c45 = "userDoubleUnderline";
|
|
258
|
+
var peg$c46 = "userStrike";
|
|
259
|
+
var peg$c47 = "userCircle";
|
|
260
|
+
var peg$c48 = "userHighlight";
|
|
261
|
+
var peg$c49 = "aqua";
|
|
262
|
+
var peg$c50 = "black";
|
|
263
|
+
var peg$c51 = "blue";
|
|
264
|
+
var peg$c52 = "pink";
|
|
265
|
+
var peg$c53 = "fuchsia";
|
|
266
|
+
var peg$c54 = "lightgrey";
|
|
267
|
+
var peg$c55 = "gray";
|
|
268
|
+
var peg$c56 = "darkgray";
|
|
269
|
+
var peg$c57 = "green";
|
|
270
|
+
var peg$c58 = "lime";
|
|
271
|
+
var peg$c59 = "magenta";
|
|
272
|
+
var peg$c60 = "maroon";
|
|
273
|
+
var peg$c61 = "navy";
|
|
274
|
+
var peg$c62 = "olive";
|
|
275
|
+
var peg$c63 = "orange";
|
|
276
|
+
var peg$c64 = "purple";
|
|
277
|
+
var peg$c65 = "red";
|
|
278
|
+
var peg$c66 = "silver";
|
|
279
|
+
var peg$c67 = "teal";
|
|
280
|
+
var peg$c68 = "violet";
|
|
281
|
+
var peg$c69 = "white";
|
|
282
|
+
var peg$c70 = "yellow";
|
|
283
|
+
var peg$c71 = "*";
|
|
284
|
+
var peg$c72 = "_";
|
|
285
|
+
var peg$c73 = "`";
|
|
286
|
+
var peg$c74 = "!";
|
|
287
|
+
var peg$c75 = "[!";
|
|
288
|
+
var peg$c76 = "]";
|
|
289
|
+
var peg$c77 = "\n";
|
|
290
|
+
var peg$c78 = "\r\n";
|
|
291
|
+
var peg$c79 = "\r";
|
|
292
|
+
var peg$c80 = "\u2028";
|
|
293
|
+
var peg$c81 = "\u2029";
|
|
294
|
+
var peg$c82 = "http";
|
|
295
|
+
var peg$c83 = "s";
|
|
296
|
+
var peg$c84 = "://";
|
|
297
|
+
var peg$c85 = "mailto:";
|
|
298
|
+
var peg$c86 = "~";
|
|
299
|
+
var peg$c87 = "^";
|
|
300
|
+
var peg$c88 = "'";
|
|
279
301
|
var peg$r0 = /^[ \t]/;
|
|
280
302
|
var peg$r1 = /^[0-9]/;
|
|
281
303
|
var peg$r2 = /^[\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
@@ -296,87 +318,101 @@ function peg$parse(input, options) {
|
|
|
296
318
|
var peg$e10 = peg$literalExpectation("JavaScript", false);
|
|
297
319
|
var peg$e11 = peg$literalExpectation("\u2022 ", false);
|
|
298
320
|
var peg$e12 = peg$literalExpectation("\u20221 ", false);
|
|
299
|
-
var peg$e13 = peg$literalExpectation("\
|
|
300
|
-
var peg$e14 = peg$literalExpectation("\u2022
|
|
301
|
-
var peg$e15 = peg$
|
|
302
|
-
var peg$e16 = peg$
|
|
303
|
-
var peg$e17 = peg$literalExpectation("
|
|
304
|
-
var peg$e18 = peg$literalExpectation("
|
|
305
|
-
var peg$e19 = peg$literalExpectation("
|
|
306
|
-
var peg$e20 = peg$literalExpectation("
|
|
307
|
-
var peg$e21 = peg$
|
|
308
|
-
var peg$e22 = peg$
|
|
309
|
-
var peg$e23 = peg$literalExpectation("
|
|
310
|
-
var peg$e24 = peg$
|
|
311
|
-
var peg$e25 = peg$
|
|
312
|
-
var peg$e26 = peg$literalExpectation("
|
|
313
|
-
var peg$e27 = peg$literalExpectation("
|
|
314
|
-
var peg$e28 = peg$literalExpectation("
|
|
315
|
-
var peg$e29 = peg$literalExpectation("
|
|
316
|
-
var peg$e30 = peg$literalExpectation("
|
|
317
|
-
var peg$e31 = peg$literalExpectation("
|
|
318
|
-
var peg$e32 = peg$literalExpectation("
|
|
319
|
-
var peg$e33 = peg$literalExpectation("
|
|
320
|
-
var peg$e34 = peg$literalExpectation("
|
|
321
|
-
var peg$e35 = peg$literalExpectation("
|
|
322
|
-
var peg$e36 = peg$literalExpectation("
|
|
323
|
-
var peg$e37 = peg$literalExpectation("
|
|
324
|
-
var peg$e38 = peg$literalExpectation("
|
|
325
|
-
var peg$e39 = peg$literalExpectation("
|
|
326
|
-
var peg$e40 = peg$literalExpectation("
|
|
327
|
-
var peg$e41 = peg$literalExpectation("
|
|
328
|
-
var peg$e42 = peg$literalExpectation("
|
|
329
|
-
var peg$e43 = peg$literalExpectation("
|
|
330
|
-
var peg$e44 = peg$literalExpectation("
|
|
331
|
-
var peg$e45 = peg$literalExpectation("
|
|
332
|
-
var peg$e46 = peg$literalExpectation("
|
|
333
|
-
var peg$e47 = peg$literalExpectation("
|
|
334
|
-
var peg$e48 = peg$literalExpectation("
|
|
335
|
-
var peg$e49 = peg$literalExpectation("
|
|
336
|
-
var peg$e50 = peg$literalExpectation("
|
|
337
|
-
var peg$e51 = peg$literalExpectation("
|
|
338
|
-
var peg$e52 = peg$literalExpectation("
|
|
339
|
-
var peg$e53 = peg$literalExpectation("
|
|
340
|
-
var peg$e54 = peg$literalExpectation("
|
|
341
|
-
var peg$e55 = peg$literalExpectation("
|
|
342
|
-
var peg$e56 = peg$literalExpectation("
|
|
343
|
-
var peg$e57 = peg$literalExpectation("
|
|
344
|
-
var peg$e58 = peg$literalExpectation("
|
|
345
|
-
var peg$e59 = peg$literalExpectation("
|
|
346
|
-
var peg$e60 = peg$literalExpectation("
|
|
347
|
-
var peg$e61 = peg$literalExpectation("
|
|
348
|
-
var peg$e62 = peg$
|
|
349
|
-
var peg$e63 = peg$
|
|
350
|
-
var peg$e64 = peg$literalExpectation("
|
|
351
|
-
var peg$e65 = peg$literalExpectation("
|
|
352
|
-
var peg$e66 = peg$literalExpectation("
|
|
353
|
-
var peg$e67 = peg$literalExpectation("
|
|
354
|
-
var peg$e68 = peg$literalExpectation("
|
|
355
|
-
var peg$e69 = peg$literalExpectation("
|
|
356
|
-
var peg$e70 = peg$
|
|
357
|
-
var peg$e71 = peg$literalExpectation("
|
|
358
|
-
var peg$e72 = peg$literalExpectation("
|
|
359
|
-
var peg$e73 = peg$literalExpectation("
|
|
360
|
-
var peg$e74 = peg$literalExpectation("
|
|
361
|
-
var peg$e75 = peg$literalExpectation("
|
|
362
|
-
var peg$e76 = peg$otherExpectation("
|
|
363
|
-
var peg$e77 = peg$otherExpectation("
|
|
364
|
-
var peg$e78 = peg$
|
|
365
|
-
var peg$e79 = peg$
|
|
366
|
-
var peg$e80 = peg$
|
|
367
|
-
var peg$e81 = peg$
|
|
368
|
-
var peg$e82 = peg$
|
|
369
|
-
var peg$e83 = peg$
|
|
370
|
-
var peg$e84 = peg$
|
|
371
|
-
var peg$e85 = peg$literalExpectation("
|
|
372
|
-
var peg$e86 = peg$literalExpectation("
|
|
373
|
-
var peg$e87 = peg$literalExpectation("
|
|
374
|
-
var peg$e88 = peg$
|
|
375
|
-
var peg$e89 = peg$literalExpectation("
|
|
376
|
-
var peg$e90 = peg$
|
|
377
|
-
var peg$e91 = peg$
|
|
321
|
+
var peg$e13 = peg$literalExpectation("\u2022A ", false);
|
|
322
|
+
var peg$e14 = peg$literalExpectation("\u2022+ ", false);
|
|
323
|
+
var peg$e15 = peg$literalExpectation("\u2022- ", false);
|
|
324
|
+
var peg$e16 = peg$anyExpectation();
|
|
325
|
+
var peg$e17 = peg$literalExpectation("\t", false);
|
|
326
|
+
var peg$e18 = peg$literalExpectation("image", false);
|
|
327
|
+
var peg$e19 = peg$literalExpectation(" ", false);
|
|
328
|
+
var peg$e20 = peg$literalExpectation("#", false);
|
|
329
|
+
var peg$e21 = peg$literalExpectation("@", false);
|
|
330
|
+
var peg$e22 = peg$classExpectation([["0", "9"]], false, false);
|
|
331
|
+
var peg$e23 = peg$literalExpectation("width", false);
|
|
332
|
+
var peg$e24 = peg$literalExpectation("height", false);
|
|
333
|
+
var peg$e25 = peg$otherExpectation("StyledString");
|
|
334
|
+
var peg$e26 = peg$literalExpectation("=", false);
|
|
335
|
+
var peg$e27 = peg$literalExpectation("\uD835\uDC53", false);
|
|
336
|
+
var peg$e28 = peg$literalExpectation("link:", false);
|
|
337
|
+
var peg$e29 = peg$literalExpectation("var:", false);
|
|
338
|
+
var peg$e30 = peg$literalExpectation("code:", false);
|
|
339
|
+
var peg$e31 = peg$literalExpectation("timer", false);
|
|
340
|
+
var peg$e32 = peg$literalExpectation("timer:", false);
|
|
341
|
+
var peg$e33 = peg$literalExpectation("duration:", false);
|
|
342
|
+
var peg$e34 = peg$literalExpectation("P", false);
|
|
343
|
+
var peg$e35 = peg$literalExpectation("color:", false);
|
|
344
|
+
var peg$e36 = peg$literalExpectation("bold", false);
|
|
345
|
+
var peg$e37 = peg$literalExpectation("italic", false);
|
|
346
|
+
var peg$e38 = peg$literalExpectation("light", false);
|
|
347
|
+
var peg$e39 = peg$literalExpectation("highlight", false);
|
|
348
|
+
var peg$e40 = peg$literalExpectation("strike", false);
|
|
349
|
+
var peg$e41 = peg$literalExpectation("subscript", false);
|
|
350
|
+
var peg$e42 = peg$literalExpectation("superscript", false);
|
|
351
|
+
var peg$e43 = peg$literalExpectation("ins", false);
|
|
352
|
+
var peg$e44 = peg$literalExpectation("del", false);
|
|
353
|
+
var peg$e45 = peg$literalExpectation("underline", false);
|
|
354
|
+
var peg$e46 = peg$literalExpectation("doubleUnderline", false);
|
|
355
|
+
var peg$e47 = peg$literalExpectation("circle", false);
|
|
356
|
+
var peg$e48 = peg$literalExpectation("languageEm", false);
|
|
357
|
+
var peg$e49 = peg$literalExpectation("userUnderline", false);
|
|
358
|
+
var peg$e50 = peg$literalExpectation("userDoubleUnderline", false);
|
|
359
|
+
var peg$e51 = peg$literalExpectation("userStrike", false);
|
|
360
|
+
var peg$e52 = peg$literalExpectation("userCircle", false);
|
|
361
|
+
var peg$e53 = peg$literalExpectation("userHighlight", false);
|
|
362
|
+
var peg$e54 = peg$literalExpectation("aqua", false);
|
|
363
|
+
var peg$e55 = peg$literalExpectation("black", false);
|
|
364
|
+
var peg$e56 = peg$literalExpectation("blue", false);
|
|
365
|
+
var peg$e57 = peg$literalExpectation("pink", false);
|
|
366
|
+
var peg$e58 = peg$literalExpectation("fuchsia", false);
|
|
367
|
+
var peg$e59 = peg$literalExpectation("lightgrey", false);
|
|
368
|
+
var peg$e60 = peg$literalExpectation("gray", false);
|
|
369
|
+
var peg$e61 = peg$literalExpectation("darkgray", false);
|
|
370
|
+
var peg$e62 = peg$literalExpectation("green", false);
|
|
371
|
+
var peg$e63 = peg$literalExpectation("lime", false);
|
|
372
|
+
var peg$e64 = peg$literalExpectation("magenta", false);
|
|
373
|
+
var peg$e65 = peg$literalExpectation("maroon", false);
|
|
374
|
+
var peg$e66 = peg$literalExpectation("navy", false);
|
|
375
|
+
var peg$e67 = peg$literalExpectation("olive", false);
|
|
376
|
+
var peg$e68 = peg$literalExpectation("orange", false);
|
|
377
|
+
var peg$e69 = peg$literalExpectation("purple", false);
|
|
378
|
+
var peg$e70 = peg$literalExpectation("red", false);
|
|
379
|
+
var peg$e71 = peg$literalExpectation("silver", false);
|
|
380
|
+
var peg$e72 = peg$literalExpectation("teal", false);
|
|
381
|
+
var peg$e73 = peg$literalExpectation("violet", false);
|
|
382
|
+
var peg$e74 = peg$literalExpectation("white", false);
|
|
383
|
+
var peg$e75 = peg$literalExpectation("yellow", false);
|
|
384
|
+
var peg$e76 = peg$otherExpectation("MinimalStyledText");
|
|
385
|
+
var peg$e77 = peg$otherExpectation("MinimalStyledString");
|
|
386
|
+
var peg$e78 = peg$literalExpectation("*", false);
|
|
387
|
+
var peg$e79 = peg$literalExpectation("_", false);
|
|
388
|
+
var peg$e80 = peg$literalExpectation("`", false);
|
|
389
|
+
var peg$e81 = peg$literalExpectation("!", false);
|
|
390
|
+
var peg$e82 = peg$literalExpectation("[!", false);
|
|
391
|
+
var peg$e83 = peg$literalExpectation("]", false);
|
|
392
|
+
var peg$e84 = peg$otherExpectation("Line Terminator");
|
|
393
|
+
var peg$e85 = peg$literalExpectation("\n", false);
|
|
394
|
+
var peg$e86 = peg$literalExpectation("\r\n", false);
|
|
395
|
+
var peg$e87 = peg$literalExpectation("\r", false);
|
|
396
|
+
var peg$e88 = peg$literalExpectation("\u2028", false);
|
|
397
|
+
var peg$e89 = peg$literalExpectation("\u2029", false);
|
|
398
|
+
var peg$e90 = peg$otherExpectation("whitespace in line");
|
|
399
|
+
var peg$e91 = peg$otherExpectation("space");
|
|
400
|
+
var peg$e92 = peg$otherExpectation("language tag separator");
|
|
401
|
+
var peg$e93 = peg$otherExpectation("white space, separator");
|
|
402
|
+
var peg$e94 = peg$classExpectation(["\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false);
|
|
403
|
+
var peg$e95 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false);
|
|
404
|
+
var peg$e96 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], true, false);
|
|
405
|
+
var peg$e97 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029", "\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], true, false);
|
|
406
|
+
var peg$e98 = peg$literalExpectation("http", false);
|
|
407
|
+
var peg$e99 = peg$literalExpectation("s", false);
|
|
408
|
+
var peg$e100 = peg$literalExpectation("://", false);
|
|
409
|
+
var peg$e101 = peg$literalExpectation("mailto:", false);
|
|
410
|
+
var peg$e102 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "!", "*", "'", "(", ")", "=", ["+", "/"], ".", "_", "?", "#", "@", "[", "]", "$", "&", "(", ")", ",", ";", "%", ":", "{", "}"], false, false);
|
|
411
|
+
var peg$e103 = peg$literalExpectation("~", false);
|
|
412
|
+
var peg$e104 = peg$literalExpectation("^", false);
|
|
413
|
+
var peg$e105 = peg$literalExpectation("'", false);
|
|
378
414
|
var peg$f0 = function (b) { return Object.assign({}, b); };
|
|
379
|
-
var peg$f1 = function (b) {
|
|
415
|
+
var peg$f1 = function (b) { let lb_ = Object.assign({}, b); removeTempParsingParent(lb_); return lb_; };
|
|
380
416
|
var peg$f2 = function (b) { return Object.assign({}, b); };
|
|
381
417
|
var peg$f3 = function (b) { return Object.assign({}, b); };
|
|
382
418
|
var peg$f4 = function (b) { return Object.assign({}, b); };
|
|
@@ -393,17 +429,22 @@ function peg$parse(input, options) {
|
|
|
393
429
|
var peg$f15 = function (c, bl) { return Object.assign(Object.assign({}, c), { content: bl, attrs: {} }); };
|
|
394
430
|
var peg$f16 = function (c, bl) { return Object.assign(Object.assign({}, c), { content: bl, attrs: {} }); };
|
|
395
431
|
var peg$f17 = function (c, bl) { return Object.assign(Object.assign({}, c), { content: bl, attrs: {} }); };
|
|
396
|
-
var peg$f18 = function () { return {
|
|
397
|
-
var peg$f19 = function () { return { type: "
|
|
398
|
-
var peg$f20 = function () { return { type: "
|
|
399
|
-
var peg$f21 = function (
|
|
400
|
-
var peg$f22 = function (
|
|
401
|
-
|
|
432
|
+
var peg$f18 = function (c, bl) { return Object.assign(Object.assign({}, c), { content: bl, attrs: {} }); };
|
|
433
|
+
var peg$f19 = function () { return { type: "bulletList" }; };
|
|
434
|
+
var peg$f20 = function () { return { type: "orderedList" }; };
|
|
435
|
+
var peg$f21 = function () { return { type: "letteredList" }; };
|
|
436
|
+
var peg$f22 = function () { return { type: "taskList" }; };
|
|
437
|
+
var peg$f23 = function (lt, listItem, lines, c) { return c; };
|
|
438
|
+
var peg$f24 = function (lt, listItem, lines, children) {
|
|
439
|
+
let _tempParsingParent = 'bulletList';
|
|
402
440
|
if ('•1 ' == lt) {
|
|
403
|
-
|
|
441
|
+
_tempParsingParent = 'orderedList';
|
|
442
|
+
}
|
|
443
|
+
if ('•A ' == lt) {
|
|
444
|
+
_tempParsingParent = 'letteredList';
|
|
404
445
|
}
|
|
405
446
|
if ('•+ ' == lt || '•- ' == lt) {
|
|
406
|
-
|
|
447
|
+
_tempParsingParent = 'taskList';
|
|
407
448
|
}
|
|
408
449
|
let li = (listItem + lines.join("")).trim();
|
|
409
450
|
let item = {
|
|
@@ -412,21 +453,21 @@ function peg$parse(input, options) {
|
|
|
412
453
|
content: bitmarkPlusString(li)
|
|
413
454
|
};
|
|
414
455
|
let content = [item];
|
|
415
|
-
if (children && children[0] && children[0].
|
|
456
|
+
if (children && children[0] && children[0]._tempParsingParent) {
|
|
416
457
|
let sublist = {
|
|
417
|
-
type: children[0].
|
|
458
|
+
type: children[0]._tempParsingParent,
|
|
418
459
|
attrs: { start: 1 },
|
|
419
460
|
content: children,
|
|
420
|
-
|
|
461
|
+
_tempParsingParent: ""
|
|
421
462
|
};
|
|
422
|
-
if ("orderedList" == sublist.
|
|
463
|
+
if ("orderedList" == sublist._tempParsingParent || "letteredList" == sublist._tempParsingParent) {
|
|
423
464
|
sublist.attrs.start = 1;
|
|
424
465
|
}
|
|
425
466
|
content.push(sublist);
|
|
426
467
|
}
|
|
427
468
|
let t = "listItem";
|
|
428
469
|
let attrs = {};
|
|
429
|
-
if ("taskList" ==
|
|
470
|
+
if ("taskList" == _tempParsingParent) {
|
|
430
471
|
t = "taskItem";
|
|
431
472
|
let checked = false;
|
|
432
473
|
if ('•+ ' == lt) {
|
|
@@ -434,18 +475,18 @@ function peg$parse(input, options) {
|
|
|
434
475
|
}
|
|
435
476
|
attrs = { checked };
|
|
436
477
|
}
|
|
437
|
-
return { type: t, content,
|
|
478
|
+
return { type: t, content, _tempParsingParent, attrs };
|
|
438
479
|
};
|
|
439
|
-
var peg$
|
|
440
|
-
var peg$
|
|
441
|
-
var peg$
|
|
442
|
-
var peg$
|
|
443
|
-
var peg$
|
|
444
|
-
var peg$f28 = function (body) { return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} }; };
|
|
445
|
-
var peg$f29 = function (body) { return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} }; };
|
|
480
|
+
var peg$f25 = function (ll) { return ll; };
|
|
481
|
+
var peg$f26 = function (i) { return i.join("") === indent; };
|
|
482
|
+
var peg$f27 = function (i) { return i.length > indent.length; };
|
|
483
|
+
var peg$f28 = function (i) { indentStack.push(indent); indent = i.join(""); };
|
|
484
|
+
var peg$f29 = function () { indent = indentStack.pop(); return true; };
|
|
446
485
|
var peg$f30 = function (body) { return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} }; };
|
|
447
|
-
var peg$f31 = function (
|
|
448
|
-
var peg$f32 = function (
|
|
486
|
+
var peg$f31 = function (body) { return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} }; };
|
|
487
|
+
var peg$f32 = function (body) { return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} }; };
|
|
488
|
+
var peg$f33 = function (t) { return t; };
|
|
489
|
+
var peg$f34 = function (t, u, ch) {
|
|
449
490
|
const chain = Object.assign({}, ...ch);
|
|
450
491
|
let textAlign_ = chain.captionAlign || "left";
|
|
451
492
|
delete chain.captionAlign;
|
|
@@ -455,47 +496,52 @@ function peg$parse(input, options) {
|
|
|
455
496
|
delete chain.caption;
|
|
456
497
|
let class_ = chain.align || "center";
|
|
457
498
|
delete chain.align;
|
|
499
|
+
let zoomDisabled_ = chain.zoomDisabled || Boolean(chain.zoomDisabled);
|
|
500
|
+
delete chain.zoomDisabled;
|
|
458
501
|
let image = {
|
|
459
502
|
type: t,
|
|
460
|
-
attrs: Object.assign({ textAlign: textAlign_, src: u, alt: alt_, title: title_, class: class_ }, chain)
|
|
503
|
+
attrs: Object.assign({ textAlign: textAlign_, src: u, alt: alt_, title: title_, class: class_, zoomDisabled: zoomDisabled_ }, chain)
|
|
461
504
|
};
|
|
462
505
|
return image;
|
|
463
506
|
};
|
|
464
|
-
var peg$
|
|
465
|
-
var peg$
|
|
466
|
-
var peg$
|
|
467
|
-
var peg$
|
|
468
|
-
var peg$
|
|
469
|
-
var peg$
|
|
470
|
-
var peg$
|
|
471
|
-
var peg$
|
|
472
|
-
var peg$
|
|
473
|
-
var peg$
|
|
474
|
-
var peg$
|
|
475
|
-
var peg$
|
|
507
|
+
var peg$f35 = function (ch) { return ch; };
|
|
508
|
+
var peg$f36 = function (str) { return { comment: str }; };
|
|
509
|
+
var peg$f37 = function (p, v) { return { [p]: parseInt(v) }; };
|
|
510
|
+
var peg$f38 = function (p, v) { return { type: "error", msg: p + ' must be an positive integer.', found: v }; };
|
|
511
|
+
var peg$f39 = function (p, v) { return { [p]: v }; };
|
|
512
|
+
var peg$f40 = function (p) { return { [p]: true }; };
|
|
513
|
+
var peg$f41 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
|
|
514
|
+
var peg$f42 = function (first, more) { return first ? [first, ...more.flat()] : more.flat(); };
|
|
515
|
+
var peg$f43 = function () { return { "type": "hardBreak" }; };
|
|
516
|
+
var peg$f44 = function (t) { return { text: unbreakscape(t), type: "text" }; };
|
|
517
|
+
var peg$f45 = function (t) { return { index: +t, type: "bit" }; };
|
|
518
|
+
var peg$f46 = function (t, marks) { if (!marks)
|
|
476
519
|
marks = []; return { marks, text: unbreakscape(t), type: "text" }; };
|
|
477
|
-
var peg$
|
|
478
|
-
var peg$
|
|
479
|
-
var peg$
|
|
480
|
-
var peg$
|
|
481
|
-
var peg$
|
|
482
|
-
var peg$
|
|
483
|
-
var peg$
|
|
484
|
-
var peg$
|
|
485
|
-
var peg$
|
|
486
|
-
var peg$
|
|
487
|
-
var peg$
|
|
488
|
-
var peg$
|
|
489
|
-
var peg$
|
|
490
|
-
var peg$
|
|
491
|
-
var peg$
|
|
492
|
-
var peg$
|
|
493
|
-
var peg$
|
|
494
|
-
var peg$
|
|
495
|
-
var peg$
|
|
496
|
-
var peg$
|
|
497
|
-
var peg$
|
|
498
|
-
var peg$
|
|
520
|
+
var peg$f47 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
|
|
521
|
+
var peg$f48 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
|
|
522
|
+
var peg$f49 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
|
|
523
|
+
var peg$f50 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
|
|
524
|
+
var peg$f51 = function (u) { return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: '_blank' } }], text: u.t, type: "text" }; };
|
|
525
|
+
var peg$f52 = function (ch) { return ch; };
|
|
526
|
+
var peg$f53 = function (str) { return { type: 'link', attrs: { href: str.trim(), target: '_blank' } }; };
|
|
527
|
+
var peg$f54 = function (str) { return { type: 'var', attrs: { name: str.trim() } }; };
|
|
528
|
+
var peg$f55 = function () { return { type: 'code', attrs: { language: "plain text" } }; };
|
|
529
|
+
var peg$f56 = function (lang) { return { type: 'code', attrs: { language: lang.trim().toLowerCase() } }; };
|
|
530
|
+
var peg$f57 = function () { return { type: 'timer', attrs: { name: "" } }; };
|
|
531
|
+
var peg$f58 = function (str) { return { type: 'timer', attrs: { name: str.trim() } }; };
|
|
532
|
+
var peg$f59 = function (str) { return { type: 'duration', attrs: { duration: str } }; };
|
|
533
|
+
var peg$f60 = function (color) { return { type: 'color', attrs: { color } }; };
|
|
534
|
+
var peg$f61 = function (style) { return { type: style }; };
|
|
535
|
+
var peg$f62 = function (str) { return { type: "comment", comment: str }; };
|
|
536
|
+
var peg$f63 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
|
|
537
|
+
var peg$f64 = function (first, more) { return first ? [first, ...more.flat()] : more.flat(); };
|
|
538
|
+
var peg$f65 = function (t) { return { text: unbreakscape(t), type: "text" }; };
|
|
539
|
+
var peg$f66 = function (t) { return { index: +t, type: "bit" }; };
|
|
540
|
+
var peg$f67 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
|
|
541
|
+
var peg$f68 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
|
|
542
|
+
var peg$f69 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
|
|
543
|
+
var peg$f70 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
|
|
544
|
+
var peg$f71 = function (pr, t) { return { pr, t }; };
|
|
499
545
|
var peg$currPos = 0;
|
|
500
546
|
var peg$savedPos = 0;
|
|
501
547
|
var peg$posDetailsCache = [{ line: 1, column: 1 }];
|
|
@@ -1224,7 +1270,7 @@ function peg$parse(input, options) {
|
|
|
1224
1270
|
}
|
|
1225
1271
|
return s0;
|
|
1226
1272
|
}
|
|
1227
|
-
function peg$
|
|
1273
|
+
function peg$parseLetteredListTag() {
|
|
1228
1274
|
var s0;
|
|
1229
1275
|
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
1230
1276
|
s0 = peg$c11;
|
|
@@ -1236,15 +1282,29 @@ function peg$parse(input, options) {
|
|
|
1236
1282
|
peg$fail(peg$e13);
|
|
1237
1283
|
}
|
|
1238
1284
|
}
|
|
1285
|
+
return s0;
|
|
1286
|
+
}
|
|
1287
|
+
function peg$parseTaskListTag() {
|
|
1288
|
+
var s0;
|
|
1289
|
+
if (input.substr(peg$currPos, 3) === peg$c12) {
|
|
1290
|
+
s0 = peg$c12;
|
|
1291
|
+
peg$currPos += 3;
|
|
1292
|
+
}
|
|
1293
|
+
else {
|
|
1294
|
+
s0 = peg$FAILED;
|
|
1295
|
+
if (peg$silentFails === 0) {
|
|
1296
|
+
peg$fail(peg$e14);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1239
1299
|
if (s0 === peg$FAILED) {
|
|
1240
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
1241
|
-
s0 = peg$
|
|
1300
|
+
if (input.substr(peg$currPos, 3) === peg$c13) {
|
|
1301
|
+
s0 = peg$c13;
|
|
1242
1302
|
peg$currPos += 3;
|
|
1243
1303
|
}
|
|
1244
1304
|
else {
|
|
1245
1305
|
s0 = peg$FAILED;
|
|
1246
1306
|
if (peg$silentFails === 0) {
|
|
1247
|
-
peg$fail(peg$
|
|
1307
|
+
peg$fail(peg$e15);
|
|
1248
1308
|
}
|
|
1249
1309
|
}
|
|
1250
1310
|
}
|
|
@@ -1256,7 +1316,10 @@ function peg$parse(input, options) {
|
|
|
1256
1316
|
if (s0 === peg$FAILED) {
|
|
1257
1317
|
s0 = peg$parseOrderedListTag();
|
|
1258
1318
|
if (s0 === peg$FAILED) {
|
|
1259
|
-
s0 = peg$
|
|
1319
|
+
s0 = peg$parseLetteredListTag();
|
|
1320
|
+
if (s0 === peg$FAILED) {
|
|
1321
|
+
s0 = peg$parseTaskListTag();
|
|
1322
|
+
}
|
|
1260
1323
|
}
|
|
1261
1324
|
}
|
|
1262
1325
|
return s0;
|
|
@@ -1328,7 +1391,7 @@ function peg$parse(input, options) {
|
|
|
1328
1391
|
}
|
|
1329
1392
|
if (s0 === peg$FAILED) {
|
|
1330
1393
|
s0 = peg$currPos;
|
|
1331
|
-
s1 = peg$
|
|
1394
|
+
s1 = peg$parseLetteredListContainer();
|
|
1332
1395
|
if (s1 !== peg$FAILED) {
|
|
1333
1396
|
s2 = [];
|
|
1334
1397
|
s3 = peg$parseBulletListLine();
|
|
@@ -1358,6 +1421,39 @@ function peg$parse(input, options) {
|
|
|
1358
1421
|
peg$currPos = s0;
|
|
1359
1422
|
s0 = peg$FAILED;
|
|
1360
1423
|
}
|
|
1424
|
+
if (s0 === peg$FAILED) {
|
|
1425
|
+
s0 = peg$currPos;
|
|
1426
|
+
s1 = peg$parseTaskListContainer();
|
|
1427
|
+
if (s1 !== peg$FAILED) {
|
|
1428
|
+
s2 = [];
|
|
1429
|
+
s3 = peg$parseBulletListLine();
|
|
1430
|
+
if (s3 !== peg$FAILED) {
|
|
1431
|
+
while (s3 !== peg$FAILED) {
|
|
1432
|
+
s2.push(s3);
|
|
1433
|
+
s3 = peg$parseBulletListLine();
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
else {
|
|
1437
|
+
s2 = peg$FAILED;
|
|
1438
|
+
}
|
|
1439
|
+
if (s2 !== peg$FAILED) {
|
|
1440
|
+
s3 = peg$parseNL();
|
|
1441
|
+
if (s3 === peg$FAILED) {
|
|
1442
|
+
s3 = null;
|
|
1443
|
+
}
|
|
1444
|
+
peg$savedPos = s0;
|
|
1445
|
+
s0 = peg$f18(s1, s2);
|
|
1446
|
+
}
|
|
1447
|
+
else {
|
|
1448
|
+
peg$currPos = s0;
|
|
1449
|
+
s0 = peg$FAILED;
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
else {
|
|
1453
|
+
peg$currPos = s0;
|
|
1454
|
+
s0 = peg$FAILED;
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1361
1457
|
}
|
|
1362
1458
|
}
|
|
1363
1459
|
return s0;
|
|
@@ -1378,7 +1474,7 @@ function peg$parse(input, options) {
|
|
|
1378
1474
|
}
|
|
1379
1475
|
if (s1 !== peg$FAILED) {
|
|
1380
1476
|
peg$savedPos = s0;
|
|
1381
|
-
s1 = peg$
|
|
1477
|
+
s1 = peg$f19();
|
|
1382
1478
|
}
|
|
1383
1479
|
s0 = s1;
|
|
1384
1480
|
return s0;
|
|
@@ -1399,7 +1495,28 @@ function peg$parse(input, options) {
|
|
|
1399
1495
|
}
|
|
1400
1496
|
if (s1 !== peg$FAILED) {
|
|
1401
1497
|
peg$savedPos = s0;
|
|
1402
|
-
s1 = peg$
|
|
1498
|
+
s1 = peg$f20();
|
|
1499
|
+
}
|
|
1500
|
+
s0 = s1;
|
|
1501
|
+
return s0;
|
|
1502
|
+
}
|
|
1503
|
+
function peg$parseLetteredListContainer() {
|
|
1504
|
+
var s0, s1, s2;
|
|
1505
|
+
s0 = peg$currPos;
|
|
1506
|
+
s1 = peg$currPos;
|
|
1507
|
+
peg$silentFails++;
|
|
1508
|
+
s2 = peg$parseLetteredListTag();
|
|
1509
|
+
peg$silentFails--;
|
|
1510
|
+
if (s2 !== peg$FAILED) {
|
|
1511
|
+
peg$currPos = s1;
|
|
1512
|
+
s1 = undefined;
|
|
1513
|
+
}
|
|
1514
|
+
else {
|
|
1515
|
+
s1 = peg$FAILED;
|
|
1516
|
+
}
|
|
1517
|
+
if (s1 !== peg$FAILED) {
|
|
1518
|
+
peg$savedPos = s0;
|
|
1519
|
+
s1 = peg$f21();
|
|
1403
1520
|
}
|
|
1404
1521
|
s0 = s1;
|
|
1405
1522
|
return s0;
|
|
@@ -1420,7 +1537,7 @@ function peg$parse(input, options) {
|
|
|
1420
1537
|
}
|
|
1421
1538
|
if (s1 !== peg$FAILED) {
|
|
1422
1539
|
peg$savedPos = s0;
|
|
1423
|
-
s1 = peg$
|
|
1540
|
+
s1 = peg$f22();
|
|
1424
1541
|
}
|
|
1425
1542
|
s0 = s1;
|
|
1426
1543
|
return s0;
|
|
@@ -1455,7 +1572,7 @@ function peg$parse(input, options) {
|
|
|
1455
1572
|
else {
|
|
1456
1573
|
s8 = peg$FAILED;
|
|
1457
1574
|
if (peg$silentFails === 0) {
|
|
1458
|
-
peg$fail(peg$
|
|
1575
|
+
peg$fail(peg$e16);
|
|
1459
1576
|
}
|
|
1460
1577
|
}
|
|
1461
1578
|
if (s8 !== peg$FAILED) {
|
|
@@ -1493,7 +1610,7 @@ function peg$parse(input, options) {
|
|
|
1493
1610
|
else {
|
|
1494
1611
|
s8 = peg$FAILED;
|
|
1495
1612
|
if (peg$silentFails === 0) {
|
|
1496
|
-
peg$fail(peg$
|
|
1613
|
+
peg$fail(peg$e16);
|
|
1497
1614
|
}
|
|
1498
1615
|
}
|
|
1499
1616
|
if (s8 !== peg$FAILED) {
|
|
@@ -1535,7 +1652,7 @@ function peg$parse(input, options) {
|
|
|
1535
1652
|
s8 = peg$parseDEDENT();
|
|
1536
1653
|
if (s8 !== peg$FAILED) {
|
|
1537
1654
|
peg$savedPos = s5;
|
|
1538
|
-
s5 = peg$
|
|
1655
|
+
s5 = peg$f23(s2, s3, s4, s7);
|
|
1539
1656
|
}
|
|
1540
1657
|
else {
|
|
1541
1658
|
peg$currPos = s5;
|
|
@@ -1550,7 +1667,7 @@ function peg$parse(input, options) {
|
|
|
1550
1667
|
s5 = null;
|
|
1551
1668
|
}
|
|
1552
1669
|
peg$savedPos = s0;
|
|
1553
|
-
s0 = peg$
|
|
1670
|
+
s0 = peg$f24(s2, s3, s4, s5);
|
|
1554
1671
|
}
|
|
1555
1672
|
else {
|
|
1556
1673
|
peg$currPos = s0;
|
|
@@ -1615,7 +1732,7 @@ function peg$parse(input, options) {
|
|
|
1615
1732
|
else {
|
|
1616
1733
|
s9 = peg$FAILED;
|
|
1617
1734
|
if (peg$silentFails === 0) {
|
|
1618
|
-
peg$fail(peg$
|
|
1735
|
+
peg$fail(peg$e16);
|
|
1619
1736
|
}
|
|
1620
1737
|
}
|
|
1621
1738
|
if (s9 !== peg$FAILED) {
|
|
@@ -1654,7 +1771,7 @@ function peg$parse(input, options) {
|
|
|
1654
1771
|
else {
|
|
1655
1772
|
s9 = peg$FAILED;
|
|
1656
1773
|
if (peg$silentFails === 0) {
|
|
1657
|
-
peg$fail(peg$
|
|
1774
|
+
peg$fail(peg$e16);
|
|
1658
1775
|
}
|
|
1659
1776
|
}
|
|
1660
1777
|
if (s9 !== peg$FAILED) {
|
|
@@ -1698,7 +1815,7 @@ function peg$parse(input, options) {
|
|
|
1698
1815
|
}
|
|
1699
1816
|
if (s4 !== peg$FAILED) {
|
|
1700
1817
|
peg$savedPos = s0;
|
|
1701
|
-
s0 = peg$
|
|
1818
|
+
s0 = peg$f25(s4);
|
|
1702
1819
|
}
|
|
1703
1820
|
else {
|
|
1704
1821
|
peg$currPos = s0;
|
|
@@ -1764,30 +1881,30 @@ function peg$parse(input, options) {
|
|
|
1764
1881
|
s0 = peg$currPos;
|
|
1765
1882
|
s1 = [];
|
|
1766
1883
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
1767
|
-
s2 = peg$
|
|
1884
|
+
s2 = peg$c14;
|
|
1768
1885
|
peg$currPos++;
|
|
1769
1886
|
}
|
|
1770
1887
|
else {
|
|
1771
1888
|
s2 = peg$FAILED;
|
|
1772
1889
|
if (peg$silentFails === 0) {
|
|
1773
|
-
peg$fail(peg$
|
|
1890
|
+
peg$fail(peg$e17);
|
|
1774
1891
|
}
|
|
1775
1892
|
}
|
|
1776
1893
|
while (s2 !== peg$FAILED) {
|
|
1777
1894
|
s1.push(s2);
|
|
1778
1895
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
1779
|
-
s2 = peg$
|
|
1896
|
+
s2 = peg$c14;
|
|
1780
1897
|
peg$currPos++;
|
|
1781
1898
|
}
|
|
1782
1899
|
else {
|
|
1783
1900
|
s2 = peg$FAILED;
|
|
1784
1901
|
if (peg$silentFails === 0) {
|
|
1785
|
-
peg$fail(peg$
|
|
1902
|
+
peg$fail(peg$e17);
|
|
1786
1903
|
}
|
|
1787
1904
|
}
|
|
1788
1905
|
}
|
|
1789
1906
|
peg$savedPos = peg$currPos;
|
|
1790
|
-
s2 = peg$
|
|
1907
|
+
s2 = peg$f26(s1);
|
|
1791
1908
|
if (s2) {
|
|
1792
1909
|
s2 = undefined;
|
|
1793
1910
|
}
|
|
@@ -1811,26 +1928,26 @@ function peg$parse(input, options) {
|
|
|
1811
1928
|
s1 = peg$currPos;
|
|
1812
1929
|
s2 = [];
|
|
1813
1930
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
1814
|
-
s3 = peg$
|
|
1931
|
+
s3 = peg$c14;
|
|
1815
1932
|
peg$currPos++;
|
|
1816
1933
|
}
|
|
1817
1934
|
else {
|
|
1818
1935
|
s3 = peg$FAILED;
|
|
1819
1936
|
if (peg$silentFails === 0) {
|
|
1820
|
-
peg$fail(peg$
|
|
1937
|
+
peg$fail(peg$e17);
|
|
1821
1938
|
}
|
|
1822
1939
|
}
|
|
1823
1940
|
if (s3 !== peg$FAILED) {
|
|
1824
1941
|
while (s3 !== peg$FAILED) {
|
|
1825
1942
|
s2.push(s3);
|
|
1826
1943
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
1827
|
-
s3 = peg$
|
|
1944
|
+
s3 = peg$c14;
|
|
1828
1945
|
peg$currPos++;
|
|
1829
1946
|
}
|
|
1830
1947
|
else {
|
|
1831
1948
|
s3 = peg$FAILED;
|
|
1832
1949
|
if (peg$silentFails === 0) {
|
|
1833
|
-
peg$fail(peg$
|
|
1950
|
+
peg$fail(peg$e17);
|
|
1834
1951
|
}
|
|
1835
1952
|
}
|
|
1836
1953
|
}
|
|
@@ -1840,7 +1957,7 @@ function peg$parse(input, options) {
|
|
|
1840
1957
|
}
|
|
1841
1958
|
if (s2 !== peg$FAILED) {
|
|
1842
1959
|
peg$savedPos = peg$currPos;
|
|
1843
|
-
s3 = peg$
|
|
1960
|
+
s3 = peg$f27(s2);
|
|
1844
1961
|
if (s3) {
|
|
1845
1962
|
s3 = undefined;
|
|
1846
1963
|
}
|
|
@@ -1849,7 +1966,7 @@ function peg$parse(input, options) {
|
|
|
1849
1966
|
}
|
|
1850
1967
|
if (s3 !== peg$FAILED) {
|
|
1851
1968
|
peg$savedPos = s1;
|
|
1852
|
-
s1 = peg$
|
|
1969
|
+
s1 = peg$f28(s2);
|
|
1853
1970
|
}
|
|
1854
1971
|
else {
|
|
1855
1972
|
peg$currPos = s1;
|
|
@@ -1873,7 +1990,7 @@ function peg$parse(input, options) {
|
|
|
1873
1990
|
function peg$parseDEDENT() {
|
|
1874
1991
|
var s0;
|
|
1875
1992
|
peg$savedPos = peg$currPos;
|
|
1876
|
-
s0 = peg$
|
|
1993
|
+
s0 = peg$f29();
|
|
1877
1994
|
if (s0) {
|
|
1878
1995
|
s0 = undefined;
|
|
1879
1996
|
}
|
|
@@ -1900,7 +2017,7 @@ function peg$parse(input, options) {
|
|
|
1900
2017
|
s2 = peg$parseParagraphBody();
|
|
1901
2018
|
if (s2 !== peg$FAILED) {
|
|
1902
2019
|
peg$savedPos = s0;
|
|
1903
|
-
s0 = peg$
|
|
2020
|
+
s0 = peg$f30(s2);
|
|
1904
2021
|
}
|
|
1905
2022
|
else {
|
|
1906
2023
|
peg$currPos = s0;
|
|
@@ -1918,7 +2035,7 @@ function peg$parse(input, options) {
|
|
|
1918
2035
|
s2 = peg$parseParagraphBody();
|
|
1919
2036
|
if (s2 !== peg$FAILED) {
|
|
1920
2037
|
peg$savedPos = s0;
|
|
1921
|
-
s0 = peg$
|
|
2038
|
+
s0 = peg$f31(s2);
|
|
1922
2039
|
}
|
|
1923
2040
|
else {
|
|
1924
2041
|
peg$currPos = s0;
|
|
@@ -1935,7 +2052,7 @@ function peg$parse(input, options) {
|
|
|
1935
2052
|
if (s1 !== peg$FAILED) {
|
|
1936
2053
|
s2 = '';
|
|
1937
2054
|
peg$savedPos = s0;
|
|
1938
|
-
s0 = peg$
|
|
2055
|
+
s0 = peg$f32(s2);
|
|
1939
2056
|
}
|
|
1940
2057
|
else {
|
|
1941
2058
|
peg$currPos = s0;
|
|
@@ -2101,14 +2218,14 @@ function peg$parse(input, options) {
|
|
|
2101
2218
|
}
|
|
2102
2219
|
function peg$parseImageType() {
|
|
2103
2220
|
var s0;
|
|
2104
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
2105
|
-
s0 = peg$
|
|
2221
|
+
if (input.substr(peg$currPos, 5) === peg$c15) {
|
|
2222
|
+
s0 = peg$c15;
|
|
2106
2223
|
peg$currPos += 5;
|
|
2107
2224
|
}
|
|
2108
2225
|
else {
|
|
2109
2226
|
s0 = peg$FAILED;
|
|
2110
2227
|
if (peg$silentFails === 0) {
|
|
2111
|
-
peg$fail(peg$
|
|
2228
|
+
peg$fail(peg$e18);
|
|
2112
2229
|
}
|
|
2113
2230
|
}
|
|
2114
2231
|
return s0;
|
|
@@ -2121,7 +2238,7 @@ function peg$parse(input, options) {
|
|
|
2121
2238
|
s2 = peg$parseImageType();
|
|
2122
2239
|
if (s2 !== peg$FAILED) {
|
|
2123
2240
|
peg$savedPos = s0;
|
|
2124
|
-
s0 = peg$
|
|
2241
|
+
s0 = peg$f33(s2);
|
|
2125
2242
|
}
|
|
2126
2243
|
else {
|
|
2127
2244
|
peg$currPos = s0;
|
|
@@ -2151,13 +2268,13 @@ function peg$parse(input, options) {
|
|
|
2151
2268
|
}
|
|
2152
2269
|
if (s2 !== peg$FAILED) {
|
|
2153
2270
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
2154
|
-
s3 = peg$
|
|
2271
|
+
s3 = peg$c16;
|
|
2155
2272
|
peg$currPos++;
|
|
2156
2273
|
}
|
|
2157
2274
|
else {
|
|
2158
2275
|
s3 = peg$FAILED;
|
|
2159
2276
|
if (peg$silentFails === 0) {
|
|
2160
|
-
peg$fail(peg$
|
|
2277
|
+
peg$fail(peg$e19);
|
|
2161
2278
|
}
|
|
2162
2279
|
}
|
|
2163
2280
|
if (s3 === peg$FAILED) {
|
|
@@ -2215,7 +2332,7 @@ function peg$parse(input, options) {
|
|
|
2215
2332
|
s8 = null;
|
|
2216
2333
|
}
|
|
2217
2334
|
peg$savedPos = s0;
|
|
2218
|
-
s0 = peg$
|
|
2335
|
+
s0 = peg$f34(s1, s4, s6);
|
|
2219
2336
|
}
|
|
2220
2337
|
else {
|
|
2221
2338
|
peg$currPos = s0;
|
|
@@ -2253,7 +2370,7 @@ function peg$parse(input, options) {
|
|
|
2253
2370
|
s2 = peg$parseMediaChainItem();
|
|
2254
2371
|
}
|
|
2255
2372
|
peg$savedPos = s0;
|
|
2256
|
-
s1 = peg$
|
|
2373
|
+
s1 = peg$f35(s1);
|
|
2257
2374
|
s0 = s1;
|
|
2258
2375
|
return s0;
|
|
2259
2376
|
}
|
|
@@ -2261,13 +2378,13 @@ function peg$parse(input, options) {
|
|
|
2261
2378
|
var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
|
|
2262
2379
|
s0 = peg$currPos;
|
|
2263
2380
|
if (input.charCodeAt(peg$currPos) === 35) {
|
|
2264
|
-
s1 = peg$
|
|
2381
|
+
s1 = peg$c17;
|
|
2265
2382
|
peg$currPos++;
|
|
2266
2383
|
}
|
|
2267
2384
|
else {
|
|
2268
2385
|
s1 = peg$FAILED;
|
|
2269
2386
|
if (peg$silentFails === 0) {
|
|
2270
|
-
peg$fail(peg$
|
|
2387
|
+
peg$fail(peg$e20);
|
|
2271
2388
|
}
|
|
2272
2389
|
}
|
|
2273
2390
|
if (s1 !== peg$FAILED) {
|
|
@@ -2334,7 +2451,7 @@ function peg$parse(input, options) {
|
|
|
2334
2451
|
s3 = peg$parseBlockTag();
|
|
2335
2452
|
if (s3 !== peg$FAILED) {
|
|
2336
2453
|
peg$savedPos = s0;
|
|
2337
|
-
s0 = peg$
|
|
2454
|
+
s0 = peg$f36(s2);
|
|
2338
2455
|
}
|
|
2339
2456
|
else {
|
|
2340
2457
|
peg$currPos = s0;
|
|
@@ -2348,19 +2465,19 @@ function peg$parse(input, options) {
|
|
|
2348
2465
|
if (s0 === peg$FAILED) {
|
|
2349
2466
|
s0 = peg$currPos;
|
|
2350
2467
|
if (input.charCodeAt(peg$currPos) === 64) {
|
|
2351
|
-
s1 = peg$
|
|
2468
|
+
s1 = peg$c18;
|
|
2352
2469
|
peg$currPos++;
|
|
2353
2470
|
}
|
|
2354
2471
|
else {
|
|
2355
2472
|
s1 = peg$FAILED;
|
|
2356
2473
|
if (peg$silentFails === 0) {
|
|
2357
|
-
peg$fail(peg$
|
|
2474
|
+
peg$fail(peg$e21);
|
|
2358
2475
|
}
|
|
2359
2476
|
}
|
|
2360
2477
|
if (s1 === peg$FAILED) {
|
|
2361
2478
|
s1 = null;
|
|
2362
2479
|
}
|
|
2363
|
-
s2 = peg$
|
|
2480
|
+
s2 = peg$parseMediaSizeTags();
|
|
2364
2481
|
if (s2 !== peg$FAILED) {
|
|
2365
2482
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
2366
2483
|
s3 = peg$c1;
|
|
@@ -2375,25 +2492,25 @@ function peg$parse(input, options) {
|
|
|
2375
2492
|
if (s3 !== peg$FAILED) {
|
|
2376
2493
|
s4 = [];
|
|
2377
2494
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
2378
|
-
s5 = peg$
|
|
2495
|
+
s5 = peg$c16;
|
|
2379
2496
|
peg$currPos++;
|
|
2380
2497
|
}
|
|
2381
2498
|
else {
|
|
2382
2499
|
s5 = peg$FAILED;
|
|
2383
2500
|
if (peg$silentFails === 0) {
|
|
2384
|
-
peg$fail(peg$
|
|
2501
|
+
peg$fail(peg$e19);
|
|
2385
2502
|
}
|
|
2386
2503
|
}
|
|
2387
2504
|
while (s5 !== peg$FAILED) {
|
|
2388
2505
|
s4.push(s5);
|
|
2389
2506
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
2390
|
-
s5 = peg$
|
|
2507
|
+
s5 = peg$c16;
|
|
2391
2508
|
peg$currPos++;
|
|
2392
2509
|
}
|
|
2393
2510
|
else {
|
|
2394
2511
|
s5 = peg$FAILED;
|
|
2395
2512
|
if (peg$silentFails === 0) {
|
|
2396
|
-
peg$fail(peg$
|
|
2513
|
+
peg$fail(peg$e19);
|
|
2397
2514
|
}
|
|
2398
2515
|
}
|
|
2399
2516
|
}
|
|
@@ -2419,7 +2536,7 @@ function peg$parse(input, options) {
|
|
|
2419
2536
|
else {
|
|
2420
2537
|
s9 = peg$FAILED;
|
|
2421
2538
|
if (peg$silentFails === 0) {
|
|
2422
|
-
peg$fail(peg$
|
|
2539
|
+
peg$fail(peg$e22);
|
|
2423
2540
|
}
|
|
2424
2541
|
}
|
|
2425
2542
|
if (s9 !== peg$FAILED) {
|
|
@@ -2458,7 +2575,7 @@ function peg$parse(input, options) {
|
|
|
2458
2575
|
else {
|
|
2459
2576
|
s9 = peg$FAILED;
|
|
2460
2577
|
if (peg$silentFails === 0) {
|
|
2461
|
-
peg$fail(peg$
|
|
2578
|
+
peg$fail(peg$e22);
|
|
2462
2579
|
}
|
|
2463
2580
|
}
|
|
2464
2581
|
if (s9 !== peg$FAILED) {
|
|
@@ -2489,7 +2606,7 @@ function peg$parse(input, options) {
|
|
|
2489
2606
|
s6 = peg$parseBlockTag();
|
|
2490
2607
|
if (s6 !== peg$FAILED) {
|
|
2491
2608
|
peg$savedPos = s0;
|
|
2492
|
-
s0 = peg$
|
|
2609
|
+
s0 = peg$f37(s2, s5);
|
|
2493
2610
|
}
|
|
2494
2611
|
else {
|
|
2495
2612
|
peg$currPos = s0;
|
|
@@ -2513,19 +2630,19 @@ function peg$parse(input, options) {
|
|
|
2513
2630
|
if (s0 === peg$FAILED) {
|
|
2514
2631
|
s0 = peg$currPos;
|
|
2515
2632
|
if (input.charCodeAt(peg$currPos) === 64) {
|
|
2516
|
-
s1 = peg$
|
|
2633
|
+
s1 = peg$c18;
|
|
2517
2634
|
peg$currPos++;
|
|
2518
2635
|
}
|
|
2519
2636
|
else {
|
|
2520
2637
|
s1 = peg$FAILED;
|
|
2521
2638
|
if (peg$silentFails === 0) {
|
|
2522
|
-
peg$fail(peg$
|
|
2639
|
+
peg$fail(peg$e21);
|
|
2523
2640
|
}
|
|
2524
2641
|
}
|
|
2525
2642
|
if (s1 === peg$FAILED) {
|
|
2526
2643
|
s1 = null;
|
|
2527
2644
|
}
|
|
2528
|
-
s2 = peg$
|
|
2645
|
+
s2 = peg$parseMediaSizeTags();
|
|
2529
2646
|
if (s2 !== peg$FAILED) {
|
|
2530
2647
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
2531
2648
|
s3 = peg$c1;
|
|
@@ -2540,25 +2657,25 @@ function peg$parse(input, options) {
|
|
|
2540
2657
|
if (s3 !== peg$FAILED) {
|
|
2541
2658
|
s4 = [];
|
|
2542
2659
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
2543
|
-
s5 = peg$
|
|
2660
|
+
s5 = peg$c16;
|
|
2544
2661
|
peg$currPos++;
|
|
2545
2662
|
}
|
|
2546
2663
|
else {
|
|
2547
2664
|
s5 = peg$FAILED;
|
|
2548
2665
|
if (peg$silentFails === 0) {
|
|
2549
|
-
peg$fail(peg$
|
|
2666
|
+
peg$fail(peg$e19);
|
|
2550
2667
|
}
|
|
2551
2668
|
}
|
|
2552
2669
|
while (s5 !== peg$FAILED) {
|
|
2553
2670
|
s4.push(s5);
|
|
2554
2671
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
2555
|
-
s5 = peg$
|
|
2672
|
+
s5 = peg$c16;
|
|
2556
2673
|
peg$currPos++;
|
|
2557
2674
|
}
|
|
2558
2675
|
else {
|
|
2559
2676
|
s5 = peg$FAILED;
|
|
2560
2677
|
if (peg$silentFails === 0) {
|
|
2561
|
-
peg$fail(peg$
|
|
2678
|
+
peg$fail(peg$e19);
|
|
2562
2679
|
}
|
|
2563
2680
|
}
|
|
2564
2681
|
}
|
|
@@ -2625,7 +2742,7 @@ function peg$parse(input, options) {
|
|
|
2625
2742
|
s6 = peg$parseBlockTag();
|
|
2626
2743
|
if (s6 !== peg$FAILED) {
|
|
2627
2744
|
peg$savedPos = s0;
|
|
2628
|
-
s0 = peg$
|
|
2745
|
+
s0 = peg$f38(s2, s5);
|
|
2629
2746
|
}
|
|
2630
2747
|
else {
|
|
2631
2748
|
peg$currPos = s0;
|
|
@@ -2644,13 +2761,13 @@ function peg$parse(input, options) {
|
|
|
2644
2761
|
if (s0 === peg$FAILED) {
|
|
2645
2762
|
s0 = peg$currPos;
|
|
2646
2763
|
if (input.charCodeAt(peg$currPos) === 64) {
|
|
2647
|
-
s1 = peg$
|
|
2764
|
+
s1 = peg$c18;
|
|
2648
2765
|
peg$currPos++;
|
|
2649
2766
|
}
|
|
2650
2767
|
else {
|
|
2651
2768
|
s1 = peg$FAILED;
|
|
2652
2769
|
if (peg$silentFails === 0) {
|
|
2653
|
-
peg$fail(peg$
|
|
2770
|
+
peg$fail(peg$e21);
|
|
2654
2771
|
}
|
|
2655
2772
|
}
|
|
2656
2773
|
if (s1 === peg$FAILED) {
|
|
@@ -2752,13 +2869,13 @@ function peg$parse(input, options) {
|
|
|
2752
2869
|
}
|
|
2753
2870
|
if (s3 !== peg$FAILED) {
|
|
2754
2871
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
2755
|
-
s4 = peg$
|
|
2872
|
+
s4 = peg$c16;
|
|
2756
2873
|
peg$currPos++;
|
|
2757
2874
|
}
|
|
2758
2875
|
else {
|
|
2759
2876
|
s4 = peg$FAILED;
|
|
2760
2877
|
if (peg$silentFails === 0) {
|
|
2761
|
-
peg$fail(peg$
|
|
2878
|
+
peg$fail(peg$e19);
|
|
2762
2879
|
}
|
|
2763
2880
|
}
|
|
2764
2881
|
if (s4 === peg$FAILED) {
|
|
@@ -2827,7 +2944,7 @@ function peg$parse(input, options) {
|
|
|
2827
2944
|
s6 = peg$parseBlockTag();
|
|
2828
2945
|
if (s6 !== peg$FAILED) {
|
|
2829
2946
|
peg$savedPos = s0;
|
|
2830
|
-
s0 = peg$
|
|
2947
|
+
s0 = peg$f39(s2, s5);
|
|
2831
2948
|
}
|
|
2832
2949
|
else {
|
|
2833
2950
|
peg$currPos = s0;
|
|
@@ -2841,13 +2958,13 @@ function peg$parse(input, options) {
|
|
|
2841
2958
|
if (s0 === peg$FAILED) {
|
|
2842
2959
|
s0 = peg$currPos;
|
|
2843
2960
|
if (input.charCodeAt(peg$currPos) === 64) {
|
|
2844
|
-
s1 = peg$
|
|
2961
|
+
s1 = peg$c18;
|
|
2845
2962
|
peg$currPos++;
|
|
2846
2963
|
}
|
|
2847
2964
|
else {
|
|
2848
2965
|
s1 = peg$FAILED;
|
|
2849
2966
|
if (peg$silentFails === 0) {
|
|
2850
|
-
peg$fail(peg$
|
|
2967
|
+
peg$fail(peg$e21);
|
|
2851
2968
|
}
|
|
2852
2969
|
}
|
|
2853
2970
|
if (s1 === peg$FAILED) {
|
|
@@ -2916,7 +3033,7 @@ function peg$parse(input, options) {
|
|
|
2916
3033
|
s3 = peg$parseBlockTag();
|
|
2917
3034
|
if (s3 !== peg$FAILED) {
|
|
2918
3035
|
peg$savedPos = s0;
|
|
2919
|
-
s0 = peg$
|
|
3036
|
+
s0 = peg$f40(s2);
|
|
2920
3037
|
}
|
|
2921
3038
|
else {
|
|
2922
3039
|
peg$currPos = s0;
|
|
@@ -2928,27 +3045,27 @@ function peg$parse(input, options) {
|
|
|
2928
3045
|
}
|
|
2929
3046
|
return s0;
|
|
2930
3047
|
}
|
|
2931
|
-
function peg$
|
|
3048
|
+
function peg$parseMediaSizeTags() {
|
|
2932
3049
|
var s0;
|
|
2933
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
2934
|
-
s0 = peg$
|
|
3050
|
+
if (input.substr(peg$currPos, 5) === peg$c19) {
|
|
3051
|
+
s0 = peg$c19;
|
|
2935
3052
|
peg$currPos += 5;
|
|
2936
3053
|
}
|
|
2937
3054
|
else {
|
|
2938
3055
|
s0 = peg$FAILED;
|
|
2939
3056
|
if (peg$silentFails === 0) {
|
|
2940
|
-
peg$fail(peg$
|
|
3057
|
+
peg$fail(peg$e23);
|
|
2941
3058
|
}
|
|
2942
3059
|
}
|
|
2943
3060
|
if (s0 === peg$FAILED) {
|
|
2944
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
2945
|
-
s0 = peg$
|
|
3061
|
+
if (input.substr(peg$currPos, 6) === peg$c20) {
|
|
3062
|
+
s0 = peg$c20;
|
|
2946
3063
|
peg$currPos += 6;
|
|
2947
3064
|
}
|
|
2948
3065
|
else {
|
|
2949
3066
|
s0 = peg$FAILED;
|
|
2950
3067
|
if (peg$silentFails === 0) {
|
|
2951
|
-
peg$fail(peg$
|
|
3068
|
+
peg$fail(peg$e24);
|
|
2952
3069
|
}
|
|
2953
3070
|
}
|
|
2954
3071
|
}
|
|
@@ -2960,7 +3077,7 @@ function peg$parse(input, options) {
|
|
|
2960
3077
|
s0 = peg$currPos;
|
|
2961
3078
|
s1 = peg$parseInlineTags();
|
|
2962
3079
|
peg$savedPos = s0;
|
|
2963
|
-
s1 = peg$
|
|
3080
|
+
s1 = peg$f41(s1);
|
|
2964
3081
|
s0 = s1;
|
|
2965
3082
|
peg$silentFails--;
|
|
2966
3083
|
s1 = peg$FAILED;
|
|
@@ -2976,7 +3093,7 @@ function peg$parse(input, options) {
|
|
|
2976
3093
|
peg$silentFails--;
|
|
2977
3094
|
s1 = peg$FAILED;
|
|
2978
3095
|
if (peg$silentFails === 0) {
|
|
2979
|
-
peg$fail(peg$
|
|
3096
|
+
peg$fail(peg$e25);
|
|
2980
3097
|
}
|
|
2981
3098
|
return s0;
|
|
2982
3099
|
}
|
|
@@ -3000,7 +3117,7 @@ function peg$parse(input, options) {
|
|
|
3000
3117
|
}
|
|
3001
3118
|
}
|
|
3002
3119
|
peg$savedPos = s0;
|
|
3003
|
-
s0 = peg$
|
|
3120
|
+
s0 = peg$f42(s1, s2);
|
|
3004
3121
|
return s0;
|
|
3005
3122
|
}
|
|
3006
3123
|
function peg$parseInlinePlainText() {
|
|
@@ -3009,7 +3126,7 @@ function peg$parse(input, options) {
|
|
|
3009
3126
|
s1 = peg$parseNL();
|
|
3010
3127
|
if (s1 !== peg$FAILED) {
|
|
3011
3128
|
peg$savedPos = s0;
|
|
3012
|
-
s1 = peg$
|
|
3129
|
+
s1 = peg$f43();
|
|
3013
3130
|
}
|
|
3014
3131
|
s0 = s1;
|
|
3015
3132
|
if (s0 === peg$FAILED) {
|
|
@@ -3152,7 +3269,7 @@ function peg$parse(input, options) {
|
|
|
3152
3269
|
}
|
|
3153
3270
|
if (s1 !== peg$FAILED) {
|
|
3154
3271
|
peg$savedPos = s0;
|
|
3155
|
-
s1 = peg$
|
|
3272
|
+
s1 = peg$f44(s1);
|
|
3156
3273
|
}
|
|
3157
3274
|
s0 = s1;
|
|
3158
3275
|
}
|
|
@@ -3161,27 +3278,27 @@ function peg$parse(input, options) {
|
|
|
3161
3278
|
function peg$parseInlineHalfTag() {
|
|
3162
3279
|
var s0;
|
|
3163
3280
|
if (input.charCodeAt(peg$currPos) === 61) {
|
|
3164
|
-
s0 = peg$
|
|
3281
|
+
s0 = peg$c21;
|
|
3165
3282
|
peg$currPos++;
|
|
3166
3283
|
}
|
|
3167
3284
|
else {
|
|
3168
3285
|
s0 = peg$FAILED;
|
|
3169
3286
|
if (peg$silentFails === 0) {
|
|
3170
|
-
peg$fail(peg$
|
|
3287
|
+
peg$fail(peg$e26);
|
|
3171
3288
|
}
|
|
3172
3289
|
}
|
|
3173
3290
|
return s0;
|
|
3174
3291
|
}
|
|
3175
3292
|
function peg$parseInlineLaTexHalfTag() {
|
|
3176
3293
|
var s0;
|
|
3177
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
3178
|
-
s0 = peg$
|
|
3294
|
+
if (input.substr(peg$currPos, 2) === peg$c22) {
|
|
3295
|
+
s0 = peg$c22;
|
|
3179
3296
|
peg$currPos += 2;
|
|
3180
3297
|
}
|
|
3181
3298
|
else {
|
|
3182
3299
|
s0 = peg$FAILED;
|
|
3183
3300
|
if (peg$silentFails === 0) {
|
|
3184
|
-
peg$fail(peg$
|
|
3301
|
+
peg$fail(peg$e27);
|
|
3185
3302
|
}
|
|
3186
3303
|
}
|
|
3187
3304
|
return s0;
|
|
@@ -3242,7 +3359,7 @@ function peg$parse(input, options) {
|
|
|
3242
3359
|
else {
|
|
3243
3360
|
s4 = peg$FAILED;
|
|
3244
3361
|
if (peg$silentFails === 0) {
|
|
3245
|
-
peg$fail(peg$
|
|
3362
|
+
peg$fail(peg$e22);
|
|
3246
3363
|
}
|
|
3247
3364
|
}
|
|
3248
3365
|
if (s4 !== peg$FAILED) {
|
|
@@ -3255,7 +3372,7 @@ function peg$parse(input, options) {
|
|
|
3255
3372
|
else {
|
|
3256
3373
|
s4 = peg$FAILED;
|
|
3257
3374
|
if (peg$silentFails === 0) {
|
|
3258
|
-
peg$fail(peg$
|
|
3375
|
+
peg$fail(peg$e22);
|
|
3259
3376
|
}
|
|
3260
3377
|
}
|
|
3261
3378
|
}
|
|
@@ -3273,7 +3390,7 @@ function peg$parse(input, options) {
|
|
|
3273
3390
|
s3 = peg$parseBodyBitCloseTag();
|
|
3274
3391
|
if (s3 !== peg$FAILED) {
|
|
3275
3392
|
peg$savedPos = s0;
|
|
3276
|
-
s0 = peg$
|
|
3393
|
+
s0 = peg$f45(s2);
|
|
3277
3394
|
}
|
|
3278
3395
|
else {
|
|
3279
3396
|
peg$currPos = s0;
|
|
@@ -3294,13 +3411,13 @@ function peg$parse(input, options) {
|
|
|
3294
3411
|
s1 = peg$parseInlineTag();
|
|
3295
3412
|
if (s1 !== peg$FAILED) {
|
|
3296
3413
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3297
|
-
s2 = peg$
|
|
3414
|
+
s2 = peg$c16;
|
|
3298
3415
|
peg$currPos++;
|
|
3299
3416
|
}
|
|
3300
3417
|
else {
|
|
3301
3418
|
s2 = peg$FAILED;
|
|
3302
3419
|
if (peg$silentFails === 0) {
|
|
3303
|
-
peg$fail(peg$
|
|
3420
|
+
peg$fail(peg$e19);
|
|
3304
3421
|
}
|
|
3305
3422
|
}
|
|
3306
3423
|
if (s2 === peg$FAILED) {
|
|
@@ -3313,13 +3430,13 @@ function peg$parse(input, options) {
|
|
|
3313
3430
|
peg$silentFails++;
|
|
3314
3431
|
s7 = peg$currPos;
|
|
3315
3432
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3316
|
-
s8 = peg$
|
|
3433
|
+
s8 = peg$c16;
|
|
3317
3434
|
peg$currPos++;
|
|
3318
3435
|
}
|
|
3319
3436
|
else {
|
|
3320
3437
|
s8 = peg$FAILED;
|
|
3321
3438
|
if (peg$silentFails === 0) {
|
|
3322
|
-
peg$fail(peg$
|
|
3439
|
+
peg$fail(peg$e19);
|
|
3323
3440
|
}
|
|
3324
3441
|
}
|
|
3325
3442
|
if (s8 === peg$FAILED) {
|
|
@@ -3350,7 +3467,7 @@ function peg$parse(input, options) {
|
|
|
3350
3467
|
else {
|
|
3351
3468
|
s7 = peg$FAILED;
|
|
3352
3469
|
if (peg$silentFails === 0) {
|
|
3353
|
-
peg$fail(peg$
|
|
3470
|
+
peg$fail(peg$e16);
|
|
3354
3471
|
}
|
|
3355
3472
|
}
|
|
3356
3473
|
if (s7 !== peg$FAILED) {
|
|
@@ -3373,13 +3490,13 @@ function peg$parse(input, options) {
|
|
|
3373
3490
|
peg$silentFails++;
|
|
3374
3491
|
s7 = peg$currPos;
|
|
3375
3492
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3376
|
-
s8 = peg$
|
|
3493
|
+
s8 = peg$c16;
|
|
3377
3494
|
peg$currPos++;
|
|
3378
3495
|
}
|
|
3379
3496
|
else {
|
|
3380
3497
|
s8 = peg$FAILED;
|
|
3381
3498
|
if (peg$silentFails === 0) {
|
|
3382
|
-
peg$fail(peg$
|
|
3499
|
+
peg$fail(peg$e19);
|
|
3383
3500
|
}
|
|
3384
3501
|
}
|
|
3385
3502
|
if (s8 === peg$FAILED) {
|
|
@@ -3410,7 +3527,7 @@ function peg$parse(input, options) {
|
|
|
3410
3527
|
else {
|
|
3411
3528
|
s7 = peg$FAILED;
|
|
3412
3529
|
if (peg$silentFails === 0) {
|
|
3413
|
-
peg$fail(peg$
|
|
3530
|
+
peg$fail(peg$e16);
|
|
3414
3531
|
}
|
|
3415
3532
|
}
|
|
3416
3533
|
if (s7 !== peg$FAILED) {
|
|
@@ -3429,13 +3546,13 @@ function peg$parse(input, options) {
|
|
|
3429
3546
|
}
|
|
3430
3547
|
s3 = input.substring(s3, peg$currPos);
|
|
3431
3548
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3432
|
-
s4 = peg$
|
|
3549
|
+
s4 = peg$c16;
|
|
3433
3550
|
peg$currPos++;
|
|
3434
3551
|
}
|
|
3435
3552
|
else {
|
|
3436
3553
|
s4 = peg$FAILED;
|
|
3437
3554
|
if (peg$silentFails === 0) {
|
|
3438
|
-
peg$fail(peg$
|
|
3555
|
+
peg$fail(peg$e19);
|
|
3439
3556
|
}
|
|
3440
3557
|
}
|
|
3441
3558
|
if (s4 === peg$FAILED) {
|
|
@@ -3444,11 +3561,14 @@ function peg$parse(input, options) {
|
|
|
3444
3561
|
s5 = peg$parseInlineTag();
|
|
3445
3562
|
if (s5 !== peg$FAILED) {
|
|
3446
3563
|
s6 = peg$parseAttrChain();
|
|
3447
|
-
if (s6
|
|
3448
|
-
|
|
3564
|
+
if (s6 !== peg$FAILED) {
|
|
3565
|
+
peg$savedPos = s0;
|
|
3566
|
+
s0 = peg$f46(s3, s6);
|
|
3567
|
+
}
|
|
3568
|
+
else {
|
|
3569
|
+
peg$currPos = s0;
|
|
3570
|
+
s0 = peg$FAILED;
|
|
3449
3571
|
}
|
|
3450
|
-
peg$savedPos = s0;
|
|
3451
|
-
s0 = peg$f44(s3, s6);
|
|
3452
3572
|
}
|
|
3453
3573
|
else {
|
|
3454
3574
|
peg$currPos = s0;
|
|
@@ -3464,13 +3584,13 @@ function peg$parse(input, options) {
|
|
|
3464
3584
|
s1 = peg$parseBoldTag();
|
|
3465
3585
|
if (s1 !== peg$FAILED) {
|
|
3466
3586
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3467
|
-
s2 = peg$
|
|
3587
|
+
s2 = peg$c16;
|
|
3468
3588
|
peg$currPos++;
|
|
3469
3589
|
}
|
|
3470
3590
|
else {
|
|
3471
3591
|
s2 = peg$FAILED;
|
|
3472
3592
|
if (peg$silentFails === 0) {
|
|
3473
|
-
peg$fail(peg$
|
|
3593
|
+
peg$fail(peg$e19);
|
|
3474
3594
|
}
|
|
3475
3595
|
}
|
|
3476
3596
|
if (s2 === peg$FAILED) {
|
|
@@ -3483,13 +3603,13 @@ function peg$parse(input, options) {
|
|
|
3483
3603
|
peg$silentFails++;
|
|
3484
3604
|
s7 = peg$currPos;
|
|
3485
3605
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3486
|
-
s8 = peg$
|
|
3606
|
+
s8 = peg$c16;
|
|
3487
3607
|
peg$currPos++;
|
|
3488
3608
|
}
|
|
3489
3609
|
else {
|
|
3490
3610
|
s8 = peg$FAILED;
|
|
3491
3611
|
if (peg$silentFails === 0) {
|
|
3492
|
-
peg$fail(peg$
|
|
3612
|
+
peg$fail(peg$e19);
|
|
3493
3613
|
}
|
|
3494
3614
|
}
|
|
3495
3615
|
if (s8 === peg$FAILED) {
|
|
@@ -3520,7 +3640,7 @@ function peg$parse(input, options) {
|
|
|
3520
3640
|
else {
|
|
3521
3641
|
s7 = peg$FAILED;
|
|
3522
3642
|
if (peg$silentFails === 0) {
|
|
3523
|
-
peg$fail(peg$
|
|
3643
|
+
peg$fail(peg$e16);
|
|
3524
3644
|
}
|
|
3525
3645
|
}
|
|
3526
3646
|
if (s7 !== peg$FAILED) {
|
|
@@ -3543,13 +3663,13 @@ function peg$parse(input, options) {
|
|
|
3543
3663
|
peg$silentFails++;
|
|
3544
3664
|
s7 = peg$currPos;
|
|
3545
3665
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3546
|
-
s8 = peg$
|
|
3666
|
+
s8 = peg$c16;
|
|
3547
3667
|
peg$currPos++;
|
|
3548
3668
|
}
|
|
3549
3669
|
else {
|
|
3550
3670
|
s8 = peg$FAILED;
|
|
3551
3671
|
if (peg$silentFails === 0) {
|
|
3552
|
-
peg$fail(peg$
|
|
3672
|
+
peg$fail(peg$e19);
|
|
3553
3673
|
}
|
|
3554
3674
|
}
|
|
3555
3675
|
if (s8 === peg$FAILED) {
|
|
@@ -3580,7 +3700,7 @@ function peg$parse(input, options) {
|
|
|
3580
3700
|
else {
|
|
3581
3701
|
s7 = peg$FAILED;
|
|
3582
3702
|
if (peg$silentFails === 0) {
|
|
3583
|
-
peg$fail(peg$
|
|
3703
|
+
peg$fail(peg$e16);
|
|
3584
3704
|
}
|
|
3585
3705
|
}
|
|
3586
3706
|
if (s7 !== peg$FAILED) {
|
|
@@ -3599,13 +3719,13 @@ function peg$parse(input, options) {
|
|
|
3599
3719
|
}
|
|
3600
3720
|
s3 = input.substring(s3, peg$currPos);
|
|
3601
3721
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3602
|
-
s4 = peg$
|
|
3722
|
+
s4 = peg$c16;
|
|
3603
3723
|
peg$currPos++;
|
|
3604
3724
|
}
|
|
3605
3725
|
else {
|
|
3606
3726
|
s4 = peg$FAILED;
|
|
3607
3727
|
if (peg$silentFails === 0) {
|
|
3608
|
-
peg$fail(peg$
|
|
3728
|
+
peg$fail(peg$e19);
|
|
3609
3729
|
}
|
|
3610
3730
|
}
|
|
3611
3731
|
if (s4 === peg$FAILED) {
|
|
@@ -3614,7 +3734,7 @@ function peg$parse(input, options) {
|
|
|
3614
3734
|
s5 = peg$parseBoldTag();
|
|
3615
3735
|
if (s5 !== peg$FAILED) {
|
|
3616
3736
|
peg$savedPos = s0;
|
|
3617
|
-
s0 = peg$
|
|
3737
|
+
s0 = peg$f47(s3);
|
|
3618
3738
|
}
|
|
3619
3739
|
else {
|
|
3620
3740
|
peg$currPos = s0;
|
|
@@ -3630,13 +3750,13 @@ function peg$parse(input, options) {
|
|
|
3630
3750
|
s1 = peg$parseItalicTag();
|
|
3631
3751
|
if (s1 !== peg$FAILED) {
|
|
3632
3752
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3633
|
-
s2 = peg$
|
|
3753
|
+
s2 = peg$c16;
|
|
3634
3754
|
peg$currPos++;
|
|
3635
3755
|
}
|
|
3636
3756
|
else {
|
|
3637
3757
|
s2 = peg$FAILED;
|
|
3638
3758
|
if (peg$silentFails === 0) {
|
|
3639
|
-
peg$fail(peg$
|
|
3759
|
+
peg$fail(peg$e19);
|
|
3640
3760
|
}
|
|
3641
3761
|
}
|
|
3642
3762
|
if (s2 === peg$FAILED) {
|
|
@@ -3649,13 +3769,13 @@ function peg$parse(input, options) {
|
|
|
3649
3769
|
peg$silentFails++;
|
|
3650
3770
|
s7 = peg$currPos;
|
|
3651
3771
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3652
|
-
s8 = peg$
|
|
3772
|
+
s8 = peg$c16;
|
|
3653
3773
|
peg$currPos++;
|
|
3654
3774
|
}
|
|
3655
3775
|
else {
|
|
3656
3776
|
s8 = peg$FAILED;
|
|
3657
3777
|
if (peg$silentFails === 0) {
|
|
3658
|
-
peg$fail(peg$
|
|
3778
|
+
peg$fail(peg$e19);
|
|
3659
3779
|
}
|
|
3660
3780
|
}
|
|
3661
3781
|
if (s8 === peg$FAILED) {
|
|
@@ -3686,7 +3806,7 @@ function peg$parse(input, options) {
|
|
|
3686
3806
|
else {
|
|
3687
3807
|
s7 = peg$FAILED;
|
|
3688
3808
|
if (peg$silentFails === 0) {
|
|
3689
|
-
peg$fail(peg$
|
|
3809
|
+
peg$fail(peg$e16);
|
|
3690
3810
|
}
|
|
3691
3811
|
}
|
|
3692
3812
|
if (s7 !== peg$FAILED) {
|
|
@@ -3709,13 +3829,13 @@ function peg$parse(input, options) {
|
|
|
3709
3829
|
peg$silentFails++;
|
|
3710
3830
|
s7 = peg$currPos;
|
|
3711
3831
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3712
|
-
s8 = peg$
|
|
3832
|
+
s8 = peg$c16;
|
|
3713
3833
|
peg$currPos++;
|
|
3714
3834
|
}
|
|
3715
3835
|
else {
|
|
3716
3836
|
s8 = peg$FAILED;
|
|
3717
3837
|
if (peg$silentFails === 0) {
|
|
3718
|
-
peg$fail(peg$
|
|
3838
|
+
peg$fail(peg$e19);
|
|
3719
3839
|
}
|
|
3720
3840
|
}
|
|
3721
3841
|
if (s8 === peg$FAILED) {
|
|
@@ -3746,7 +3866,7 @@ function peg$parse(input, options) {
|
|
|
3746
3866
|
else {
|
|
3747
3867
|
s7 = peg$FAILED;
|
|
3748
3868
|
if (peg$silentFails === 0) {
|
|
3749
|
-
peg$fail(peg$
|
|
3869
|
+
peg$fail(peg$e16);
|
|
3750
3870
|
}
|
|
3751
3871
|
}
|
|
3752
3872
|
if (s7 !== peg$FAILED) {
|
|
@@ -3765,13 +3885,13 @@ function peg$parse(input, options) {
|
|
|
3765
3885
|
}
|
|
3766
3886
|
s3 = input.substring(s3, peg$currPos);
|
|
3767
3887
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3768
|
-
s4 = peg$
|
|
3888
|
+
s4 = peg$c16;
|
|
3769
3889
|
peg$currPos++;
|
|
3770
3890
|
}
|
|
3771
3891
|
else {
|
|
3772
3892
|
s4 = peg$FAILED;
|
|
3773
3893
|
if (peg$silentFails === 0) {
|
|
3774
|
-
peg$fail(peg$
|
|
3894
|
+
peg$fail(peg$e19);
|
|
3775
3895
|
}
|
|
3776
3896
|
}
|
|
3777
3897
|
if (s4 === peg$FAILED) {
|
|
@@ -3780,7 +3900,7 @@ function peg$parse(input, options) {
|
|
|
3780
3900
|
s5 = peg$parseItalicTag();
|
|
3781
3901
|
if (s5 !== peg$FAILED) {
|
|
3782
3902
|
peg$savedPos = s0;
|
|
3783
|
-
s0 = peg$
|
|
3903
|
+
s0 = peg$f48(s3);
|
|
3784
3904
|
}
|
|
3785
3905
|
else {
|
|
3786
3906
|
peg$currPos = s0;
|
|
@@ -3796,13 +3916,13 @@ function peg$parse(input, options) {
|
|
|
3796
3916
|
s1 = peg$parseLightTag();
|
|
3797
3917
|
if (s1 !== peg$FAILED) {
|
|
3798
3918
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3799
|
-
s2 = peg$
|
|
3919
|
+
s2 = peg$c16;
|
|
3800
3920
|
peg$currPos++;
|
|
3801
3921
|
}
|
|
3802
3922
|
else {
|
|
3803
3923
|
s2 = peg$FAILED;
|
|
3804
3924
|
if (peg$silentFails === 0) {
|
|
3805
|
-
peg$fail(peg$
|
|
3925
|
+
peg$fail(peg$e19);
|
|
3806
3926
|
}
|
|
3807
3927
|
}
|
|
3808
3928
|
if (s2 === peg$FAILED) {
|
|
@@ -3815,13 +3935,13 @@ function peg$parse(input, options) {
|
|
|
3815
3935
|
peg$silentFails++;
|
|
3816
3936
|
s7 = peg$currPos;
|
|
3817
3937
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3818
|
-
s8 = peg$
|
|
3938
|
+
s8 = peg$c16;
|
|
3819
3939
|
peg$currPos++;
|
|
3820
3940
|
}
|
|
3821
3941
|
else {
|
|
3822
3942
|
s8 = peg$FAILED;
|
|
3823
3943
|
if (peg$silentFails === 0) {
|
|
3824
|
-
peg$fail(peg$
|
|
3944
|
+
peg$fail(peg$e19);
|
|
3825
3945
|
}
|
|
3826
3946
|
}
|
|
3827
3947
|
if (s8 === peg$FAILED) {
|
|
@@ -3852,7 +3972,7 @@ function peg$parse(input, options) {
|
|
|
3852
3972
|
else {
|
|
3853
3973
|
s7 = peg$FAILED;
|
|
3854
3974
|
if (peg$silentFails === 0) {
|
|
3855
|
-
peg$fail(peg$
|
|
3975
|
+
peg$fail(peg$e16);
|
|
3856
3976
|
}
|
|
3857
3977
|
}
|
|
3858
3978
|
if (s7 !== peg$FAILED) {
|
|
@@ -3875,13 +3995,13 @@ function peg$parse(input, options) {
|
|
|
3875
3995
|
peg$silentFails++;
|
|
3876
3996
|
s7 = peg$currPos;
|
|
3877
3997
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3878
|
-
s8 = peg$
|
|
3998
|
+
s8 = peg$c16;
|
|
3879
3999
|
peg$currPos++;
|
|
3880
4000
|
}
|
|
3881
4001
|
else {
|
|
3882
4002
|
s8 = peg$FAILED;
|
|
3883
4003
|
if (peg$silentFails === 0) {
|
|
3884
|
-
peg$fail(peg$
|
|
4004
|
+
peg$fail(peg$e19);
|
|
3885
4005
|
}
|
|
3886
4006
|
}
|
|
3887
4007
|
if (s8 === peg$FAILED) {
|
|
@@ -3912,7 +4032,7 @@ function peg$parse(input, options) {
|
|
|
3912
4032
|
else {
|
|
3913
4033
|
s7 = peg$FAILED;
|
|
3914
4034
|
if (peg$silentFails === 0) {
|
|
3915
|
-
peg$fail(peg$
|
|
4035
|
+
peg$fail(peg$e16);
|
|
3916
4036
|
}
|
|
3917
4037
|
}
|
|
3918
4038
|
if (s7 !== peg$FAILED) {
|
|
@@ -3931,13 +4051,13 @@ function peg$parse(input, options) {
|
|
|
3931
4051
|
}
|
|
3932
4052
|
s3 = input.substring(s3, peg$currPos);
|
|
3933
4053
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3934
|
-
s4 = peg$
|
|
4054
|
+
s4 = peg$c16;
|
|
3935
4055
|
peg$currPos++;
|
|
3936
4056
|
}
|
|
3937
4057
|
else {
|
|
3938
4058
|
s4 = peg$FAILED;
|
|
3939
4059
|
if (peg$silentFails === 0) {
|
|
3940
|
-
peg$fail(peg$
|
|
4060
|
+
peg$fail(peg$e19);
|
|
3941
4061
|
}
|
|
3942
4062
|
}
|
|
3943
4063
|
if (s4 === peg$FAILED) {
|
|
@@ -3946,7 +4066,7 @@ function peg$parse(input, options) {
|
|
|
3946
4066
|
s5 = peg$parseLightTag();
|
|
3947
4067
|
if (s5 !== peg$FAILED) {
|
|
3948
4068
|
peg$savedPos = s0;
|
|
3949
|
-
s0 = peg$
|
|
4069
|
+
s0 = peg$f49(s3);
|
|
3950
4070
|
}
|
|
3951
4071
|
else {
|
|
3952
4072
|
peg$currPos = s0;
|
|
@@ -3962,13 +4082,13 @@ function peg$parse(input, options) {
|
|
|
3962
4082
|
s1 = peg$parseHighlightTag();
|
|
3963
4083
|
if (s1 !== peg$FAILED) {
|
|
3964
4084
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3965
|
-
s2 = peg$
|
|
4085
|
+
s2 = peg$c16;
|
|
3966
4086
|
peg$currPos++;
|
|
3967
4087
|
}
|
|
3968
4088
|
else {
|
|
3969
4089
|
s2 = peg$FAILED;
|
|
3970
4090
|
if (peg$silentFails === 0) {
|
|
3971
|
-
peg$fail(peg$
|
|
4091
|
+
peg$fail(peg$e19);
|
|
3972
4092
|
}
|
|
3973
4093
|
}
|
|
3974
4094
|
if (s2 === peg$FAILED) {
|
|
@@ -3981,13 +4101,13 @@ function peg$parse(input, options) {
|
|
|
3981
4101
|
peg$silentFails++;
|
|
3982
4102
|
s7 = peg$currPos;
|
|
3983
4103
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3984
|
-
s8 = peg$
|
|
4104
|
+
s8 = peg$c16;
|
|
3985
4105
|
peg$currPos++;
|
|
3986
4106
|
}
|
|
3987
4107
|
else {
|
|
3988
4108
|
s8 = peg$FAILED;
|
|
3989
4109
|
if (peg$silentFails === 0) {
|
|
3990
|
-
peg$fail(peg$
|
|
4110
|
+
peg$fail(peg$e19);
|
|
3991
4111
|
}
|
|
3992
4112
|
}
|
|
3993
4113
|
if (s8 === peg$FAILED) {
|
|
@@ -4018,7 +4138,7 @@ function peg$parse(input, options) {
|
|
|
4018
4138
|
else {
|
|
4019
4139
|
s7 = peg$FAILED;
|
|
4020
4140
|
if (peg$silentFails === 0) {
|
|
4021
|
-
peg$fail(peg$
|
|
4141
|
+
peg$fail(peg$e16);
|
|
4022
4142
|
}
|
|
4023
4143
|
}
|
|
4024
4144
|
if (s7 !== peg$FAILED) {
|
|
@@ -4041,13 +4161,13 @@ function peg$parse(input, options) {
|
|
|
4041
4161
|
peg$silentFails++;
|
|
4042
4162
|
s7 = peg$currPos;
|
|
4043
4163
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
4044
|
-
s8 = peg$
|
|
4164
|
+
s8 = peg$c16;
|
|
4045
4165
|
peg$currPos++;
|
|
4046
4166
|
}
|
|
4047
4167
|
else {
|
|
4048
4168
|
s8 = peg$FAILED;
|
|
4049
4169
|
if (peg$silentFails === 0) {
|
|
4050
|
-
peg$fail(peg$
|
|
4170
|
+
peg$fail(peg$e19);
|
|
4051
4171
|
}
|
|
4052
4172
|
}
|
|
4053
4173
|
if (s8 === peg$FAILED) {
|
|
@@ -4078,7 +4198,7 @@ function peg$parse(input, options) {
|
|
|
4078
4198
|
else {
|
|
4079
4199
|
s7 = peg$FAILED;
|
|
4080
4200
|
if (peg$silentFails === 0) {
|
|
4081
|
-
peg$fail(peg$
|
|
4201
|
+
peg$fail(peg$e16);
|
|
4082
4202
|
}
|
|
4083
4203
|
}
|
|
4084
4204
|
if (s7 !== peg$FAILED) {
|
|
@@ -4097,13 +4217,13 @@ function peg$parse(input, options) {
|
|
|
4097
4217
|
}
|
|
4098
4218
|
s3 = input.substring(s3, peg$currPos);
|
|
4099
4219
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
4100
|
-
s4 = peg$
|
|
4220
|
+
s4 = peg$c16;
|
|
4101
4221
|
peg$currPos++;
|
|
4102
4222
|
}
|
|
4103
4223
|
else {
|
|
4104
4224
|
s4 = peg$FAILED;
|
|
4105
4225
|
if (peg$silentFails === 0) {
|
|
4106
|
-
peg$fail(peg$
|
|
4226
|
+
peg$fail(peg$e19);
|
|
4107
4227
|
}
|
|
4108
4228
|
}
|
|
4109
4229
|
if (s4 === peg$FAILED) {
|
|
@@ -4112,7 +4232,7 @@ function peg$parse(input, options) {
|
|
|
4112
4232
|
s5 = peg$parseHighlightTag();
|
|
4113
4233
|
if (s5 !== peg$FAILED) {
|
|
4114
4234
|
peg$savedPos = s0;
|
|
4115
|
-
s0 = peg$
|
|
4235
|
+
s0 = peg$f50(s3);
|
|
4116
4236
|
}
|
|
4117
4237
|
else {
|
|
4118
4238
|
peg$currPos = s0;
|
|
@@ -4128,7 +4248,7 @@ function peg$parse(input, options) {
|
|
|
4128
4248
|
s1 = peg$parseUrl();
|
|
4129
4249
|
if (s1 !== peg$FAILED) {
|
|
4130
4250
|
peg$savedPos = s0;
|
|
4131
|
-
s1 = peg$
|
|
4251
|
+
s1 = peg$f51(s1);
|
|
4132
4252
|
}
|
|
4133
4253
|
s0 = s1;
|
|
4134
4254
|
}
|
|
@@ -4301,12 +4421,23 @@ function peg$parse(input, options) {
|
|
|
4301
4421
|
if (s1 !== peg$FAILED) {
|
|
4302
4422
|
s2 = [];
|
|
4303
4423
|
s3 = peg$parseAttrChainItem();
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4424
|
+
if (s3 !== peg$FAILED) {
|
|
4425
|
+
while (s3 !== peg$FAILED) {
|
|
4426
|
+
s2.push(s3);
|
|
4427
|
+
s3 = peg$parseAttrChainItem();
|
|
4428
|
+
}
|
|
4429
|
+
}
|
|
4430
|
+
else {
|
|
4431
|
+
s2 = peg$FAILED;
|
|
4432
|
+
}
|
|
4433
|
+
if (s2 !== peg$FAILED) {
|
|
4434
|
+
peg$savedPos = s0;
|
|
4435
|
+
s0 = peg$f52(s2);
|
|
4436
|
+
}
|
|
4437
|
+
else {
|
|
4438
|
+
peg$currPos = s0;
|
|
4439
|
+
s0 = peg$FAILED;
|
|
4307
4440
|
}
|
|
4308
|
-
peg$savedPos = s0;
|
|
4309
|
-
s0 = peg$f50(s2);
|
|
4310
4441
|
}
|
|
4311
4442
|
else {
|
|
4312
4443
|
peg$currPos = s0;
|
|
@@ -4315,16 +4446,16 @@ function peg$parse(input, options) {
|
|
|
4315
4446
|
return s0;
|
|
4316
4447
|
}
|
|
4317
4448
|
function peg$parseAttrChainItem() {
|
|
4318
|
-
var s0, s1, s2, s3, s4, s5, s6;
|
|
4449
|
+
var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
|
|
4319
4450
|
s0 = peg$currPos;
|
|
4320
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
4321
|
-
s1 = peg$
|
|
4451
|
+
if (input.substr(peg$currPos, 5) === peg$c23) {
|
|
4452
|
+
s1 = peg$c23;
|
|
4322
4453
|
peg$currPos += 5;
|
|
4323
4454
|
}
|
|
4324
4455
|
else {
|
|
4325
4456
|
s1 = peg$FAILED;
|
|
4326
4457
|
if (peg$silentFails === 0) {
|
|
4327
|
-
peg$fail(peg$
|
|
4458
|
+
peg$fail(peg$e28);
|
|
4328
4459
|
}
|
|
4329
4460
|
}
|
|
4330
4461
|
if (s1 !== peg$FAILED) {
|
|
@@ -4391,7 +4522,7 @@ function peg$parse(input, options) {
|
|
|
4391
4522
|
s3 = peg$parseBlockTag();
|
|
4392
4523
|
if (s3 !== peg$FAILED) {
|
|
4393
4524
|
peg$savedPos = s0;
|
|
4394
|
-
s0 = peg$
|
|
4525
|
+
s0 = peg$f53(s2);
|
|
4395
4526
|
}
|
|
4396
4527
|
else {
|
|
4397
4528
|
peg$currPos = s0;
|
|
@@ -4404,14 +4535,14 @@ function peg$parse(input, options) {
|
|
|
4404
4535
|
}
|
|
4405
4536
|
if (s0 === peg$FAILED) {
|
|
4406
4537
|
s0 = peg$currPos;
|
|
4407
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4408
|
-
s1 = peg$
|
|
4538
|
+
if (input.substr(peg$currPos, 4) === peg$c24) {
|
|
4539
|
+
s1 = peg$c24;
|
|
4409
4540
|
peg$currPos += 4;
|
|
4410
4541
|
}
|
|
4411
4542
|
else {
|
|
4412
4543
|
s1 = peg$FAILED;
|
|
4413
4544
|
if (peg$silentFails === 0) {
|
|
4414
|
-
peg$fail(peg$
|
|
4545
|
+
peg$fail(peg$e29);
|
|
4415
4546
|
}
|
|
4416
4547
|
}
|
|
4417
4548
|
if (s1 !== peg$FAILED) {
|
|
@@ -4478,7 +4609,7 @@ function peg$parse(input, options) {
|
|
|
4478
4609
|
s3 = peg$parseBlockTag();
|
|
4479
4610
|
if (s3 !== peg$FAILED) {
|
|
4480
4611
|
peg$savedPos = s0;
|
|
4481
|
-
s0 = peg$
|
|
4612
|
+
s0 = peg$f54(s2);
|
|
4482
4613
|
}
|
|
4483
4614
|
else {
|
|
4484
4615
|
peg$currPos = s0;
|
|
@@ -4505,7 +4636,7 @@ function peg$parse(input, options) {
|
|
|
4505
4636
|
s2 = peg$parseBlockTag();
|
|
4506
4637
|
if (s2 !== peg$FAILED) {
|
|
4507
4638
|
peg$savedPos = s0;
|
|
4508
|
-
s0 = peg$
|
|
4639
|
+
s0 = peg$f55();
|
|
4509
4640
|
}
|
|
4510
4641
|
else {
|
|
4511
4642
|
peg$currPos = s0;
|
|
@@ -4518,14 +4649,14 @@ function peg$parse(input, options) {
|
|
|
4518
4649
|
}
|
|
4519
4650
|
if (s0 === peg$FAILED) {
|
|
4520
4651
|
s0 = peg$currPos;
|
|
4521
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
4522
|
-
s1 = peg$
|
|
4652
|
+
if (input.substr(peg$currPos, 5) === peg$c25) {
|
|
4653
|
+
s1 = peg$c25;
|
|
4523
4654
|
peg$currPos += 5;
|
|
4524
4655
|
}
|
|
4525
4656
|
else {
|
|
4526
4657
|
s1 = peg$FAILED;
|
|
4527
4658
|
if (peg$silentFails === 0) {
|
|
4528
|
-
peg$fail(peg$
|
|
4659
|
+
peg$fail(peg$e30);
|
|
4529
4660
|
}
|
|
4530
4661
|
}
|
|
4531
4662
|
if (s1 !== peg$FAILED) {
|
|
@@ -4592,7 +4723,7 @@ function peg$parse(input, options) {
|
|
|
4592
4723
|
s3 = peg$parseBlockTag();
|
|
4593
4724
|
if (s3 !== peg$FAILED) {
|
|
4594
4725
|
peg$savedPos = s0;
|
|
4595
|
-
s0 = peg$
|
|
4726
|
+
s0 = peg$f56(s2);
|
|
4596
4727
|
}
|
|
4597
4728
|
else {
|
|
4598
4729
|
peg$currPos = s0;
|
|
@@ -4605,28 +4736,21 @@ function peg$parse(input, options) {
|
|
|
4605
4736
|
}
|
|
4606
4737
|
if (s0 === peg$FAILED) {
|
|
4607
4738
|
s0 = peg$currPos;
|
|
4608
|
-
if (input.substr(peg$currPos,
|
|
4609
|
-
s1 = peg$
|
|
4610
|
-
peg$currPos +=
|
|
4739
|
+
if (input.substr(peg$currPos, 5) === peg$c26) {
|
|
4740
|
+
s1 = peg$c26;
|
|
4741
|
+
peg$currPos += 5;
|
|
4611
4742
|
}
|
|
4612
4743
|
else {
|
|
4613
4744
|
s1 = peg$FAILED;
|
|
4614
4745
|
if (peg$silentFails === 0) {
|
|
4615
|
-
peg$fail(peg$
|
|
4746
|
+
peg$fail(peg$e31);
|
|
4616
4747
|
}
|
|
4617
4748
|
}
|
|
4618
4749
|
if (s1 !== peg$FAILED) {
|
|
4619
|
-
s2 = peg$
|
|
4750
|
+
s2 = peg$parseBlockTag();
|
|
4620
4751
|
if (s2 !== peg$FAILED) {
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
peg$savedPos = s0;
|
|
4624
|
-
s0 = peg$f55(s2);
|
|
4625
|
-
}
|
|
4626
|
-
else {
|
|
4627
|
-
peg$currPos = s0;
|
|
4628
|
-
s0 = peg$FAILED;
|
|
4629
|
-
}
|
|
4752
|
+
peg$savedPos = s0;
|
|
4753
|
+
s0 = peg$f57();
|
|
4630
4754
|
}
|
|
4631
4755
|
else {
|
|
4632
4756
|
peg$currPos = s0;
|
|
@@ -4639,37 +4763,48 @@ function peg$parse(input, options) {
|
|
|
4639
4763
|
}
|
|
4640
4764
|
if (s0 === peg$FAILED) {
|
|
4641
4765
|
s0 = peg$currPos;
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
if (s2 !== peg$FAILED) {
|
|
4646
|
-
peg$savedPos = s0;
|
|
4647
|
-
s0 = peg$f56(s1);
|
|
4648
|
-
}
|
|
4649
|
-
else {
|
|
4650
|
-
peg$currPos = s0;
|
|
4651
|
-
s0 = peg$FAILED;
|
|
4652
|
-
}
|
|
4766
|
+
if (input.substr(peg$currPos, 6) === peg$c27) {
|
|
4767
|
+
s1 = peg$c27;
|
|
4768
|
+
peg$currPos += 6;
|
|
4653
4769
|
}
|
|
4654
4770
|
else {
|
|
4655
|
-
|
|
4656
|
-
|
|
4771
|
+
s1 = peg$FAILED;
|
|
4772
|
+
if (peg$silentFails === 0) {
|
|
4773
|
+
peg$fail(peg$e32);
|
|
4774
|
+
}
|
|
4657
4775
|
}
|
|
4658
|
-
if (
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4776
|
+
if (s1 !== peg$FAILED) {
|
|
4777
|
+
s2 = peg$currPos;
|
|
4778
|
+
s3 = [];
|
|
4779
|
+
s4 = peg$currPos;
|
|
4780
|
+
s5 = peg$currPos;
|
|
4781
|
+
peg$silentFails++;
|
|
4782
|
+
s6 = peg$parseBlockTag();
|
|
4783
|
+
peg$silentFails--;
|
|
4784
|
+
if (s6 === peg$FAILED) {
|
|
4785
|
+
s5 = undefined;
|
|
4663
4786
|
}
|
|
4664
4787
|
else {
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4788
|
+
peg$currPos = s5;
|
|
4789
|
+
s5 = peg$FAILED;
|
|
4790
|
+
}
|
|
4791
|
+
if (s5 !== peg$FAILED) {
|
|
4792
|
+
s6 = peg$parsechar();
|
|
4793
|
+
if (s6 !== peg$FAILED) {
|
|
4794
|
+
s5 = [s5, s6];
|
|
4795
|
+
s4 = s5;
|
|
4796
|
+
}
|
|
4797
|
+
else {
|
|
4798
|
+
peg$currPos = s4;
|
|
4799
|
+
s4 = peg$FAILED;
|
|
4668
4800
|
}
|
|
4669
4801
|
}
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4802
|
+
else {
|
|
4803
|
+
peg$currPos = s4;
|
|
4804
|
+
s4 = peg$FAILED;
|
|
4805
|
+
}
|
|
4806
|
+
while (s4 !== peg$FAILED) {
|
|
4807
|
+
s3.push(s4);
|
|
4673
4808
|
s4 = peg$currPos;
|
|
4674
4809
|
s5 = peg$currPos;
|
|
4675
4810
|
peg$silentFails++;
|
|
@@ -4697,41 +4832,131 @@ function peg$parse(input, options) {
|
|
|
4697
4832
|
peg$currPos = s4;
|
|
4698
4833
|
s4 = peg$FAILED;
|
|
4699
4834
|
}
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4835
|
+
}
|
|
4836
|
+
s2 = input.substring(s2, peg$currPos);
|
|
4837
|
+
s3 = peg$parseBlockTag();
|
|
4838
|
+
if (s3 !== peg$FAILED) {
|
|
4839
|
+
peg$savedPos = s0;
|
|
4840
|
+
s0 = peg$f58(s2);
|
|
4841
|
+
}
|
|
4842
|
+
else {
|
|
4843
|
+
peg$currPos = s0;
|
|
4844
|
+
s0 = peg$FAILED;
|
|
4845
|
+
}
|
|
4846
|
+
}
|
|
4847
|
+
else {
|
|
4848
|
+
peg$currPos = s0;
|
|
4849
|
+
s0 = peg$FAILED;
|
|
4850
|
+
}
|
|
4851
|
+
if (s0 === peg$FAILED) {
|
|
4852
|
+
s0 = peg$currPos;
|
|
4853
|
+
if (input.substr(peg$currPos, 9) === peg$c28) {
|
|
4854
|
+
s1 = peg$c28;
|
|
4855
|
+
peg$currPos += 9;
|
|
4856
|
+
}
|
|
4857
|
+
else {
|
|
4858
|
+
s1 = peg$FAILED;
|
|
4859
|
+
if (peg$silentFails === 0) {
|
|
4860
|
+
peg$fail(peg$e33);
|
|
4861
|
+
}
|
|
4862
|
+
}
|
|
4863
|
+
if (s1 !== peg$FAILED) {
|
|
4864
|
+
s2 = peg$currPos;
|
|
4865
|
+
s3 = peg$currPos;
|
|
4866
|
+
if (input.charCodeAt(peg$currPos) === 80) {
|
|
4867
|
+
s4 = peg$c29;
|
|
4868
|
+
peg$currPos++;
|
|
4869
|
+
}
|
|
4870
|
+
else {
|
|
4871
|
+
s4 = peg$FAILED;
|
|
4872
|
+
if (peg$silentFails === 0) {
|
|
4873
|
+
peg$fail(peg$e34);
|
|
4874
|
+
}
|
|
4875
|
+
}
|
|
4876
|
+
if (s4 !== peg$FAILED) {
|
|
4703
4877
|
s5 = peg$currPos;
|
|
4878
|
+
s6 = [];
|
|
4879
|
+
s7 = peg$currPos;
|
|
4880
|
+
s8 = peg$currPos;
|
|
4704
4881
|
peg$silentFails++;
|
|
4705
|
-
|
|
4882
|
+
s9 = peg$parseBlockTag();
|
|
4706
4883
|
peg$silentFails--;
|
|
4707
|
-
if (
|
|
4708
|
-
|
|
4884
|
+
if (s9 === peg$FAILED) {
|
|
4885
|
+
s8 = undefined;
|
|
4709
4886
|
}
|
|
4710
4887
|
else {
|
|
4711
|
-
peg$currPos =
|
|
4712
|
-
|
|
4888
|
+
peg$currPos = s8;
|
|
4889
|
+
s8 = peg$FAILED;
|
|
4713
4890
|
}
|
|
4714
|
-
if (
|
|
4715
|
-
|
|
4716
|
-
if (
|
|
4717
|
-
|
|
4718
|
-
|
|
4891
|
+
if (s8 !== peg$FAILED) {
|
|
4892
|
+
s9 = peg$parsechar();
|
|
4893
|
+
if (s9 !== peg$FAILED) {
|
|
4894
|
+
s8 = [s8, s9];
|
|
4895
|
+
s7 = s8;
|
|
4719
4896
|
}
|
|
4720
4897
|
else {
|
|
4721
|
-
peg$currPos =
|
|
4722
|
-
|
|
4898
|
+
peg$currPos = s7;
|
|
4899
|
+
s7 = peg$FAILED;
|
|
4723
4900
|
}
|
|
4724
4901
|
}
|
|
4725
4902
|
else {
|
|
4726
|
-
peg$currPos =
|
|
4727
|
-
|
|
4903
|
+
peg$currPos = s7;
|
|
4904
|
+
s7 = peg$FAILED;
|
|
4905
|
+
}
|
|
4906
|
+
while (s7 !== peg$FAILED) {
|
|
4907
|
+
s6.push(s7);
|
|
4908
|
+
s7 = peg$currPos;
|
|
4909
|
+
s8 = peg$currPos;
|
|
4910
|
+
peg$silentFails++;
|
|
4911
|
+
s9 = peg$parseBlockTag();
|
|
4912
|
+
peg$silentFails--;
|
|
4913
|
+
if (s9 === peg$FAILED) {
|
|
4914
|
+
s8 = undefined;
|
|
4915
|
+
}
|
|
4916
|
+
else {
|
|
4917
|
+
peg$currPos = s8;
|
|
4918
|
+
s8 = peg$FAILED;
|
|
4919
|
+
}
|
|
4920
|
+
if (s8 !== peg$FAILED) {
|
|
4921
|
+
s9 = peg$parsechar();
|
|
4922
|
+
if (s9 !== peg$FAILED) {
|
|
4923
|
+
s8 = [s8, s9];
|
|
4924
|
+
s7 = s8;
|
|
4925
|
+
}
|
|
4926
|
+
else {
|
|
4927
|
+
peg$currPos = s7;
|
|
4928
|
+
s7 = peg$FAILED;
|
|
4929
|
+
}
|
|
4930
|
+
}
|
|
4931
|
+
else {
|
|
4932
|
+
peg$currPos = s7;
|
|
4933
|
+
s7 = peg$FAILED;
|
|
4934
|
+
}
|
|
4728
4935
|
}
|
|
4936
|
+
s5 = input.substring(s5, peg$currPos);
|
|
4937
|
+
s4 = [s4, s5];
|
|
4938
|
+
s3 = s4;
|
|
4939
|
+
}
|
|
4940
|
+
else {
|
|
4941
|
+
peg$currPos = s3;
|
|
4942
|
+
s3 = peg$FAILED;
|
|
4729
4943
|
}
|
|
4730
|
-
s2 = input.substring(s2, peg$currPos);
|
|
4731
|
-
s3 = peg$parseBlockTag();
|
|
4732
4944
|
if (s3 !== peg$FAILED) {
|
|
4733
|
-
|
|
4734
|
-
|
|
4945
|
+
s2 = input.substring(s2, peg$currPos);
|
|
4946
|
+
}
|
|
4947
|
+
else {
|
|
4948
|
+
s2 = s3;
|
|
4949
|
+
}
|
|
4950
|
+
if (s2 !== peg$FAILED) {
|
|
4951
|
+
s3 = peg$parseBlockTag();
|
|
4952
|
+
if (s3 !== peg$FAILED) {
|
|
4953
|
+
peg$savedPos = s0;
|
|
4954
|
+
s0 = peg$f59(s2);
|
|
4955
|
+
}
|
|
4956
|
+
else {
|
|
4957
|
+
peg$currPos = s0;
|
|
4958
|
+
s0 = peg$FAILED;
|
|
4959
|
+
}
|
|
4735
4960
|
}
|
|
4736
4961
|
else {
|
|
4737
4962
|
peg$currPos = s0;
|
|
@@ -4742,6 +4967,148 @@ function peg$parse(input, options) {
|
|
|
4742
4967
|
peg$currPos = s0;
|
|
4743
4968
|
s0 = peg$FAILED;
|
|
4744
4969
|
}
|
|
4970
|
+
if (s0 === peg$FAILED) {
|
|
4971
|
+
s0 = peg$currPos;
|
|
4972
|
+
if (input.substr(peg$currPos, 6) === peg$c30) {
|
|
4973
|
+
s1 = peg$c30;
|
|
4974
|
+
peg$currPos += 6;
|
|
4975
|
+
}
|
|
4976
|
+
else {
|
|
4977
|
+
s1 = peg$FAILED;
|
|
4978
|
+
if (peg$silentFails === 0) {
|
|
4979
|
+
peg$fail(peg$e35);
|
|
4980
|
+
}
|
|
4981
|
+
}
|
|
4982
|
+
if (s1 !== peg$FAILED) {
|
|
4983
|
+
s2 = peg$parseColor();
|
|
4984
|
+
if (s2 !== peg$FAILED) {
|
|
4985
|
+
s3 = peg$parseBlockTag();
|
|
4986
|
+
if (s3 !== peg$FAILED) {
|
|
4987
|
+
peg$savedPos = s0;
|
|
4988
|
+
s0 = peg$f60(s2);
|
|
4989
|
+
}
|
|
4990
|
+
else {
|
|
4991
|
+
peg$currPos = s0;
|
|
4992
|
+
s0 = peg$FAILED;
|
|
4993
|
+
}
|
|
4994
|
+
}
|
|
4995
|
+
else {
|
|
4996
|
+
peg$currPos = s0;
|
|
4997
|
+
s0 = peg$FAILED;
|
|
4998
|
+
}
|
|
4999
|
+
}
|
|
5000
|
+
else {
|
|
5001
|
+
peg$currPos = s0;
|
|
5002
|
+
s0 = peg$FAILED;
|
|
5003
|
+
}
|
|
5004
|
+
if (s0 === peg$FAILED) {
|
|
5005
|
+
s0 = peg$currPos;
|
|
5006
|
+
s1 = peg$parseAlternativeStyleTags();
|
|
5007
|
+
if (s1 !== peg$FAILED) {
|
|
5008
|
+
s2 = peg$parseBlockTag();
|
|
5009
|
+
if (s2 !== peg$FAILED) {
|
|
5010
|
+
peg$savedPos = s0;
|
|
5011
|
+
s0 = peg$f61(s1);
|
|
5012
|
+
}
|
|
5013
|
+
else {
|
|
5014
|
+
peg$currPos = s0;
|
|
5015
|
+
s0 = peg$FAILED;
|
|
5016
|
+
}
|
|
5017
|
+
}
|
|
5018
|
+
else {
|
|
5019
|
+
peg$currPos = s0;
|
|
5020
|
+
s0 = peg$FAILED;
|
|
5021
|
+
}
|
|
5022
|
+
if (s0 === peg$FAILED) {
|
|
5023
|
+
s0 = peg$currPos;
|
|
5024
|
+
if (input.charCodeAt(peg$currPos) === 35) {
|
|
5025
|
+
s1 = peg$c17;
|
|
5026
|
+
peg$currPos++;
|
|
5027
|
+
}
|
|
5028
|
+
else {
|
|
5029
|
+
s1 = peg$FAILED;
|
|
5030
|
+
if (peg$silentFails === 0) {
|
|
5031
|
+
peg$fail(peg$e20);
|
|
5032
|
+
}
|
|
5033
|
+
}
|
|
5034
|
+
if (s1 !== peg$FAILED) {
|
|
5035
|
+
s2 = peg$currPos;
|
|
5036
|
+
s3 = [];
|
|
5037
|
+
s4 = peg$currPos;
|
|
5038
|
+
s5 = peg$currPos;
|
|
5039
|
+
peg$silentFails++;
|
|
5040
|
+
s6 = peg$parseBlockTag();
|
|
5041
|
+
peg$silentFails--;
|
|
5042
|
+
if (s6 === peg$FAILED) {
|
|
5043
|
+
s5 = undefined;
|
|
5044
|
+
}
|
|
5045
|
+
else {
|
|
5046
|
+
peg$currPos = s5;
|
|
5047
|
+
s5 = peg$FAILED;
|
|
5048
|
+
}
|
|
5049
|
+
if (s5 !== peg$FAILED) {
|
|
5050
|
+
s6 = peg$parsechar();
|
|
5051
|
+
if (s6 !== peg$FAILED) {
|
|
5052
|
+
s5 = [s5, s6];
|
|
5053
|
+
s4 = s5;
|
|
5054
|
+
}
|
|
5055
|
+
else {
|
|
5056
|
+
peg$currPos = s4;
|
|
5057
|
+
s4 = peg$FAILED;
|
|
5058
|
+
}
|
|
5059
|
+
}
|
|
5060
|
+
else {
|
|
5061
|
+
peg$currPos = s4;
|
|
5062
|
+
s4 = peg$FAILED;
|
|
5063
|
+
}
|
|
5064
|
+
while (s4 !== peg$FAILED) {
|
|
5065
|
+
s3.push(s4);
|
|
5066
|
+
s4 = peg$currPos;
|
|
5067
|
+
s5 = peg$currPos;
|
|
5068
|
+
peg$silentFails++;
|
|
5069
|
+
s6 = peg$parseBlockTag();
|
|
5070
|
+
peg$silentFails--;
|
|
5071
|
+
if (s6 === peg$FAILED) {
|
|
5072
|
+
s5 = undefined;
|
|
5073
|
+
}
|
|
5074
|
+
else {
|
|
5075
|
+
peg$currPos = s5;
|
|
5076
|
+
s5 = peg$FAILED;
|
|
5077
|
+
}
|
|
5078
|
+
if (s5 !== peg$FAILED) {
|
|
5079
|
+
s6 = peg$parsechar();
|
|
5080
|
+
if (s6 !== peg$FAILED) {
|
|
5081
|
+
s5 = [s5, s6];
|
|
5082
|
+
s4 = s5;
|
|
5083
|
+
}
|
|
5084
|
+
else {
|
|
5085
|
+
peg$currPos = s4;
|
|
5086
|
+
s4 = peg$FAILED;
|
|
5087
|
+
}
|
|
5088
|
+
}
|
|
5089
|
+
else {
|
|
5090
|
+
peg$currPos = s4;
|
|
5091
|
+
s4 = peg$FAILED;
|
|
5092
|
+
}
|
|
5093
|
+
}
|
|
5094
|
+
s2 = input.substring(s2, peg$currPos);
|
|
5095
|
+
s3 = peg$parseBlockTag();
|
|
5096
|
+
if (s3 !== peg$FAILED) {
|
|
5097
|
+
peg$savedPos = s0;
|
|
5098
|
+
s0 = peg$f62(s2);
|
|
5099
|
+
}
|
|
5100
|
+
else {
|
|
5101
|
+
peg$currPos = s0;
|
|
5102
|
+
s0 = peg$FAILED;
|
|
5103
|
+
}
|
|
5104
|
+
}
|
|
5105
|
+
else {
|
|
5106
|
+
peg$currPos = s0;
|
|
5107
|
+
s0 = peg$FAILED;
|
|
5108
|
+
}
|
|
5109
|
+
}
|
|
5110
|
+
}
|
|
5111
|
+
}
|
|
4745
5112
|
}
|
|
4746
5113
|
}
|
|
4747
5114
|
}
|
|
@@ -4752,102 +5119,210 @@ function peg$parse(input, options) {
|
|
|
4752
5119
|
}
|
|
4753
5120
|
function peg$parseAlternativeStyleTags() {
|
|
4754
5121
|
var s0;
|
|
4755
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4756
|
-
s0 = peg$
|
|
5122
|
+
if (input.substr(peg$currPos, 4) === peg$c31) {
|
|
5123
|
+
s0 = peg$c31;
|
|
4757
5124
|
peg$currPos += 4;
|
|
4758
5125
|
}
|
|
4759
5126
|
else {
|
|
4760
5127
|
s0 = peg$FAILED;
|
|
4761
5128
|
if (peg$silentFails === 0) {
|
|
4762
|
-
peg$fail(peg$
|
|
5129
|
+
peg$fail(peg$e36);
|
|
4763
5130
|
}
|
|
4764
5131
|
}
|
|
4765
5132
|
if (s0 === peg$FAILED) {
|
|
4766
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
4767
|
-
s0 = peg$
|
|
5133
|
+
if (input.substr(peg$currPos, 6) === peg$c32) {
|
|
5134
|
+
s0 = peg$c32;
|
|
4768
5135
|
peg$currPos += 6;
|
|
4769
5136
|
}
|
|
4770
5137
|
else {
|
|
4771
5138
|
s0 = peg$FAILED;
|
|
4772
5139
|
if (peg$silentFails === 0) {
|
|
4773
|
-
peg$fail(peg$
|
|
5140
|
+
peg$fail(peg$e37);
|
|
4774
5141
|
}
|
|
4775
5142
|
}
|
|
4776
5143
|
if (s0 === peg$FAILED) {
|
|
4777
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
4778
|
-
s0 = peg$
|
|
5144
|
+
if (input.substr(peg$currPos, 5) === peg$c33) {
|
|
5145
|
+
s0 = peg$c33;
|
|
4779
5146
|
peg$currPos += 5;
|
|
4780
5147
|
}
|
|
4781
5148
|
else {
|
|
4782
5149
|
s0 = peg$FAILED;
|
|
4783
5150
|
if (peg$silentFails === 0) {
|
|
4784
|
-
peg$fail(peg$
|
|
5151
|
+
peg$fail(peg$e38);
|
|
4785
5152
|
}
|
|
4786
5153
|
}
|
|
4787
5154
|
if (s0 === peg$FAILED) {
|
|
4788
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
4789
|
-
s0 = peg$
|
|
5155
|
+
if (input.substr(peg$currPos, 9) === peg$c34) {
|
|
5156
|
+
s0 = peg$c34;
|
|
4790
5157
|
peg$currPos += 9;
|
|
4791
5158
|
}
|
|
4792
5159
|
else {
|
|
4793
5160
|
s0 = peg$FAILED;
|
|
4794
5161
|
if (peg$silentFails === 0) {
|
|
4795
|
-
peg$fail(peg$
|
|
5162
|
+
peg$fail(peg$e39);
|
|
4796
5163
|
}
|
|
4797
5164
|
}
|
|
4798
5165
|
if (s0 === peg$FAILED) {
|
|
4799
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
4800
|
-
s0 = peg$
|
|
5166
|
+
if (input.substr(peg$currPos, 6) === peg$c35) {
|
|
5167
|
+
s0 = peg$c35;
|
|
4801
5168
|
peg$currPos += 6;
|
|
4802
5169
|
}
|
|
4803
5170
|
else {
|
|
4804
5171
|
s0 = peg$FAILED;
|
|
4805
5172
|
if (peg$silentFails === 0) {
|
|
4806
|
-
peg$fail(peg$
|
|
5173
|
+
peg$fail(peg$e40);
|
|
4807
5174
|
}
|
|
4808
5175
|
}
|
|
4809
5176
|
if (s0 === peg$FAILED) {
|
|
4810
|
-
if (input.substr(peg$currPos,
|
|
4811
|
-
s0 = peg$
|
|
4812
|
-
peg$currPos +=
|
|
5177
|
+
if (input.substr(peg$currPos, 9) === peg$c36) {
|
|
5178
|
+
s0 = peg$c36;
|
|
5179
|
+
peg$currPos += 9;
|
|
4813
5180
|
}
|
|
4814
5181
|
else {
|
|
4815
5182
|
s0 = peg$FAILED;
|
|
4816
5183
|
if (peg$silentFails === 0) {
|
|
4817
|
-
peg$fail(peg$
|
|
5184
|
+
peg$fail(peg$e41);
|
|
4818
5185
|
}
|
|
4819
5186
|
}
|
|
4820
5187
|
if (s0 === peg$FAILED) {
|
|
4821
|
-
if (input.substr(peg$currPos,
|
|
4822
|
-
s0 = peg$
|
|
4823
|
-
peg$currPos +=
|
|
5188
|
+
if (input.substr(peg$currPos, 11) === peg$c37) {
|
|
5189
|
+
s0 = peg$c37;
|
|
5190
|
+
peg$currPos += 11;
|
|
4824
5191
|
}
|
|
4825
5192
|
else {
|
|
4826
5193
|
s0 = peg$FAILED;
|
|
4827
5194
|
if (peg$silentFails === 0) {
|
|
4828
|
-
peg$fail(peg$
|
|
5195
|
+
peg$fail(peg$e42);
|
|
4829
5196
|
}
|
|
4830
5197
|
}
|
|
4831
5198
|
if (s0 === peg$FAILED) {
|
|
4832
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
4833
|
-
s0 = peg$
|
|
5199
|
+
if (input.substr(peg$currPos, 3) === peg$c38) {
|
|
5200
|
+
s0 = peg$c38;
|
|
4834
5201
|
peg$currPos += 3;
|
|
4835
5202
|
}
|
|
4836
5203
|
else {
|
|
4837
5204
|
s0 = peg$FAILED;
|
|
4838
5205
|
if (peg$silentFails === 0) {
|
|
4839
|
-
peg$fail(peg$
|
|
5206
|
+
peg$fail(peg$e43);
|
|
4840
5207
|
}
|
|
4841
5208
|
}
|
|
4842
5209
|
if (s0 === peg$FAILED) {
|
|
4843
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
4844
|
-
s0 = peg$
|
|
5210
|
+
if (input.substr(peg$currPos, 3) === peg$c39) {
|
|
5211
|
+
s0 = peg$c39;
|
|
4845
5212
|
peg$currPos += 3;
|
|
4846
5213
|
}
|
|
4847
5214
|
else {
|
|
4848
5215
|
s0 = peg$FAILED;
|
|
4849
5216
|
if (peg$silentFails === 0) {
|
|
4850
|
-
peg$fail(peg$
|
|
5217
|
+
peg$fail(peg$e44);
|
|
5218
|
+
}
|
|
5219
|
+
}
|
|
5220
|
+
if (s0 === peg$FAILED) {
|
|
5221
|
+
if (input.substr(peg$currPos, 9) === peg$c40) {
|
|
5222
|
+
s0 = peg$c40;
|
|
5223
|
+
peg$currPos += 9;
|
|
5224
|
+
}
|
|
5225
|
+
else {
|
|
5226
|
+
s0 = peg$FAILED;
|
|
5227
|
+
if (peg$silentFails === 0) {
|
|
5228
|
+
peg$fail(peg$e45);
|
|
5229
|
+
}
|
|
5230
|
+
}
|
|
5231
|
+
if (s0 === peg$FAILED) {
|
|
5232
|
+
if (input.substr(peg$currPos, 15) === peg$c41) {
|
|
5233
|
+
s0 = peg$c41;
|
|
5234
|
+
peg$currPos += 15;
|
|
5235
|
+
}
|
|
5236
|
+
else {
|
|
5237
|
+
s0 = peg$FAILED;
|
|
5238
|
+
if (peg$silentFails === 0) {
|
|
5239
|
+
peg$fail(peg$e46);
|
|
5240
|
+
}
|
|
5241
|
+
}
|
|
5242
|
+
if (s0 === peg$FAILED) {
|
|
5243
|
+
if (input.substr(peg$currPos, 6) === peg$c42) {
|
|
5244
|
+
s0 = peg$c42;
|
|
5245
|
+
peg$currPos += 6;
|
|
5246
|
+
}
|
|
5247
|
+
else {
|
|
5248
|
+
s0 = peg$FAILED;
|
|
5249
|
+
if (peg$silentFails === 0) {
|
|
5250
|
+
peg$fail(peg$e47);
|
|
5251
|
+
}
|
|
5252
|
+
}
|
|
5253
|
+
if (s0 === peg$FAILED) {
|
|
5254
|
+
if (input.substr(peg$currPos, 10) === peg$c43) {
|
|
5255
|
+
s0 = peg$c43;
|
|
5256
|
+
peg$currPos += 10;
|
|
5257
|
+
}
|
|
5258
|
+
else {
|
|
5259
|
+
s0 = peg$FAILED;
|
|
5260
|
+
if (peg$silentFails === 0) {
|
|
5261
|
+
peg$fail(peg$e48);
|
|
5262
|
+
}
|
|
5263
|
+
}
|
|
5264
|
+
if (s0 === peg$FAILED) {
|
|
5265
|
+
if (input.substr(peg$currPos, 13) === peg$c44) {
|
|
5266
|
+
s0 = peg$c44;
|
|
5267
|
+
peg$currPos += 13;
|
|
5268
|
+
}
|
|
5269
|
+
else {
|
|
5270
|
+
s0 = peg$FAILED;
|
|
5271
|
+
if (peg$silentFails === 0) {
|
|
5272
|
+
peg$fail(peg$e49);
|
|
5273
|
+
}
|
|
5274
|
+
}
|
|
5275
|
+
if (s0 === peg$FAILED) {
|
|
5276
|
+
if (input.substr(peg$currPos, 19) === peg$c45) {
|
|
5277
|
+
s0 = peg$c45;
|
|
5278
|
+
peg$currPos += 19;
|
|
5279
|
+
}
|
|
5280
|
+
else {
|
|
5281
|
+
s0 = peg$FAILED;
|
|
5282
|
+
if (peg$silentFails === 0) {
|
|
5283
|
+
peg$fail(peg$e50);
|
|
5284
|
+
}
|
|
5285
|
+
}
|
|
5286
|
+
if (s0 === peg$FAILED) {
|
|
5287
|
+
if (input.substr(peg$currPos, 10) === peg$c46) {
|
|
5288
|
+
s0 = peg$c46;
|
|
5289
|
+
peg$currPos += 10;
|
|
5290
|
+
}
|
|
5291
|
+
else {
|
|
5292
|
+
s0 = peg$FAILED;
|
|
5293
|
+
if (peg$silentFails === 0) {
|
|
5294
|
+
peg$fail(peg$e51);
|
|
5295
|
+
}
|
|
5296
|
+
}
|
|
5297
|
+
if (s0 === peg$FAILED) {
|
|
5298
|
+
if (input.substr(peg$currPos, 10) === peg$c47) {
|
|
5299
|
+
s0 = peg$c47;
|
|
5300
|
+
peg$currPos += 10;
|
|
5301
|
+
}
|
|
5302
|
+
else {
|
|
5303
|
+
s0 = peg$FAILED;
|
|
5304
|
+
if (peg$silentFails === 0) {
|
|
5305
|
+
peg$fail(peg$e52);
|
|
5306
|
+
}
|
|
5307
|
+
}
|
|
5308
|
+
if (s0 === peg$FAILED) {
|
|
5309
|
+
if (input.substr(peg$currPos, 13) === peg$c48) {
|
|
5310
|
+
s0 = peg$c48;
|
|
5311
|
+
peg$currPos += 13;
|
|
5312
|
+
}
|
|
5313
|
+
else {
|
|
5314
|
+
s0 = peg$FAILED;
|
|
5315
|
+
if (peg$silentFails === 0) {
|
|
5316
|
+
peg$fail(peg$e53);
|
|
5317
|
+
}
|
|
5318
|
+
}
|
|
5319
|
+
}
|
|
5320
|
+
}
|
|
5321
|
+
}
|
|
5322
|
+
}
|
|
5323
|
+
}
|
|
5324
|
+
}
|
|
5325
|
+
}
|
|
4851
5326
|
}
|
|
4852
5327
|
}
|
|
4853
5328
|
}
|
|
@@ -4862,245 +5337,245 @@ function peg$parse(input, options) {
|
|
|
4862
5337
|
}
|
|
4863
5338
|
function peg$parseColor() {
|
|
4864
5339
|
var s0;
|
|
4865
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4866
|
-
s0 = peg$
|
|
5340
|
+
if (input.substr(peg$currPos, 4) === peg$c49) {
|
|
5341
|
+
s0 = peg$c49;
|
|
4867
5342
|
peg$currPos += 4;
|
|
4868
5343
|
}
|
|
4869
5344
|
else {
|
|
4870
5345
|
s0 = peg$FAILED;
|
|
4871
5346
|
if (peg$silentFails === 0) {
|
|
4872
|
-
peg$fail(peg$
|
|
5347
|
+
peg$fail(peg$e54);
|
|
4873
5348
|
}
|
|
4874
5349
|
}
|
|
4875
5350
|
if (s0 === peg$FAILED) {
|
|
4876
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
4877
|
-
s0 = peg$
|
|
5351
|
+
if (input.substr(peg$currPos, 5) === peg$c50) {
|
|
5352
|
+
s0 = peg$c50;
|
|
4878
5353
|
peg$currPos += 5;
|
|
4879
5354
|
}
|
|
4880
5355
|
else {
|
|
4881
5356
|
s0 = peg$FAILED;
|
|
4882
5357
|
if (peg$silentFails === 0) {
|
|
4883
|
-
peg$fail(peg$
|
|
5358
|
+
peg$fail(peg$e55);
|
|
4884
5359
|
}
|
|
4885
5360
|
}
|
|
4886
5361
|
if (s0 === peg$FAILED) {
|
|
4887
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4888
|
-
s0 = peg$
|
|
5362
|
+
if (input.substr(peg$currPos, 4) === peg$c51) {
|
|
5363
|
+
s0 = peg$c51;
|
|
4889
5364
|
peg$currPos += 4;
|
|
4890
5365
|
}
|
|
4891
5366
|
else {
|
|
4892
5367
|
s0 = peg$FAILED;
|
|
4893
5368
|
if (peg$silentFails === 0) {
|
|
4894
|
-
peg$fail(peg$
|
|
5369
|
+
peg$fail(peg$e56);
|
|
4895
5370
|
}
|
|
4896
5371
|
}
|
|
4897
5372
|
if (s0 === peg$FAILED) {
|
|
4898
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4899
|
-
s0 = peg$
|
|
5373
|
+
if (input.substr(peg$currPos, 4) === peg$c52) {
|
|
5374
|
+
s0 = peg$c52;
|
|
4900
5375
|
peg$currPos += 4;
|
|
4901
5376
|
}
|
|
4902
5377
|
else {
|
|
4903
5378
|
s0 = peg$FAILED;
|
|
4904
5379
|
if (peg$silentFails === 0) {
|
|
4905
|
-
peg$fail(peg$
|
|
5380
|
+
peg$fail(peg$e57);
|
|
4906
5381
|
}
|
|
4907
5382
|
}
|
|
4908
5383
|
if (s0 === peg$FAILED) {
|
|
4909
|
-
if (input.substr(peg$currPos, 7) === peg$
|
|
4910
|
-
s0 = peg$
|
|
5384
|
+
if (input.substr(peg$currPos, 7) === peg$c53) {
|
|
5385
|
+
s0 = peg$c53;
|
|
4911
5386
|
peg$currPos += 7;
|
|
4912
5387
|
}
|
|
4913
5388
|
else {
|
|
4914
5389
|
s0 = peg$FAILED;
|
|
4915
5390
|
if (peg$silentFails === 0) {
|
|
4916
|
-
peg$fail(peg$
|
|
5391
|
+
peg$fail(peg$e58);
|
|
4917
5392
|
}
|
|
4918
5393
|
}
|
|
4919
5394
|
if (s0 === peg$FAILED) {
|
|
4920
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
4921
|
-
s0 = peg$
|
|
5395
|
+
if (input.substr(peg$currPos, 9) === peg$c54) {
|
|
5396
|
+
s0 = peg$c54;
|
|
4922
5397
|
peg$currPos += 9;
|
|
4923
5398
|
}
|
|
4924
5399
|
else {
|
|
4925
5400
|
s0 = peg$FAILED;
|
|
4926
5401
|
if (peg$silentFails === 0) {
|
|
4927
|
-
peg$fail(peg$
|
|
5402
|
+
peg$fail(peg$e59);
|
|
4928
5403
|
}
|
|
4929
5404
|
}
|
|
4930
5405
|
if (s0 === peg$FAILED) {
|
|
4931
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4932
|
-
s0 = peg$
|
|
5406
|
+
if (input.substr(peg$currPos, 4) === peg$c55) {
|
|
5407
|
+
s0 = peg$c55;
|
|
4933
5408
|
peg$currPos += 4;
|
|
4934
5409
|
}
|
|
4935
5410
|
else {
|
|
4936
5411
|
s0 = peg$FAILED;
|
|
4937
5412
|
if (peg$silentFails === 0) {
|
|
4938
|
-
peg$fail(peg$
|
|
5413
|
+
peg$fail(peg$e60);
|
|
4939
5414
|
}
|
|
4940
5415
|
}
|
|
4941
5416
|
if (s0 === peg$FAILED) {
|
|
4942
|
-
if (input.substr(peg$currPos, 8) === peg$
|
|
4943
|
-
s0 = peg$
|
|
5417
|
+
if (input.substr(peg$currPos, 8) === peg$c56) {
|
|
5418
|
+
s0 = peg$c56;
|
|
4944
5419
|
peg$currPos += 8;
|
|
4945
5420
|
}
|
|
4946
5421
|
else {
|
|
4947
5422
|
s0 = peg$FAILED;
|
|
4948
5423
|
if (peg$silentFails === 0) {
|
|
4949
|
-
peg$fail(peg$
|
|
5424
|
+
peg$fail(peg$e61);
|
|
4950
5425
|
}
|
|
4951
5426
|
}
|
|
4952
5427
|
if (s0 === peg$FAILED) {
|
|
4953
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
4954
|
-
s0 = peg$
|
|
5428
|
+
if (input.substr(peg$currPos, 5) === peg$c57) {
|
|
5429
|
+
s0 = peg$c57;
|
|
4955
5430
|
peg$currPos += 5;
|
|
4956
5431
|
}
|
|
4957
5432
|
else {
|
|
4958
5433
|
s0 = peg$FAILED;
|
|
4959
5434
|
if (peg$silentFails === 0) {
|
|
4960
|
-
peg$fail(peg$
|
|
5435
|
+
peg$fail(peg$e62);
|
|
4961
5436
|
}
|
|
4962
5437
|
}
|
|
4963
5438
|
if (s0 === peg$FAILED) {
|
|
4964
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4965
|
-
s0 = peg$
|
|
5439
|
+
if (input.substr(peg$currPos, 4) === peg$c58) {
|
|
5440
|
+
s0 = peg$c58;
|
|
4966
5441
|
peg$currPos += 4;
|
|
4967
5442
|
}
|
|
4968
5443
|
else {
|
|
4969
5444
|
s0 = peg$FAILED;
|
|
4970
5445
|
if (peg$silentFails === 0) {
|
|
4971
|
-
peg$fail(peg$
|
|
5446
|
+
peg$fail(peg$e63);
|
|
4972
5447
|
}
|
|
4973
5448
|
}
|
|
4974
5449
|
if (s0 === peg$FAILED) {
|
|
4975
|
-
if (input.substr(peg$currPos, 7) === peg$
|
|
4976
|
-
s0 = peg$
|
|
5450
|
+
if (input.substr(peg$currPos, 7) === peg$c59) {
|
|
5451
|
+
s0 = peg$c59;
|
|
4977
5452
|
peg$currPos += 7;
|
|
4978
5453
|
}
|
|
4979
5454
|
else {
|
|
4980
5455
|
s0 = peg$FAILED;
|
|
4981
5456
|
if (peg$silentFails === 0) {
|
|
4982
|
-
peg$fail(peg$
|
|
5457
|
+
peg$fail(peg$e64);
|
|
4983
5458
|
}
|
|
4984
5459
|
}
|
|
4985
5460
|
if (s0 === peg$FAILED) {
|
|
4986
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
4987
|
-
s0 = peg$
|
|
5461
|
+
if (input.substr(peg$currPos, 6) === peg$c60) {
|
|
5462
|
+
s0 = peg$c60;
|
|
4988
5463
|
peg$currPos += 6;
|
|
4989
5464
|
}
|
|
4990
5465
|
else {
|
|
4991
5466
|
s0 = peg$FAILED;
|
|
4992
5467
|
if (peg$silentFails === 0) {
|
|
4993
|
-
peg$fail(peg$
|
|
5468
|
+
peg$fail(peg$e65);
|
|
4994
5469
|
}
|
|
4995
5470
|
}
|
|
4996
5471
|
if (s0 === peg$FAILED) {
|
|
4997
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4998
|
-
s0 = peg$
|
|
5472
|
+
if (input.substr(peg$currPos, 4) === peg$c61) {
|
|
5473
|
+
s0 = peg$c61;
|
|
4999
5474
|
peg$currPos += 4;
|
|
5000
5475
|
}
|
|
5001
5476
|
else {
|
|
5002
5477
|
s0 = peg$FAILED;
|
|
5003
5478
|
if (peg$silentFails === 0) {
|
|
5004
|
-
peg$fail(peg$
|
|
5479
|
+
peg$fail(peg$e66);
|
|
5005
5480
|
}
|
|
5006
5481
|
}
|
|
5007
5482
|
if (s0 === peg$FAILED) {
|
|
5008
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
5009
|
-
s0 = peg$
|
|
5483
|
+
if (input.substr(peg$currPos, 5) === peg$c62) {
|
|
5484
|
+
s0 = peg$c62;
|
|
5010
5485
|
peg$currPos += 5;
|
|
5011
5486
|
}
|
|
5012
5487
|
else {
|
|
5013
5488
|
s0 = peg$FAILED;
|
|
5014
5489
|
if (peg$silentFails === 0) {
|
|
5015
|
-
peg$fail(peg$
|
|
5490
|
+
peg$fail(peg$e67);
|
|
5016
5491
|
}
|
|
5017
5492
|
}
|
|
5018
5493
|
if (s0 === peg$FAILED) {
|
|
5019
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
5020
|
-
s0 = peg$
|
|
5494
|
+
if (input.substr(peg$currPos, 6) === peg$c63) {
|
|
5495
|
+
s0 = peg$c63;
|
|
5021
5496
|
peg$currPos += 6;
|
|
5022
5497
|
}
|
|
5023
5498
|
else {
|
|
5024
5499
|
s0 = peg$FAILED;
|
|
5025
5500
|
if (peg$silentFails === 0) {
|
|
5026
|
-
peg$fail(peg$
|
|
5501
|
+
peg$fail(peg$e68);
|
|
5027
5502
|
}
|
|
5028
5503
|
}
|
|
5029
5504
|
if (s0 === peg$FAILED) {
|
|
5030
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
5031
|
-
s0 = peg$
|
|
5505
|
+
if (input.substr(peg$currPos, 6) === peg$c64) {
|
|
5506
|
+
s0 = peg$c64;
|
|
5032
5507
|
peg$currPos += 6;
|
|
5033
5508
|
}
|
|
5034
5509
|
else {
|
|
5035
5510
|
s0 = peg$FAILED;
|
|
5036
5511
|
if (peg$silentFails === 0) {
|
|
5037
|
-
peg$fail(peg$
|
|
5512
|
+
peg$fail(peg$e69);
|
|
5038
5513
|
}
|
|
5039
5514
|
}
|
|
5040
5515
|
if (s0 === peg$FAILED) {
|
|
5041
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
5042
|
-
s0 = peg$
|
|
5516
|
+
if (input.substr(peg$currPos, 3) === peg$c65) {
|
|
5517
|
+
s0 = peg$c65;
|
|
5043
5518
|
peg$currPos += 3;
|
|
5044
5519
|
}
|
|
5045
5520
|
else {
|
|
5046
5521
|
s0 = peg$FAILED;
|
|
5047
5522
|
if (peg$silentFails === 0) {
|
|
5048
|
-
peg$fail(peg$
|
|
5523
|
+
peg$fail(peg$e70);
|
|
5049
5524
|
}
|
|
5050
5525
|
}
|
|
5051
5526
|
if (s0 === peg$FAILED) {
|
|
5052
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
5053
|
-
s0 = peg$
|
|
5527
|
+
if (input.substr(peg$currPos, 6) === peg$c66) {
|
|
5528
|
+
s0 = peg$c66;
|
|
5054
5529
|
peg$currPos += 6;
|
|
5055
5530
|
}
|
|
5056
5531
|
else {
|
|
5057
5532
|
s0 = peg$FAILED;
|
|
5058
5533
|
if (peg$silentFails === 0) {
|
|
5059
|
-
peg$fail(peg$
|
|
5534
|
+
peg$fail(peg$e71);
|
|
5060
5535
|
}
|
|
5061
5536
|
}
|
|
5062
5537
|
if (s0 === peg$FAILED) {
|
|
5063
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
5064
|
-
s0 = peg$
|
|
5538
|
+
if (input.substr(peg$currPos, 4) === peg$c67) {
|
|
5539
|
+
s0 = peg$c67;
|
|
5065
5540
|
peg$currPos += 4;
|
|
5066
5541
|
}
|
|
5067
5542
|
else {
|
|
5068
5543
|
s0 = peg$FAILED;
|
|
5069
5544
|
if (peg$silentFails === 0) {
|
|
5070
|
-
peg$fail(peg$
|
|
5545
|
+
peg$fail(peg$e72);
|
|
5071
5546
|
}
|
|
5072
5547
|
}
|
|
5073
5548
|
if (s0 === peg$FAILED) {
|
|
5074
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
5075
|
-
s0 = peg$
|
|
5549
|
+
if (input.substr(peg$currPos, 6) === peg$c68) {
|
|
5550
|
+
s0 = peg$c68;
|
|
5076
5551
|
peg$currPos += 6;
|
|
5077
5552
|
}
|
|
5078
5553
|
else {
|
|
5079
5554
|
s0 = peg$FAILED;
|
|
5080
5555
|
if (peg$silentFails === 0) {
|
|
5081
|
-
peg$fail(peg$
|
|
5556
|
+
peg$fail(peg$e73);
|
|
5082
5557
|
}
|
|
5083
5558
|
}
|
|
5084
5559
|
if (s0 === peg$FAILED) {
|
|
5085
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
5086
|
-
s0 = peg$
|
|
5560
|
+
if (input.substr(peg$currPos, 5) === peg$c69) {
|
|
5561
|
+
s0 = peg$c69;
|
|
5087
5562
|
peg$currPos += 5;
|
|
5088
5563
|
}
|
|
5089
5564
|
else {
|
|
5090
5565
|
s0 = peg$FAILED;
|
|
5091
5566
|
if (peg$silentFails === 0) {
|
|
5092
|
-
peg$fail(peg$
|
|
5567
|
+
peg$fail(peg$e74);
|
|
5093
5568
|
}
|
|
5094
5569
|
}
|
|
5095
5570
|
if (s0 === peg$FAILED) {
|
|
5096
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
5097
|
-
s0 = peg$
|
|
5571
|
+
if (input.substr(peg$currPos, 6) === peg$c70) {
|
|
5572
|
+
s0 = peg$c70;
|
|
5098
5573
|
peg$currPos += 6;
|
|
5099
5574
|
}
|
|
5100
5575
|
else {
|
|
5101
5576
|
s0 = peg$FAILED;
|
|
5102
5577
|
if (peg$silentFails === 0) {
|
|
5103
|
-
peg$fail(peg$
|
|
5578
|
+
peg$fail(peg$e75);
|
|
5104
5579
|
}
|
|
5105
5580
|
}
|
|
5106
5581
|
}
|
|
@@ -5132,12 +5607,12 @@ function peg$parse(input, options) {
|
|
|
5132
5607
|
s0 = peg$currPos;
|
|
5133
5608
|
s1 = peg$parsebitmarkMinusMinusString();
|
|
5134
5609
|
peg$savedPos = s0;
|
|
5135
|
-
s1 = peg$
|
|
5610
|
+
s1 = peg$f63(s1);
|
|
5136
5611
|
s0 = s1;
|
|
5137
5612
|
peg$silentFails--;
|
|
5138
5613
|
s1 = peg$FAILED;
|
|
5139
5614
|
if (peg$silentFails === 0) {
|
|
5140
|
-
peg$fail(peg$
|
|
5615
|
+
peg$fail(peg$e76);
|
|
5141
5616
|
}
|
|
5142
5617
|
return s0;
|
|
5143
5618
|
}
|
|
@@ -5162,11 +5637,11 @@ function peg$parse(input, options) {
|
|
|
5162
5637
|
}
|
|
5163
5638
|
}
|
|
5164
5639
|
peg$savedPos = s0;
|
|
5165
|
-
s0 = peg$
|
|
5640
|
+
s0 = peg$f64(s1, s2);
|
|
5166
5641
|
peg$silentFails--;
|
|
5167
5642
|
s1 = peg$FAILED;
|
|
5168
5643
|
if (peg$silentFails === 0) {
|
|
5169
|
-
peg$fail(peg$
|
|
5644
|
+
peg$fail(peg$e77);
|
|
5170
5645
|
}
|
|
5171
5646
|
return s0;
|
|
5172
5647
|
}
|
|
@@ -5199,7 +5674,7 @@ function peg$parse(input, options) {
|
|
|
5199
5674
|
else {
|
|
5200
5675
|
s6 = peg$FAILED;
|
|
5201
5676
|
if (peg$silentFails === 0) {
|
|
5202
|
-
peg$fail(peg$
|
|
5677
|
+
peg$fail(peg$e16);
|
|
5203
5678
|
}
|
|
5204
5679
|
}
|
|
5205
5680
|
if (s6 !== peg$FAILED) {
|
|
@@ -5242,7 +5717,7 @@ function peg$parse(input, options) {
|
|
|
5242
5717
|
else {
|
|
5243
5718
|
s6 = peg$FAILED;
|
|
5244
5719
|
if (peg$silentFails === 0) {
|
|
5245
|
-
peg$fail(peg$
|
|
5720
|
+
peg$fail(peg$e16);
|
|
5246
5721
|
}
|
|
5247
5722
|
}
|
|
5248
5723
|
if (s6 !== peg$FAILED) {
|
|
@@ -5271,7 +5746,7 @@ function peg$parse(input, options) {
|
|
|
5271
5746
|
}
|
|
5272
5747
|
if (s1 !== peg$FAILED) {
|
|
5273
5748
|
peg$savedPos = s0;
|
|
5274
|
-
s1 = peg$
|
|
5749
|
+
s1 = peg$f65(s1);
|
|
5275
5750
|
}
|
|
5276
5751
|
s0 = s1;
|
|
5277
5752
|
if (s0 === peg$FAILED) {
|
|
@@ -5282,13 +5757,13 @@ function peg$parse(input, options) {
|
|
|
5282
5757
|
function peg$parseBoldHalfTag() {
|
|
5283
5758
|
var s0;
|
|
5284
5759
|
if (input.charCodeAt(peg$currPos) === 42) {
|
|
5285
|
-
s0 = peg$
|
|
5760
|
+
s0 = peg$c71;
|
|
5286
5761
|
peg$currPos++;
|
|
5287
5762
|
}
|
|
5288
5763
|
else {
|
|
5289
5764
|
s0 = peg$FAILED;
|
|
5290
5765
|
if (peg$silentFails === 0) {
|
|
5291
|
-
peg$fail(peg$
|
|
5766
|
+
peg$fail(peg$e78);
|
|
5292
5767
|
}
|
|
5293
5768
|
}
|
|
5294
5769
|
return s0;
|
|
@@ -5296,13 +5771,13 @@ function peg$parse(input, options) {
|
|
|
5296
5771
|
function peg$parseItalicHalfTag() {
|
|
5297
5772
|
var s0;
|
|
5298
5773
|
if (input.charCodeAt(peg$currPos) === 95) {
|
|
5299
|
-
s0 = peg$
|
|
5774
|
+
s0 = peg$c72;
|
|
5300
5775
|
peg$currPos++;
|
|
5301
5776
|
}
|
|
5302
5777
|
else {
|
|
5303
5778
|
s0 = peg$FAILED;
|
|
5304
5779
|
if (peg$silentFails === 0) {
|
|
5305
|
-
peg$fail(peg$
|
|
5780
|
+
peg$fail(peg$e79);
|
|
5306
5781
|
}
|
|
5307
5782
|
}
|
|
5308
5783
|
return s0;
|
|
@@ -5310,13 +5785,13 @@ function peg$parse(input, options) {
|
|
|
5310
5785
|
function peg$parseLightHalfTag() {
|
|
5311
5786
|
var s0;
|
|
5312
5787
|
if (input.charCodeAt(peg$currPos) === 96) {
|
|
5313
|
-
s0 = peg$
|
|
5788
|
+
s0 = peg$c73;
|
|
5314
5789
|
peg$currPos++;
|
|
5315
5790
|
}
|
|
5316
5791
|
else {
|
|
5317
5792
|
s0 = peg$FAILED;
|
|
5318
5793
|
if (peg$silentFails === 0) {
|
|
5319
|
-
peg$fail(peg$
|
|
5794
|
+
peg$fail(peg$e80);
|
|
5320
5795
|
}
|
|
5321
5796
|
}
|
|
5322
5797
|
return s0;
|
|
@@ -5324,13 +5799,13 @@ function peg$parse(input, options) {
|
|
|
5324
5799
|
function peg$parseHighlightHalfTag() {
|
|
5325
5800
|
var s0;
|
|
5326
5801
|
if (input.charCodeAt(peg$currPos) === 33) {
|
|
5327
|
-
s0 = peg$
|
|
5802
|
+
s0 = peg$c74;
|
|
5328
5803
|
peg$currPos++;
|
|
5329
5804
|
}
|
|
5330
5805
|
else {
|
|
5331
5806
|
s0 = peg$FAILED;
|
|
5332
5807
|
if (peg$silentFails === 0) {
|
|
5333
|
-
peg$fail(peg$
|
|
5808
|
+
peg$fail(peg$e81);
|
|
5334
5809
|
}
|
|
5335
5810
|
}
|
|
5336
5811
|
return s0;
|
|
@@ -5421,14 +5896,14 @@ function peg$parse(input, options) {
|
|
|
5421
5896
|
}
|
|
5422
5897
|
function peg$parseBodyBitOpenTag() {
|
|
5423
5898
|
var s0;
|
|
5424
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5425
|
-
s0 = peg$
|
|
5899
|
+
if (input.substr(peg$currPos, 2) === peg$c75) {
|
|
5900
|
+
s0 = peg$c75;
|
|
5426
5901
|
peg$currPos += 2;
|
|
5427
5902
|
}
|
|
5428
5903
|
else {
|
|
5429
5904
|
s0 = peg$FAILED;
|
|
5430
5905
|
if (peg$silentFails === 0) {
|
|
5431
|
-
peg$fail(peg$
|
|
5906
|
+
peg$fail(peg$e82);
|
|
5432
5907
|
}
|
|
5433
5908
|
}
|
|
5434
5909
|
return s0;
|
|
@@ -5436,13 +5911,13 @@ function peg$parse(input, options) {
|
|
|
5436
5911
|
function peg$parseBodyBitCloseTag() {
|
|
5437
5912
|
var s0;
|
|
5438
5913
|
if (input.charCodeAt(peg$currPos) === 93) {
|
|
5439
|
-
s0 = peg$
|
|
5914
|
+
s0 = peg$c76;
|
|
5440
5915
|
peg$currPos++;
|
|
5441
5916
|
}
|
|
5442
5917
|
else {
|
|
5443
5918
|
s0 = peg$FAILED;
|
|
5444
5919
|
if (peg$silentFails === 0) {
|
|
5445
|
-
peg$fail(peg$
|
|
5920
|
+
peg$fail(peg$e83);
|
|
5446
5921
|
}
|
|
5447
5922
|
}
|
|
5448
5923
|
return s0;
|
|
@@ -5461,7 +5936,7 @@ function peg$parse(input, options) {
|
|
|
5461
5936
|
else {
|
|
5462
5937
|
s4 = peg$FAILED;
|
|
5463
5938
|
if (peg$silentFails === 0) {
|
|
5464
|
-
peg$fail(peg$
|
|
5939
|
+
peg$fail(peg$e22);
|
|
5465
5940
|
}
|
|
5466
5941
|
}
|
|
5467
5942
|
if (s4 !== peg$FAILED) {
|
|
@@ -5474,7 +5949,7 @@ function peg$parse(input, options) {
|
|
|
5474
5949
|
else {
|
|
5475
5950
|
s4 = peg$FAILED;
|
|
5476
5951
|
if (peg$silentFails === 0) {
|
|
5477
|
-
peg$fail(peg$
|
|
5952
|
+
peg$fail(peg$e22);
|
|
5478
5953
|
}
|
|
5479
5954
|
}
|
|
5480
5955
|
}
|
|
@@ -5492,7 +5967,7 @@ function peg$parse(input, options) {
|
|
|
5492
5967
|
s3 = peg$parseBodyBitCloseTag();
|
|
5493
5968
|
if (s3 !== peg$FAILED) {
|
|
5494
5969
|
peg$savedPos = s0;
|
|
5495
|
-
s0 = peg$
|
|
5970
|
+
s0 = peg$f66(s2);
|
|
5496
5971
|
}
|
|
5497
5972
|
else {
|
|
5498
5973
|
peg$currPos = s0;
|
|
@@ -5513,13 +5988,13 @@ function peg$parse(input, options) {
|
|
|
5513
5988
|
s1 = peg$parseBoldTag();
|
|
5514
5989
|
if (s1 !== peg$FAILED) {
|
|
5515
5990
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5516
|
-
s2 = peg$
|
|
5991
|
+
s2 = peg$c16;
|
|
5517
5992
|
peg$currPos++;
|
|
5518
5993
|
}
|
|
5519
5994
|
else {
|
|
5520
5995
|
s2 = peg$FAILED;
|
|
5521
5996
|
if (peg$silentFails === 0) {
|
|
5522
|
-
peg$fail(peg$
|
|
5997
|
+
peg$fail(peg$e19);
|
|
5523
5998
|
}
|
|
5524
5999
|
}
|
|
5525
6000
|
if (s2 === peg$FAILED) {
|
|
@@ -5532,13 +6007,13 @@ function peg$parse(input, options) {
|
|
|
5532
6007
|
peg$silentFails++;
|
|
5533
6008
|
s7 = peg$currPos;
|
|
5534
6009
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5535
|
-
s8 = peg$
|
|
6010
|
+
s8 = peg$c16;
|
|
5536
6011
|
peg$currPos++;
|
|
5537
6012
|
}
|
|
5538
6013
|
else {
|
|
5539
6014
|
s8 = peg$FAILED;
|
|
5540
6015
|
if (peg$silentFails === 0) {
|
|
5541
|
-
peg$fail(peg$
|
|
6016
|
+
peg$fail(peg$e19);
|
|
5542
6017
|
}
|
|
5543
6018
|
}
|
|
5544
6019
|
if (s8 === peg$FAILED) {
|
|
@@ -5569,7 +6044,7 @@ function peg$parse(input, options) {
|
|
|
5569
6044
|
else {
|
|
5570
6045
|
s7 = peg$FAILED;
|
|
5571
6046
|
if (peg$silentFails === 0) {
|
|
5572
|
-
peg$fail(peg$
|
|
6047
|
+
peg$fail(peg$e16);
|
|
5573
6048
|
}
|
|
5574
6049
|
}
|
|
5575
6050
|
if (s7 !== peg$FAILED) {
|
|
@@ -5592,13 +6067,13 @@ function peg$parse(input, options) {
|
|
|
5592
6067
|
peg$silentFails++;
|
|
5593
6068
|
s7 = peg$currPos;
|
|
5594
6069
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5595
|
-
s8 = peg$
|
|
6070
|
+
s8 = peg$c16;
|
|
5596
6071
|
peg$currPos++;
|
|
5597
6072
|
}
|
|
5598
6073
|
else {
|
|
5599
6074
|
s8 = peg$FAILED;
|
|
5600
6075
|
if (peg$silentFails === 0) {
|
|
5601
|
-
peg$fail(peg$
|
|
6076
|
+
peg$fail(peg$e19);
|
|
5602
6077
|
}
|
|
5603
6078
|
}
|
|
5604
6079
|
if (s8 === peg$FAILED) {
|
|
@@ -5629,7 +6104,7 @@ function peg$parse(input, options) {
|
|
|
5629
6104
|
else {
|
|
5630
6105
|
s7 = peg$FAILED;
|
|
5631
6106
|
if (peg$silentFails === 0) {
|
|
5632
|
-
peg$fail(peg$
|
|
6107
|
+
peg$fail(peg$e16);
|
|
5633
6108
|
}
|
|
5634
6109
|
}
|
|
5635
6110
|
if (s7 !== peg$FAILED) {
|
|
@@ -5648,13 +6123,13 @@ function peg$parse(input, options) {
|
|
|
5648
6123
|
}
|
|
5649
6124
|
s3 = input.substring(s3, peg$currPos);
|
|
5650
6125
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5651
|
-
s4 = peg$
|
|
6126
|
+
s4 = peg$c16;
|
|
5652
6127
|
peg$currPos++;
|
|
5653
6128
|
}
|
|
5654
6129
|
else {
|
|
5655
6130
|
s4 = peg$FAILED;
|
|
5656
6131
|
if (peg$silentFails === 0) {
|
|
5657
|
-
peg$fail(peg$
|
|
6132
|
+
peg$fail(peg$e19);
|
|
5658
6133
|
}
|
|
5659
6134
|
}
|
|
5660
6135
|
if (s4 === peg$FAILED) {
|
|
@@ -5663,7 +6138,7 @@ function peg$parse(input, options) {
|
|
|
5663
6138
|
s5 = peg$parseBoldTag();
|
|
5664
6139
|
if (s5 !== peg$FAILED) {
|
|
5665
6140
|
peg$savedPos = s0;
|
|
5666
|
-
s0 = peg$
|
|
6141
|
+
s0 = peg$f67(s3);
|
|
5667
6142
|
}
|
|
5668
6143
|
else {
|
|
5669
6144
|
peg$currPos = s0;
|
|
@@ -5679,13 +6154,13 @@ function peg$parse(input, options) {
|
|
|
5679
6154
|
s1 = peg$parseItalicTag();
|
|
5680
6155
|
if (s1 !== peg$FAILED) {
|
|
5681
6156
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5682
|
-
s2 = peg$
|
|
6157
|
+
s2 = peg$c16;
|
|
5683
6158
|
peg$currPos++;
|
|
5684
6159
|
}
|
|
5685
6160
|
else {
|
|
5686
6161
|
s2 = peg$FAILED;
|
|
5687
6162
|
if (peg$silentFails === 0) {
|
|
5688
|
-
peg$fail(peg$
|
|
6163
|
+
peg$fail(peg$e19);
|
|
5689
6164
|
}
|
|
5690
6165
|
}
|
|
5691
6166
|
if (s2 === peg$FAILED) {
|
|
@@ -5698,13 +6173,13 @@ function peg$parse(input, options) {
|
|
|
5698
6173
|
peg$silentFails++;
|
|
5699
6174
|
s7 = peg$currPos;
|
|
5700
6175
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5701
|
-
s8 = peg$
|
|
6176
|
+
s8 = peg$c16;
|
|
5702
6177
|
peg$currPos++;
|
|
5703
6178
|
}
|
|
5704
6179
|
else {
|
|
5705
6180
|
s8 = peg$FAILED;
|
|
5706
6181
|
if (peg$silentFails === 0) {
|
|
5707
|
-
peg$fail(peg$
|
|
6182
|
+
peg$fail(peg$e19);
|
|
5708
6183
|
}
|
|
5709
6184
|
}
|
|
5710
6185
|
if (s8 === peg$FAILED) {
|
|
@@ -5735,7 +6210,7 @@ function peg$parse(input, options) {
|
|
|
5735
6210
|
else {
|
|
5736
6211
|
s7 = peg$FAILED;
|
|
5737
6212
|
if (peg$silentFails === 0) {
|
|
5738
|
-
peg$fail(peg$
|
|
6213
|
+
peg$fail(peg$e16);
|
|
5739
6214
|
}
|
|
5740
6215
|
}
|
|
5741
6216
|
if (s7 !== peg$FAILED) {
|
|
@@ -5758,13 +6233,13 @@ function peg$parse(input, options) {
|
|
|
5758
6233
|
peg$silentFails++;
|
|
5759
6234
|
s7 = peg$currPos;
|
|
5760
6235
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5761
|
-
s8 = peg$
|
|
6236
|
+
s8 = peg$c16;
|
|
5762
6237
|
peg$currPos++;
|
|
5763
6238
|
}
|
|
5764
6239
|
else {
|
|
5765
6240
|
s8 = peg$FAILED;
|
|
5766
6241
|
if (peg$silentFails === 0) {
|
|
5767
|
-
peg$fail(peg$
|
|
6242
|
+
peg$fail(peg$e19);
|
|
5768
6243
|
}
|
|
5769
6244
|
}
|
|
5770
6245
|
if (s8 === peg$FAILED) {
|
|
@@ -5795,7 +6270,7 @@ function peg$parse(input, options) {
|
|
|
5795
6270
|
else {
|
|
5796
6271
|
s7 = peg$FAILED;
|
|
5797
6272
|
if (peg$silentFails === 0) {
|
|
5798
|
-
peg$fail(peg$
|
|
6273
|
+
peg$fail(peg$e16);
|
|
5799
6274
|
}
|
|
5800
6275
|
}
|
|
5801
6276
|
if (s7 !== peg$FAILED) {
|
|
@@ -5814,13 +6289,13 @@ function peg$parse(input, options) {
|
|
|
5814
6289
|
}
|
|
5815
6290
|
s3 = input.substring(s3, peg$currPos);
|
|
5816
6291
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5817
|
-
s4 = peg$
|
|
6292
|
+
s4 = peg$c16;
|
|
5818
6293
|
peg$currPos++;
|
|
5819
6294
|
}
|
|
5820
6295
|
else {
|
|
5821
6296
|
s4 = peg$FAILED;
|
|
5822
6297
|
if (peg$silentFails === 0) {
|
|
5823
|
-
peg$fail(peg$
|
|
6298
|
+
peg$fail(peg$e19);
|
|
5824
6299
|
}
|
|
5825
6300
|
}
|
|
5826
6301
|
if (s4 === peg$FAILED) {
|
|
@@ -5829,7 +6304,7 @@ function peg$parse(input, options) {
|
|
|
5829
6304
|
s5 = peg$parseItalicTag();
|
|
5830
6305
|
if (s5 !== peg$FAILED) {
|
|
5831
6306
|
peg$savedPos = s0;
|
|
5832
|
-
s0 = peg$
|
|
6307
|
+
s0 = peg$f68(s3);
|
|
5833
6308
|
}
|
|
5834
6309
|
else {
|
|
5835
6310
|
peg$currPos = s0;
|
|
@@ -5845,13 +6320,13 @@ function peg$parse(input, options) {
|
|
|
5845
6320
|
s1 = peg$parseLightTag();
|
|
5846
6321
|
if (s1 !== peg$FAILED) {
|
|
5847
6322
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5848
|
-
s2 = peg$
|
|
6323
|
+
s2 = peg$c16;
|
|
5849
6324
|
peg$currPos++;
|
|
5850
6325
|
}
|
|
5851
6326
|
else {
|
|
5852
6327
|
s2 = peg$FAILED;
|
|
5853
6328
|
if (peg$silentFails === 0) {
|
|
5854
|
-
peg$fail(peg$
|
|
6329
|
+
peg$fail(peg$e19);
|
|
5855
6330
|
}
|
|
5856
6331
|
}
|
|
5857
6332
|
if (s2 === peg$FAILED) {
|
|
@@ -5864,13 +6339,13 @@ function peg$parse(input, options) {
|
|
|
5864
6339
|
peg$silentFails++;
|
|
5865
6340
|
s7 = peg$currPos;
|
|
5866
6341
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5867
|
-
s8 = peg$
|
|
6342
|
+
s8 = peg$c16;
|
|
5868
6343
|
peg$currPos++;
|
|
5869
6344
|
}
|
|
5870
6345
|
else {
|
|
5871
6346
|
s8 = peg$FAILED;
|
|
5872
6347
|
if (peg$silentFails === 0) {
|
|
5873
|
-
peg$fail(peg$
|
|
6348
|
+
peg$fail(peg$e19);
|
|
5874
6349
|
}
|
|
5875
6350
|
}
|
|
5876
6351
|
if (s8 === peg$FAILED) {
|
|
@@ -5901,7 +6376,7 @@ function peg$parse(input, options) {
|
|
|
5901
6376
|
else {
|
|
5902
6377
|
s7 = peg$FAILED;
|
|
5903
6378
|
if (peg$silentFails === 0) {
|
|
5904
|
-
peg$fail(peg$
|
|
6379
|
+
peg$fail(peg$e16);
|
|
5905
6380
|
}
|
|
5906
6381
|
}
|
|
5907
6382
|
if (s7 !== peg$FAILED) {
|
|
@@ -5924,13 +6399,13 @@ function peg$parse(input, options) {
|
|
|
5924
6399
|
peg$silentFails++;
|
|
5925
6400
|
s7 = peg$currPos;
|
|
5926
6401
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5927
|
-
s8 = peg$
|
|
6402
|
+
s8 = peg$c16;
|
|
5928
6403
|
peg$currPos++;
|
|
5929
6404
|
}
|
|
5930
6405
|
else {
|
|
5931
6406
|
s8 = peg$FAILED;
|
|
5932
6407
|
if (peg$silentFails === 0) {
|
|
5933
|
-
peg$fail(peg$
|
|
6408
|
+
peg$fail(peg$e19);
|
|
5934
6409
|
}
|
|
5935
6410
|
}
|
|
5936
6411
|
if (s8 === peg$FAILED) {
|
|
@@ -5961,7 +6436,7 @@ function peg$parse(input, options) {
|
|
|
5961
6436
|
else {
|
|
5962
6437
|
s7 = peg$FAILED;
|
|
5963
6438
|
if (peg$silentFails === 0) {
|
|
5964
|
-
peg$fail(peg$
|
|
6439
|
+
peg$fail(peg$e16);
|
|
5965
6440
|
}
|
|
5966
6441
|
}
|
|
5967
6442
|
if (s7 !== peg$FAILED) {
|
|
@@ -5980,13 +6455,13 @@ function peg$parse(input, options) {
|
|
|
5980
6455
|
}
|
|
5981
6456
|
s3 = input.substring(s3, peg$currPos);
|
|
5982
6457
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5983
|
-
s4 = peg$
|
|
6458
|
+
s4 = peg$c16;
|
|
5984
6459
|
peg$currPos++;
|
|
5985
6460
|
}
|
|
5986
6461
|
else {
|
|
5987
6462
|
s4 = peg$FAILED;
|
|
5988
6463
|
if (peg$silentFails === 0) {
|
|
5989
|
-
peg$fail(peg$
|
|
6464
|
+
peg$fail(peg$e19);
|
|
5990
6465
|
}
|
|
5991
6466
|
}
|
|
5992
6467
|
if (s4 === peg$FAILED) {
|
|
@@ -5995,7 +6470,7 @@ function peg$parse(input, options) {
|
|
|
5995
6470
|
s5 = peg$parseLightTag();
|
|
5996
6471
|
if (s5 !== peg$FAILED) {
|
|
5997
6472
|
peg$savedPos = s0;
|
|
5998
|
-
s0 = peg$
|
|
6473
|
+
s0 = peg$f69(s3);
|
|
5999
6474
|
}
|
|
6000
6475
|
else {
|
|
6001
6476
|
peg$currPos = s0;
|
|
@@ -6011,13 +6486,13 @@ function peg$parse(input, options) {
|
|
|
6011
6486
|
s1 = peg$parseHighlightTag();
|
|
6012
6487
|
if (s1 !== peg$FAILED) {
|
|
6013
6488
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
6014
|
-
s2 = peg$
|
|
6489
|
+
s2 = peg$c16;
|
|
6015
6490
|
peg$currPos++;
|
|
6016
6491
|
}
|
|
6017
6492
|
else {
|
|
6018
6493
|
s2 = peg$FAILED;
|
|
6019
6494
|
if (peg$silentFails === 0) {
|
|
6020
|
-
peg$fail(peg$
|
|
6495
|
+
peg$fail(peg$e19);
|
|
6021
6496
|
}
|
|
6022
6497
|
}
|
|
6023
6498
|
if (s2 === peg$FAILED) {
|
|
@@ -6030,13 +6505,13 @@ function peg$parse(input, options) {
|
|
|
6030
6505
|
peg$silentFails++;
|
|
6031
6506
|
s7 = peg$currPos;
|
|
6032
6507
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
6033
|
-
s8 = peg$
|
|
6508
|
+
s8 = peg$c16;
|
|
6034
6509
|
peg$currPos++;
|
|
6035
6510
|
}
|
|
6036
6511
|
else {
|
|
6037
6512
|
s8 = peg$FAILED;
|
|
6038
6513
|
if (peg$silentFails === 0) {
|
|
6039
|
-
peg$fail(peg$
|
|
6514
|
+
peg$fail(peg$e19);
|
|
6040
6515
|
}
|
|
6041
6516
|
}
|
|
6042
6517
|
if (s8 === peg$FAILED) {
|
|
@@ -6067,7 +6542,7 @@ function peg$parse(input, options) {
|
|
|
6067
6542
|
else {
|
|
6068
6543
|
s7 = peg$FAILED;
|
|
6069
6544
|
if (peg$silentFails === 0) {
|
|
6070
|
-
peg$fail(peg$
|
|
6545
|
+
peg$fail(peg$e16);
|
|
6071
6546
|
}
|
|
6072
6547
|
}
|
|
6073
6548
|
if (s7 !== peg$FAILED) {
|
|
@@ -6090,13 +6565,13 @@ function peg$parse(input, options) {
|
|
|
6090
6565
|
peg$silentFails++;
|
|
6091
6566
|
s7 = peg$currPos;
|
|
6092
6567
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
6093
|
-
s8 = peg$
|
|
6568
|
+
s8 = peg$c16;
|
|
6094
6569
|
peg$currPos++;
|
|
6095
6570
|
}
|
|
6096
6571
|
else {
|
|
6097
6572
|
s8 = peg$FAILED;
|
|
6098
6573
|
if (peg$silentFails === 0) {
|
|
6099
|
-
peg$fail(peg$
|
|
6574
|
+
peg$fail(peg$e19);
|
|
6100
6575
|
}
|
|
6101
6576
|
}
|
|
6102
6577
|
if (s8 === peg$FAILED) {
|
|
@@ -6127,7 +6602,7 @@ function peg$parse(input, options) {
|
|
|
6127
6602
|
else {
|
|
6128
6603
|
s7 = peg$FAILED;
|
|
6129
6604
|
if (peg$silentFails === 0) {
|
|
6130
|
-
peg$fail(peg$
|
|
6605
|
+
peg$fail(peg$e16);
|
|
6131
6606
|
}
|
|
6132
6607
|
}
|
|
6133
6608
|
if (s7 !== peg$FAILED) {
|
|
@@ -6146,13 +6621,13 @@ function peg$parse(input, options) {
|
|
|
6146
6621
|
}
|
|
6147
6622
|
s3 = input.substring(s3, peg$currPos);
|
|
6148
6623
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
6149
|
-
s4 = peg$
|
|
6624
|
+
s4 = peg$c16;
|
|
6150
6625
|
peg$currPos++;
|
|
6151
6626
|
}
|
|
6152
6627
|
else {
|
|
6153
6628
|
s4 = peg$FAILED;
|
|
6154
6629
|
if (peg$silentFails === 0) {
|
|
6155
|
-
peg$fail(peg$
|
|
6630
|
+
peg$fail(peg$e19);
|
|
6156
6631
|
}
|
|
6157
6632
|
}
|
|
6158
6633
|
if (s4 === peg$FAILED) {
|
|
@@ -6161,7 +6636,7 @@ function peg$parse(input, options) {
|
|
|
6161
6636
|
s5 = peg$parseHighlightTag();
|
|
6162
6637
|
if (s5 !== peg$FAILED) {
|
|
6163
6638
|
peg$savedPos = s0;
|
|
6164
|
-
s0 = peg$
|
|
6639
|
+
s0 = peg$f70(s3);
|
|
6165
6640
|
}
|
|
6166
6641
|
else {
|
|
6167
6642
|
peg$currPos = s0;
|
|
@@ -6328,57 +6803,57 @@ function peg$parse(input, options) {
|
|
|
6328
6803
|
var s0, s1;
|
|
6329
6804
|
peg$silentFails++;
|
|
6330
6805
|
if (input.charCodeAt(peg$currPos) === 10) {
|
|
6331
|
-
s0 = peg$
|
|
6806
|
+
s0 = peg$c77;
|
|
6332
6807
|
peg$currPos++;
|
|
6333
6808
|
}
|
|
6334
6809
|
else {
|
|
6335
6810
|
s0 = peg$FAILED;
|
|
6336
6811
|
if (peg$silentFails === 0) {
|
|
6337
|
-
peg$fail(peg$
|
|
6812
|
+
peg$fail(peg$e85);
|
|
6338
6813
|
}
|
|
6339
6814
|
}
|
|
6340
6815
|
if (s0 === peg$FAILED) {
|
|
6341
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
6342
|
-
s0 = peg$
|
|
6816
|
+
if (input.substr(peg$currPos, 2) === peg$c78) {
|
|
6817
|
+
s0 = peg$c78;
|
|
6343
6818
|
peg$currPos += 2;
|
|
6344
6819
|
}
|
|
6345
6820
|
else {
|
|
6346
6821
|
s0 = peg$FAILED;
|
|
6347
6822
|
if (peg$silentFails === 0) {
|
|
6348
|
-
peg$fail(peg$
|
|
6823
|
+
peg$fail(peg$e86);
|
|
6349
6824
|
}
|
|
6350
6825
|
}
|
|
6351
6826
|
if (s0 === peg$FAILED) {
|
|
6352
6827
|
if (input.charCodeAt(peg$currPos) === 13) {
|
|
6353
|
-
s0 = peg$
|
|
6828
|
+
s0 = peg$c79;
|
|
6354
6829
|
peg$currPos++;
|
|
6355
6830
|
}
|
|
6356
6831
|
else {
|
|
6357
6832
|
s0 = peg$FAILED;
|
|
6358
6833
|
if (peg$silentFails === 0) {
|
|
6359
|
-
peg$fail(peg$
|
|
6834
|
+
peg$fail(peg$e87);
|
|
6360
6835
|
}
|
|
6361
6836
|
}
|
|
6362
6837
|
if (s0 === peg$FAILED) {
|
|
6363
6838
|
if (input.charCodeAt(peg$currPos) === 8232) {
|
|
6364
|
-
s0 = peg$
|
|
6839
|
+
s0 = peg$c80;
|
|
6365
6840
|
peg$currPos++;
|
|
6366
6841
|
}
|
|
6367
6842
|
else {
|
|
6368
6843
|
s0 = peg$FAILED;
|
|
6369
6844
|
if (peg$silentFails === 0) {
|
|
6370
|
-
peg$fail(peg$
|
|
6845
|
+
peg$fail(peg$e88);
|
|
6371
6846
|
}
|
|
6372
6847
|
}
|
|
6373
6848
|
if (s0 === peg$FAILED) {
|
|
6374
6849
|
if (input.charCodeAt(peg$currPos) === 8233) {
|
|
6375
|
-
s0 = peg$
|
|
6850
|
+
s0 = peg$c81;
|
|
6376
6851
|
peg$currPos++;
|
|
6377
6852
|
}
|
|
6378
6853
|
else {
|
|
6379
6854
|
s0 = peg$FAILED;
|
|
6380
6855
|
if (peg$silentFails === 0) {
|
|
6381
|
-
peg$fail(peg$
|
|
6856
|
+
peg$fail(peg$e89);
|
|
6382
6857
|
}
|
|
6383
6858
|
}
|
|
6384
6859
|
}
|
|
@@ -6389,7 +6864,7 @@ function peg$parse(input, options) {
|
|
|
6389
6864
|
if (s0 === peg$FAILED) {
|
|
6390
6865
|
s1 = peg$FAILED;
|
|
6391
6866
|
if (peg$silentFails === 0) {
|
|
6392
|
-
peg$fail(peg$
|
|
6867
|
+
peg$fail(peg$e84);
|
|
6393
6868
|
}
|
|
6394
6869
|
}
|
|
6395
6870
|
return s0;
|
|
@@ -6424,7 +6899,7 @@ function peg$parse(input, options) {
|
|
|
6424
6899
|
peg$silentFails--;
|
|
6425
6900
|
s1 = peg$FAILED;
|
|
6426
6901
|
if (peg$silentFails === 0) {
|
|
6427
|
-
peg$fail(peg$
|
|
6902
|
+
peg$fail(peg$e90);
|
|
6428
6903
|
}
|
|
6429
6904
|
return s0;
|
|
6430
6905
|
}
|
|
@@ -6448,7 +6923,7 @@ function peg$parse(input, options) {
|
|
|
6448
6923
|
peg$silentFails--;
|
|
6449
6924
|
s1 = peg$FAILED;
|
|
6450
6925
|
if (peg$silentFails === 0) {
|
|
6451
|
-
peg$fail(peg$
|
|
6926
|
+
peg$fail(peg$e91);
|
|
6452
6927
|
}
|
|
6453
6928
|
return s0;
|
|
6454
6929
|
}
|
|
@@ -6472,7 +6947,7 @@ function peg$parse(input, options) {
|
|
|
6472
6947
|
if (s0 === peg$FAILED) {
|
|
6473
6948
|
s1 = peg$FAILED;
|
|
6474
6949
|
if (peg$silentFails === 0) {
|
|
6475
|
-
peg$fail(peg$
|
|
6950
|
+
peg$fail(peg$e92);
|
|
6476
6951
|
}
|
|
6477
6952
|
}
|
|
6478
6953
|
return s0;
|
|
@@ -6487,14 +6962,14 @@ function peg$parse(input, options) {
|
|
|
6487
6962
|
else {
|
|
6488
6963
|
s0 = peg$FAILED;
|
|
6489
6964
|
if (peg$silentFails === 0) {
|
|
6490
|
-
peg$fail(peg$
|
|
6965
|
+
peg$fail(peg$e94);
|
|
6491
6966
|
}
|
|
6492
6967
|
}
|
|
6493
6968
|
peg$silentFails--;
|
|
6494
6969
|
if (s0 === peg$FAILED) {
|
|
6495
6970
|
s1 = peg$FAILED;
|
|
6496
6971
|
if (peg$silentFails === 0) {
|
|
6497
|
-
peg$fail(peg$
|
|
6972
|
+
peg$fail(peg$e93);
|
|
6498
6973
|
}
|
|
6499
6974
|
}
|
|
6500
6975
|
return s0;
|
|
@@ -6508,7 +6983,7 @@ function peg$parse(input, options) {
|
|
|
6508
6983
|
else {
|
|
6509
6984
|
s0 = peg$FAILED;
|
|
6510
6985
|
if (peg$silentFails === 0) {
|
|
6511
|
-
peg$fail(peg$
|
|
6986
|
+
peg$fail(peg$e95);
|
|
6512
6987
|
}
|
|
6513
6988
|
}
|
|
6514
6989
|
return s0;
|
|
@@ -6522,7 +6997,7 @@ function peg$parse(input, options) {
|
|
|
6522
6997
|
else {
|
|
6523
6998
|
s0 = peg$FAILED;
|
|
6524
6999
|
if (peg$silentFails === 0) {
|
|
6525
|
-
peg$fail(peg$
|
|
7000
|
+
peg$fail(peg$e96);
|
|
6526
7001
|
}
|
|
6527
7002
|
}
|
|
6528
7003
|
return s0;
|
|
@@ -6536,7 +7011,7 @@ function peg$parse(input, options) {
|
|
|
6536
7011
|
else {
|
|
6537
7012
|
s0 = peg$FAILED;
|
|
6538
7013
|
if (peg$silentFails === 0) {
|
|
6539
|
-
peg$fail(peg$
|
|
7014
|
+
peg$fail(peg$e97);
|
|
6540
7015
|
}
|
|
6541
7016
|
}
|
|
6542
7017
|
return s0;
|
|
@@ -6554,7 +7029,7 @@ function peg$parse(input, options) {
|
|
|
6554
7029
|
else {
|
|
6555
7030
|
s1 = peg$FAILED;
|
|
6556
7031
|
if (peg$silentFails === 0) {
|
|
6557
|
-
peg$fail(peg$
|
|
7032
|
+
peg$fail(peg$e16);
|
|
6558
7033
|
}
|
|
6559
7034
|
}
|
|
6560
7035
|
peg$silentFails--;
|
|
@@ -6572,38 +7047,38 @@ function peg$parse(input, options) {
|
|
|
6572
7047
|
var s0, s1, s2, s3, s4, s5, s6, s7, s8;
|
|
6573
7048
|
s0 = peg$currPos;
|
|
6574
7049
|
s1 = peg$currPos;
|
|
6575
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6576
|
-
s2 = peg$
|
|
7050
|
+
if (input.substr(peg$currPos, 4) === peg$c82) {
|
|
7051
|
+
s2 = peg$c82;
|
|
6577
7052
|
peg$currPos += 4;
|
|
6578
7053
|
}
|
|
6579
7054
|
else {
|
|
6580
7055
|
s2 = peg$FAILED;
|
|
6581
7056
|
if (peg$silentFails === 0) {
|
|
6582
|
-
peg$fail(peg$
|
|
7057
|
+
peg$fail(peg$e98);
|
|
6583
7058
|
}
|
|
6584
7059
|
}
|
|
6585
7060
|
if (s2 !== peg$FAILED) {
|
|
6586
7061
|
if (input.charCodeAt(peg$currPos) === 115) {
|
|
6587
|
-
s3 = peg$
|
|
7062
|
+
s3 = peg$c83;
|
|
6588
7063
|
peg$currPos++;
|
|
6589
7064
|
}
|
|
6590
7065
|
else {
|
|
6591
7066
|
s3 = peg$FAILED;
|
|
6592
7067
|
if (peg$silentFails === 0) {
|
|
6593
|
-
peg$fail(peg$
|
|
7068
|
+
peg$fail(peg$e99);
|
|
6594
7069
|
}
|
|
6595
7070
|
}
|
|
6596
7071
|
if (s3 === peg$FAILED) {
|
|
6597
7072
|
s3 = null;
|
|
6598
7073
|
}
|
|
6599
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6600
|
-
s4 = peg$
|
|
7074
|
+
if (input.substr(peg$currPos, 3) === peg$c84) {
|
|
7075
|
+
s4 = peg$c84;
|
|
6601
7076
|
peg$currPos += 3;
|
|
6602
7077
|
}
|
|
6603
7078
|
else {
|
|
6604
7079
|
s4 = peg$FAILED;
|
|
6605
7080
|
if (peg$silentFails === 0) {
|
|
6606
|
-
peg$fail(peg$
|
|
7081
|
+
peg$fail(peg$e100);
|
|
6607
7082
|
}
|
|
6608
7083
|
}
|
|
6609
7084
|
if (s4 !== peg$FAILED) {
|
|
@@ -6690,38 +7165,38 @@ function peg$parse(input, options) {
|
|
|
6690
7165
|
s0 = peg$currPos;
|
|
6691
7166
|
s1 = peg$currPos;
|
|
6692
7167
|
s2 = peg$currPos;
|
|
6693
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6694
|
-
s3 = peg$
|
|
7168
|
+
if (input.substr(peg$currPos, 4) === peg$c82) {
|
|
7169
|
+
s3 = peg$c82;
|
|
6695
7170
|
peg$currPos += 4;
|
|
6696
7171
|
}
|
|
6697
7172
|
else {
|
|
6698
7173
|
s3 = peg$FAILED;
|
|
6699
7174
|
if (peg$silentFails === 0) {
|
|
6700
|
-
peg$fail(peg$
|
|
7175
|
+
peg$fail(peg$e98);
|
|
6701
7176
|
}
|
|
6702
7177
|
}
|
|
6703
7178
|
if (s3 !== peg$FAILED) {
|
|
6704
7179
|
if (input.charCodeAt(peg$currPos) === 115) {
|
|
6705
|
-
s4 = peg$
|
|
7180
|
+
s4 = peg$c83;
|
|
6706
7181
|
peg$currPos++;
|
|
6707
7182
|
}
|
|
6708
7183
|
else {
|
|
6709
7184
|
s4 = peg$FAILED;
|
|
6710
7185
|
if (peg$silentFails === 0) {
|
|
6711
|
-
peg$fail(peg$
|
|
7186
|
+
peg$fail(peg$e99);
|
|
6712
7187
|
}
|
|
6713
7188
|
}
|
|
6714
7189
|
if (s4 === peg$FAILED) {
|
|
6715
7190
|
s4 = null;
|
|
6716
7191
|
}
|
|
6717
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6718
|
-
s5 = peg$
|
|
7192
|
+
if (input.substr(peg$currPos, 3) === peg$c84) {
|
|
7193
|
+
s5 = peg$c84;
|
|
6719
7194
|
peg$currPos += 3;
|
|
6720
7195
|
}
|
|
6721
7196
|
else {
|
|
6722
7197
|
s5 = peg$FAILED;
|
|
6723
7198
|
if (peg$silentFails === 0) {
|
|
6724
|
-
peg$fail(peg$
|
|
7199
|
+
peg$fail(peg$e100);
|
|
6725
7200
|
}
|
|
6726
7201
|
}
|
|
6727
7202
|
if (s5 !== peg$FAILED) {
|
|
@@ -6738,14 +7213,14 @@ function peg$parse(input, options) {
|
|
|
6738
7213
|
s2 = peg$FAILED;
|
|
6739
7214
|
}
|
|
6740
7215
|
if (s2 === peg$FAILED) {
|
|
6741
|
-
if (input.substr(peg$currPos, 7) === peg$
|
|
6742
|
-
s2 = peg$
|
|
7216
|
+
if (input.substr(peg$currPos, 7) === peg$c85) {
|
|
7217
|
+
s2 = peg$c85;
|
|
6743
7218
|
peg$currPos += 7;
|
|
6744
7219
|
}
|
|
6745
7220
|
else {
|
|
6746
7221
|
s2 = peg$FAILED;
|
|
6747
7222
|
if (peg$silentFails === 0) {
|
|
6748
|
-
peg$fail(peg$
|
|
7223
|
+
peg$fail(peg$e101);
|
|
6749
7224
|
}
|
|
6750
7225
|
}
|
|
6751
7226
|
}
|
|
@@ -6817,7 +7292,7 @@ function peg$parse(input, options) {
|
|
|
6817
7292
|
}
|
|
6818
7293
|
s2 = input.substring(s2, peg$currPos);
|
|
6819
7294
|
peg$savedPos = s0;
|
|
6820
|
-
s0 = peg$
|
|
7295
|
+
s0 = peg$f71(s1, s2);
|
|
6821
7296
|
}
|
|
6822
7297
|
else {
|
|
6823
7298
|
peg$currPos = s0;
|
|
@@ -6834,40 +7309,40 @@ function peg$parse(input, options) {
|
|
|
6834
7309
|
else {
|
|
6835
7310
|
s0 = peg$FAILED;
|
|
6836
7311
|
if (peg$silentFails === 0) {
|
|
6837
|
-
peg$fail(peg$
|
|
7312
|
+
peg$fail(peg$e102);
|
|
6838
7313
|
}
|
|
6839
7314
|
}
|
|
6840
7315
|
if (s0 === peg$FAILED) {
|
|
6841
7316
|
if (input.charCodeAt(peg$currPos) === 126) {
|
|
6842
|
-
s0 = peg$
|
|
7317
|
+
s0 = peg$c86;
|
|
6843
7318
|
peg$currPos++;
|
|
6844
7319
|
}
|
|
6845
7320
|
else {
|
|
6846
7321
|
s0 = peg$FAILED;
|
|
6847
7322
|
if (peg$silentFails === 0) {
|
|
6848
|
-
peg$fail(peg$
|
|
7323
|
+
peg$fail(peg$e103);
|
|
6849
7324
|
}
|
|
6850
7325
|
}
|
|
6851
7326
|
if (s0 === peg$FAILED) {
|
|
6852
7327
|
if (input.charCodeAt(peg$currPos) === 94) {
|
|
6853
|
-
s0 = peg$
|
|
7328
|
+
s0 = peg$c87;
|
|
6854
7329
|
peg$currPos++;
|
|
6855
7330
|
}
|
|
6856
7331
|
else {
|
|
6857
7332
|
s0 = peg$FAILED;
|
|
6858
7333
|
if (peg$silentFails === 0) {
|
|
6859
|
-
peg$fail(peg$
|
|
7334
|
+
peg$fail(peg$e104);
|
|
6860
7335
|
}
|
|
6861
7336
|
}
|
|
6862
7337
|
if (s0 === peg$FAILED) {
|
|
6863
7338
|
if (input.charCodeAt(peg$currPos) === 39) {
|
|
6864
|
-
s0 = peg$
|
|
7339
|
+
s0 = peg$c88;
|
|
6865
7340
|
peg$currPos++;
|
|
6866
7341
|
}
|
|
6867
7342
|
else {
|
|
6868
7343
|
s0 = peg$FAILED;
|
|
6869
7344
|
if (peg$silentFails === 0) {
|
|
6870
|
-
peg$fail(peg$
|
|
7345
|
+
peg$fail(peg$e105);
|
|
6871
7346
|
}
|
|
6872
7347
|
}
|
|
6873
7348
|
}
|