@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
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.parse = exports.SyntaxError = void 0;
|
|
7
7
|
const Breakscape_1 = require("../../../breakscaping/Breakscape");
|
|
8
|
-
// export const UNBREAKSCAPE_REGEX = new RegExp(/=\^(\^*)(?==)|\*\^(\^*)(?=\*)|_\^(\^*)(?=_)|`\^(\^*)(?=`)|!\^(\^*)(?=!)|\^(\^*)\]|\[\^(\^*)|•\^(\^*)|#\^(\^*)|\|\^(\^*)|\^(\^*)/, "g")
|
|
9
8
|
function s(_string) {
|
|
10
9
|
return _string !== null && _string !== void 0 ? _string : "";
|
|
11
10
|
}
|
|
@@ -14,46 +13,55 @@ function unbreakscape(_str) {
|
|
|
14
13
|
// function replacer(match, p1, offset, string, groups) {
|
|
15
14
|
// return match.replace("^", "");
|
|
16
15
|
// }
|
|
17
|
-
// let re_ =
|
|
16
|
+
// let re_ = new RegExp( /=\^(\^*)(?==)|\*\^(\^*)(?=\*)|_\^(\^*)(?=_)|`\^(\^*)(?=`)|!\^(\^*)(?=!)|\[\^(\^*)|•\^(\^*)|#\^(\^*)|\|\^(\^*)|\|\^(\^*)/, "g") // RegExp( /([\[*_`!])\^(?!\^)/, "g")
|
|
18
17
|
// u_ = u_.replace(re_, replacer)
|
|
19
18
|
u_ = Breakscape_1.Breakscape.unbreakscape(u_);
|
|
20
19
|
return u_;
|
|
21
20
|
}
|
|
22
|
-
function
|
|
23
|
-
if (typeof
|
|
24
|
-
|
|
21
|
+
function removeTempParsingParent(obj) {
|
|
22
|
+
if (obj && typeof obj === 'object') {
|
|
23
|
+
delete obj._tempParsingParent; // Remove the property if exists
|
|
24
|
+
Object.keys(obj).forEach(key => {
|
|
25
|
+
// Recursively call the function for all sub-objects
|
|
26
|
+
removeTempParsingParent(obj[key]);
|
|
27
|
+
});
|
|
25
28
|
}
|
|
26
|
-
|
|
29
|
+
}
|
|
30
|
+
function bitmarkPlusPlus(_str) {
|
|
27
31
|
// if (parser) {
|
|
28
32
|
// return parser.parse(_str, { startRule: "bitmarkPlusPlus" })
|
|
29
33
|
// } else {
|
|
30
34
|
// // embedded in Get More Brain
|
|
31
35
|
// return parse(_str, { startRule: "bitmarkPlusPlus" })
|
|
32
36
|
// }
|
|
33
|
-
}
|
|
34
|
-
function bitmarkPlusString(_str) {
|
|
35
37
|
if (typeof parser !== 'undefined') {
|
|
36
|
-
return parser.parse(_str, { startRule: "
|
|
38
|
+
return parser.parse(_str, { startRule: "bitmarkPlusPlus" });
|
|
37
39
|
}
|
|
38
|
-
return peg$parse(_str, { startRule: "
|
|
40
|
+
return peg$parse(_str, { startRule: "bitmarkPlusPlus" });
|
|
41
|
+
}
|
|
42
|
+
function bitmarkPlusString(_str) {
|
|
39
43
|
// if (parser) {
|
|
40
44
|
// return parser.parse(_str, { startRule: "bitmarkPlusString" })
|
|
41
45
|
// } else {
|
|
42
46
|
// // embedded in Get More Brain
|
|
43
47
|
// return parse(_str, { startRule: "bitmarkPlusString" })
|
|
44
48
|
// }
|
|
45
|
-
}
|
|
46
|
-
function bitmarkMinusMinusString(_str) {
|
|
47
49
|
if (typeof parser !== 'undefined') {
|
|
48
|
-
return parser.parse(_str, { startRule: "
|
|
50
|
+
return parser.parse(_str, { startRule: "bitmarkPlusString" });
|
|
49
51
|
}
|
|
50
|
-
return peg$parse(_str, { startRule: "
|
|
52
|
+
return peg$parse(_str, { startRule: "bitmarkPlusString" });
|
|
53
|
+
}
|
|
54
|
+
function bitmarkMinusMinusString(_str) {
|
|
51
55
|
// if (parser) {
|
|
52
56
|
// return parser.parse(_str, { startRule: "bitmarkMinusMinusString" })
|
|
53
57
|
// } else {
|
|
54
58
|
// // embedded in Get More Brain
|
|
55
59
|
// return parse(_str, { startRule: "bitmarkMinusMinusString" })
|
|
56
60
|
// }
|
|
61
|
+
if (typeof parser !== 'undefined') {
|
|
62
|
+
return parser.parse(_str, { startRule: "bitmarkMinusMinusString" });
|
|
63
|
+
}
|
|
64
|
+
return peg$parse(_str, { startRule: "bitmarkMinusMinusString" });
|
|
57
65
|
}
|
|
58
66
|
function peg$subclass(child, parent) {
|
|
59
67
|
function C() { this.constructor = child; }
|
|
@@ -216,70 +224,84 @@ function peg$parse(input, options) {
|
|
|
216
224
|
var peg$c8 = "JavaScript";
|
|
217
225
|
var peg$c9 = "\u2022 ";
|
|
218
226
|
var peg$c10 = "\u20221 ";
|
|
219
|
-
var peg$c11 = "\
|
|
220
|
-
var peg$c12 = "\u2022
|
|
221
|
-
var peg$c13 = "\
|
|
222
|
-
var peg$c14 = "
|
|
223
|
-
var peg$c15 = "
|
|
224
|
-
var peg$c16 = "
|
|
225
|
-
var peg$c17 = "
|
|
226
|
-
var peg$c18 = "
|
|
227
|
-
var peg$c19 = "
|
|
228
|
-
var peg$c20 = "
|
|
229
|
-
var peg$c21 = "
|
|
230
|
-
var peg$c22 = "
|
|
231
|
-
var peg$c23 = "
|
|
232
|
-
var peg$c24 = "
|
|
233
|
-
var peg$c25 = "
|
|
234
|
-
var peg$c26 = "
|
|
235
|
-
var peg$c27 = "
|
|
236
|
-
var peg$c28 = "
|
|
237
|
-
var peg$c29 = "
|
|
238
|
-
var peg$c30 = "
|
|
239
|
-
var peg$c31 = "
|
|
240
|
-
var peg$c32 = "
|
|
241
|
-
var peg$c33 = "
|
|
242
|
-
var peg$c34 = "
|
|
243
|
-
var peg$c35 = "
|
|
244
|
-
var peg$c36 = "
|
|
245
|
-
var peg$c37 = "
|
|
246
|
-
var peg$c38 = "
|
|
247
|
-
var peg$c39 = "
|
|
248
|
-
var peg$c40 = "
|
|
249
|
-
var peg$c41 = "
|
|
250
|
-
var peg$c42 = "
|
|
251
|
-
var peg$c43 = "
|
|
252
|
-
var peg$c44 = "
|
|
253
|
-
var peg$c45 = "
|
|
254
|
-
var peg$c46 = "
|
|
255
|
-
var peg$c47 = "
|
|
256
|
-
var peg$c48 = "
|
|
257
|
-
var peg$c49 = "
|
|
258
|
-
var peg$c50 = "
|
|
259
|
-
var peg$c51 = "
|
|
260
|
-
var peg$c52 = "
|
|
261
|
-
var peg$c53 = "
|
|
262
|
-
var peg$c54 = "
|
|
263
|
-
var peg$c55 = "
|
|
264
|
-
var peg$c56 = "
|
|
265
|
-
var peg$c57 = "
|
|
266
|
-
var peg$c58 = "
|
|
267
|
-
var peg$c59 = "
|
|
268
|
-
var peg$c60 = "
|
|
269
|
-
var peg$c61 = "
|
|
270
|
-
var peg$c62 = "
|
|
271
|
-
var peg$c63 = "
|
|
272
|
-
var peg$c64 = "
|
|
273
|
-
var peg$c65 = "
|
|
274
|
-
var peg$c66 = "
|
|
275
|
-
var peg$c67 = "
|
|
276
|
-
var peg$c68 = "
|
|
277
|
-
var peg$c69 = "
|
|
278
|
-
var peg$c70 = "
|
|
279
|
-
var peg$c71 = "
|
|
280
|
-
var peg$c72 = "
|
|
281
|
-
var peg$c73 = "
|
|
282
|
-
var peg$c74 = "
|
|
227
|
+
var peg$c11 = "\u2022A ";
|
|
228
|
+
var peg$c12 = "\u2022+ ";
|
|
229
|
+
var peg$c13 = "\u2022- ";
|
|
230
|
+
var peg$c14 = "\t";
|
|
231
|
+
var peg$c15 = "image";
|
|
232
|
+
var peg$c16 = " ";
|
|
233
|
+
var peg$c17 = "#";
|
|
234
|
+
var peg$c18 = "@";
|
|
235
|
+
var peg$c19 = "width";
|
|
236
|
+
var peg$c20 = "height";
|
|
237
|
+
var peg$c21 = "=";
|
|
238
|
+
var peg$c22 = "\uD835\uDC53";
|
|
239
|
+
var peg$c23 = "link:";
|
|
240
|
+
var peg$c24 = "var:";
|
|
241
|
+
var peg$c25 = "code:";
|
|
242
|
+
var peg$c26 = "timer";
|
|
243
|
+
var peg$c27 = "timer:";
|
|
244
|
+
var peg$c28 = "duration:";
|
|
245
|
+
var peg$c29 = "P";
|
|
246
|
+
var peg$c30 = "color:";
|
|
247
|
+
var peg$c31 = "bold";
|
|
248
|
+
var peg$c32 = "italic";
|
|
249
|
+
var peg$c33 = "light";
|
|
250
|
+
var peg$c34 = "highlight";
|
|
251
|
+
var peg$c35 = "strike";
|
|
252
|
+
var peg$c36 = "subscript";
|
|
253
|
+
var peg$c37 = "superscript";
|
|
254
|
+
var peg$c38 = "ins";
|
|
255
|
+
var peg$c39 = "del";
|
|
256
|
+
var peg$c40 = "underline";
|
|
257
|
+
var peg$c41 = "doubleUnderline";
|
|
258
|
+
var peg$c42 = "circle";
|
|
259
|
+
var peg$c43 = "languageEm";
|
|
260
|
+
var peg$c44 = "userUnderline";
|
|
261
|
+
var peg$c45 = "userDoubleUnderline";
|
|
262
|
+
var peg$c46 = "userStrike";
|
|
263
|
+
var peg$c47 = "userCircle";
|
|
264
|
+
var peg$c48 = "userHighlight";
|
|
265
|
+
var peg$c49 = "aqua";
|
|
266
|
+
var peg$c50 = "black";
|
|
267
|
+
var peg$c51 = "blue";
|
|
268
|
+
var peg$c52 = "pink";
|
|
269
|
+
var peg$c53 = "fuchsia";
|
|
270
|
+
var peg$c54 = "lightgrey";
|
|
271
|
+
var peg$c55 = "gray";
|
|
272
|
+
var peg$c56 = "darkgray";
|
|
273
|
+
var peg$c57 = "green";
|
|
274
|
+
var peg$c58 = "lime";
|
|
275
|
+
var peg$c59 = "magenta";
|
|
276
|
+
var peg$c60 = "maroon";
|
|
277
|
+
var peg$c61 = "navy";
|
|
278
|
+
var peg$c62 = "olive";
|
|
279
|
+
var peg$c63 = "orange";
|
|
280
|
+
var peg$c64 = "purple";
|
|
281
|
+
var peg$c65 = "red";
|
|
282
|
+
var peg$c66 = "silver";
|
|
283
|
+
var peg$c67 = "teal";
|
|
284
|
+
var peg$c68 = "violet";
|
|
285
|
+
var peg$c69 = "white";
|
|
286
|
+
var peg$c70 = "yellow";
|
|
287
|
+
var peg$c71 = "*";
|
|
288
|
+
var peg$c72 = "_";
|
|
289
|
+
var peg$c73 = "`";
|
|
290
|
+
var peg$c74 = "!";
|
|
291
|
+
var peg$c75 = "[!";
|
|
292
|
+
var peg$c76 = "]";
|
|
293
|
+
var peg$c77 = "\n";
|
|
294
|
+
var peg$c78 = "\r\n";
|
|
295
|
+
var peg$c79 = "\r";
|
|
296
|
+
var peg$c80 = "\u2028";
|
|
297
|
+
var peg$c81 = "\u2029";
|
|
298
|
+
var peg$c82 = "http";
|
|
299
|
+
var peg$c83 = "s";
|
|
300
|
+
var peg$c84 = "://";
|
|
301
|
+
var peg$c85 = "mailto:";
|
|
302
|
+
var peg$c86 = "~";
|
|
303
|
+
var peg$c87 = "^";
|
|
304
|
+
var peg$c88 = "'";
|
|
283
305
|
var peg$r0 = /^[ \t]/;
|
|
284
306
|
var peg$r1 = /^[0-9]/;
|
|
285
307
|
var peg$r2 = /^[\t\v\f \xA0\uFEFF \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
@@ -300,87 +322,101 @@ function peg$parse(input, options) {
|
|
|
300
322
|
var peg$e10 = peg$literalExpectation("JavaScript", false);
|
|
301
323
|
var peg$e11 = peg$literalExpectation("\u2022 ", false);
|
|
302
324
|
var peg$e12 = peg$literalExpectation("\u20221 ", false);
|
|
303
|
-
var peg$e13 = peg$literalExpectation("\
|
|
304
|
-
var peg$e14 = peg$literalExpectation("\u2022
|
|
305
|
-
var peg$e15 = peg$
|
|
306
|
-
var peg$e16 = peg$
|
|
307
|
-
var peg$e17 = peg$literalExpectation("
|
|
308
|
-
var peg$e18 = peg$literalExpectation("
|
|
309
|
-
var peg$e19 = peg$literalExpectation("
|
|
310
|
-
var peg$e20 = peg$literalExpectation("
|
|
311
|
-
var peg$e21 = peg$
|
|
312
|
-
var peg$e22 = peg$
|
|
313
|
-
var peg$e23 = peg$literalExpectation("
|
|
314
|
-
var peg$e24 = peg$
|
|
315
|
-
var peg$e25 = peg$
|
|
316
|
-
var peg$e26 = peg$literalExpectation("
|
|
317
|
-
var peg$e27 = peg$literalExpectation("
|
|
318
|
-
var peg$e28 = peg$literalExpectation("
|
|
319
|
-
var peg$e29 = peg$literalExpectation("
|
|
320
|
-
var peg$e30 = peg$literalExpectation("
|
|
321
|
-
var peg$e31 = peg$literalExpectation("
|
|
322
|
-
var peg$e32 = peg$literalExpectation("
|
|
323
|
-
var peg$e33 = peg$literalExpectation("
|
|
324
|
-
var peg$e34 = peg$literalExpectation("
|
|
325
|
-
var peg$e35 = peg$literalExpectation("
|
|
326
|
-
var peg$e36 = peg$literalExpectation("
|
|
327
|
-
var peg$e37 = peg$literalExpectation("
|
|
328
|
-
var peg$e38 = peg$literalExpectation("
|
|
329
|
-
var peg$e39 = peg$literalExpectation("
|
|
330
|
-
var peg$e40 = peg$literalExpectation("
|
|
331
|
-
var peg$e41 = peg$literalExpectation("
|
|
332
|
-
var peg$e42 = peg$literalExpectation("
|
|
333
|
-
var peg$e43 = peg$literalExpectation("
|
|
334
|
-
var peg$e44 = peg$literalExpectation("
|
|
335
|
-
var peg$e45 = peg$literalExpectation("
|
|
336
|
-
var peg$e46 = peg$literalExpectation("
|
|
337
|
-
var peg$e47 = peg$literalExpectation("
|
|
338
|
-
var peg$e48 = peg$literalExpectation("
|
|
339
|
-
var peg$e49 = peg$literalExpectation("
|
|
340
|
-
var peg$e50 = peg$literalExpectation("
|
|
341
|
-
var peg$e51 = peg$literalExpectation("
|
|
342
|
-
var peg$e52 = peg$literalExpectation("
|
|
343
|
-
var peg$e53 = peg$literalExpectation("
|
|
344
|
-
var peg$e54 = peg$literalExpectation("
|
|
345
|
-
var peg$e55 = peg$literalExpectation("
|
|
346
|
-
var peg$e56 = peg$literalExpectation("
|
|
347
|
-
var peg$e57 = peg$literalExpectation("
|
|
348
|
-
var peg$e58 = peg$literalExpectation("
|
|
349
|
-
var peg$e59 = peg$literalExpectation("
|
|
350
|
-
var peg$e60 = peg$literalExpectation("
|
|
351
|
-
var peg$e61 = peg$literalExpectation("
|
|
352
|
-
var peg$e62 = peg$
|
|
353
|
-
var peg$e63 = peg$
|
|
354
|
-
var peg$e64 = peg$literalExpectation("
|
|
355
|
-
var peg$e65 = peg$literalExpectation("
|
|
356
|
-
var peg$e66 = peg$literalExpectation("
|
|
357
|
-
var peg$e67 = peg$literalExpectation("
|
|
358
|
-
var peg$e68 = peg$literalExpectation("
|
|
359
|
-
var peg$e69 = peg$literalExpectation("
|
|
360
|
-
var peg$e70 = peg$
|
|
361
|
-
var peg$e71 = peg$literalExpectation("
|
|
362
|
-
var peg$e72 = peg$literalExpectation("
|
|
363
|
-
var peg$e73 = peg$literalExpectation("
|
|
364
|
-
var peg$e74 = peg$literalExpectation("
|
|
365
|
-
var peg$e75 = peg$literalExpectation("
|
|
366
|
-
var peg$e76 = peg$otherExpectation("
|
|
367
|
-
var peg$e77 = peg$otherExpectation("
|
|
368
|
-
var peg$e78 = peg$
|
|
369
|
-
var peg$e79 = peg$
|
|
370
|
-
var peg$e80 = peg$
|
|
371
|
-
var peg$e81 = peg$
|
|
372
|
-
var peg$e82 = peg$
|
|
373
|
-
var peg$e83 = peg$
|
|
374
|
-
var peg$e84 = peg$
|
|
375
|
-
var peg$e85 = peg$literalExpectation("
|
|
376
|
-
var peg$e86 = peg$literalExpectation("
|
|
377
|
-
var peg$e87 = peg$literalExpectation("
|
|
378
|
-
var peg$e88 = peg$
|
|
379
|
-
var peg$e89 = peg$literalExpectation("
|
|
380
|
-
var peg$e90 = peg$
|
|
381
|
-
var peg$e91 = peg$
|
|
325
|
+
var peg$e13 = peg$literalExpectation("\u2022A ", false);
|
|
326
|
+
var peg$e14 = peg$literalExpectation("\u2022+ ", false);
|
|
327
|
+
var peg$e15 = peg$literalExpectation("\u2022- ", false);
|
|
328
|
+
var peg$e16 = peg$anyExpectation();
|
|
329
|
+
var peg$e17 = peg$literalExpectation("\t", false);
|
|
330
|
+
var peg$e18 = peg$literalExpectation("image", false);
|
|
331
|
+
var peg$e19 = peg$literalExpectation(" ", false);
|
|
332
|
+
var peg$e20 = peg$literalExpectation("#", false);
|
|
333
|
+
var peg$e21 = peg$literalExpectation("@", false);
|
|
334
|
+
var peg$e22 = peg$classExpectation([["0", "9"]], false, false);
|
|
335
|
+
var peg$e23 = peg$literalExpectation("width", false);
|
|
336
|
+
var peg$e24 = peg$literalExpectation("height", false);
|
|
337
|
+
var peg$e25 = peg$otherExpectation("StyledString");
|
|
338
|
+
var peg$e26 = peg$literalExpectation("=", false);
|
|
339
|
+
var peg$e27 = peg$literalExpectation("\uD835\uDC53", false);
|
|
340
|
+
var peg$e28 = peg$literalExpectation("link:", false);
|
|
341
|
+
var peg$e29 = peg$literalExpectation("var:", false);
|
|
342
|
+
var peg$e30 = peg$literalExpectation("code:", false);
|
|
343
|
+
var peg$e31 = peg$literalExpectation("timer", false);
|
|
344
|
+
var peg$e32 = peg$literalExpectation("timer:", false);
|
|
345
|
+
var peg$e33 = peg$literalExpectation("duration:", false);
|
|
346
|
+
var peg$e34 = peg$literalExpectation("P", false);
|
|
347
|
+
var peg$e35 = peg$literalExpectation("color:", false);
|
|
348
|
+
var peg$e36 = peg$literalExpectation("bold", false);
|
|
349
|
+
var peg$e37 = peg$literalExpectation("italic", false);
|
|
350
|
+
var peg$e38 = peg$literalExpectation("light", false);
|
|
351
|
+
var peg$e39 = peg$literalExpectation("highlight", false);
|
|
352
|
+
var peg$e40 = peg$literalExpectation("strike", false);
|
|
353
|
+
var peg$e41 = peg$literalExpectation("subscript", false);
|
|
354
|
+
var peg$e42 = peg$literalExpectation("superscript", false);
|
|
355
|
+
var peg$e43 = peg$literalExpectation("ins", false);
|
|
356
|
+
var peg$e44 = peg$literalExpectation("del", false);
|
|
357
|
+
var peg$e45 = peg$literalExpectation("underline", false);
|
|
358
|
+
var peg$e46 = peg$literalExpectation("doubleUnderline", false);
|
|
359
|
+
var peg$e47 = peg$literalExpectation("circle", false);
|
|
360
|
+
var peg$e48 = peg$literalExpectation("languageEm", false);
|
|
361
|
+
var peg$e49 = peg$literalExpectation("userUnderline", false);
|
|
362
|
+
var peg$e50 = peg$literalExpectation("userDoubleUnderline", false);
|
|
363
|
+
var peg$e51 = peg$literalExpectation("userStrike", false);
|
|
364
|
+
var peg$e52 = peg$literalExpectation("userCircle", false);
|
|
365
|
+
var peg$e53 = peg$literalExpectation("userHighlight", false);
|
|
366
|
+
var peg$e54 = peg$literalExpectation("aqua", false);
|
|
367
|
+
var peg$e55 = peg$literalExpectation("black", false);
|
|
368
|
+
var peg$e56 = peg$literalExpectation("blue", false);
|
|
369
|
+
var peg$e57 = peg$literalExpectation("pink", false);
|
|
370
|
+
var peg$e58 = peg$literalExpectation("fuchsia", false);
|
|
371
|
+
var peg$e59 = peg$literalExpectation("lightgrey", false);
|
|
372
|
+
var peg$e60 = peg$literalExpectation("gray", false);
|
|
373
|
+
var peg$e61 = peg$literalExpectation("darkgray", false);
|
|
374
|
+
var peg$e62 = peg$literalExpectation("green", false);
|
|
375
|
+
var peg$e63 = peg$literalExpectation("lime", false);
|
|
376
|
+
var peg$e64 = peg$literalExpectation("magenta", false);
|
|
377
|
+
var peg$e65 = peg$literalExpectation("maroon", false);
|
|
378
|
+
var peg$e66 = peg$literalExpectation("navy", false);
|
|
379
|
+
var peg$e67 = peg$literalExpectation("olive", false);
|
|
380
|
+
var peg$e68 = peg$literalExpectation("orange", false);
|
|
381
|
+
var peg$e69 = peg$literalExpectation("purple", false);
|
|
382
|
+
var peg$e70 = peg$literalExpectation("red", false);
|
|
383
|
+
var peg$e71 = peg$literalExpectation("silver", false);
|
|
384
|
+
var peg$e72 = peg$literalExpectation("teal", false);
|
|
385
|
+
var peg$e73 = peg$literalExpectation("violet", false);
|
|
386
|
+
var peg$e74 = peg$literalExpectation("white", false);
|
|
387
|
+
var peg$e75 = peg$literalExpectation("yellow", false);
|
|
388
|
+
var peg$e76 = peg$otherExpectation("MinimalStyledText");
|
|
389
|
+
var peg$e77 = peg$otherExpectation("MinimalStyledString");
|
|
390
|
+
var peg$e78 = peg$literalExpectation("*", false);
|
|
391
|
+
var peg$e79 = peg$literalExpectation("_", false);
|
|
392
|
+
var peg$e80 = peg$literalExpectation("`", false);
|
|
393
|
+
var peg$e81 = peg$literalExpectation("!", false);
|
|
394
|
+
var peg$e82 = peg$literalExpectation("[!", false);
|
|
395
|
+
var peg$e83 = peg$literalExpectation("]", false);
|
|
396
|
+
var peg$e84 = peg$otherExpectation("Line Terminator");
|
|
397
|
+
var peg$e85 = peg$literalExpectation("\n", false);
|
|
398
|
+
var peg$e86 = peg$literalExpectation("\r\n", false);
|
|
399
|
+
var peg$e87 = peg$literalExpectation("\r", false);
|
|
400
|
+
var peg$e88 = peg$literalExpectation("\u2028", false);
|
|
401
|
+
var peg$e89 = peg$literalExpectation("\u2029", false);
|
|
402
|
+
var peg$e90 = peg$otherExpectation("whitespace in line");
|
|
403
|
+
var peg$e91 = peg$otherExpectation("space");
|
|
404
|
+
var peg$e92 = peg$otherExpectation("language tag separator");
|
|
405
|
+
var peg$e93 = peg$otherExpectation("white space, separator");
|
|
406
|
+
var peg$e94 = peg$classExpectation(["\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false);
|
|
407
|
+
var peg$e95 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false);
|
|
408
|
+
var peg$e96 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], true, false);
|
|
409
|
+
var peg$e97 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029", "\t", "\v", "\f", " ", "\xA0", "\uFEFF", " ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], true, false);
|
|
410
|
+
var peg$e98 = peg$literalExpectation("http", false);
|
|
411
|
+
var peg$e99 = peg$literalExpectation("s", false);
|
|
412
|
+
var peg$e100 = peg$literalExpectation("://", false);
|
|
413
|
+
var peg$e101 = peg$literalExpectation("mailto:", false);
|
|
414
|
+
var peg$e102 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "!", "*", "'", "(", ")", "=", ["+", "/"], ".", "_", "?", "#", "@", "[", "]", "$", "&", "(", ")", ",", ";", "%", ":", "{", "}"], false, false);
|
|
415
|
+
var peg$e103 = peg$literalExpectation("~", false);
|
|
416
|
+
var peg$e104 = peg$literalExpectation("^", false);
|
|
417
|
+
var peg$e105 = peg$literalExpectation("'", false);
|
|
382
418
|
var peg$f0 = function (b) { return Object.assign({}, b); };
|
|
383
|
-
var peg$f1 = function (b) {
|
|
419
|
+
var peg$f1 = function (b) { let lb_ = Object.assign({}, b); removeTempParsingParent(lb_); return lb_; };
|
|
384
420
|
var peg$f2 = function (b) { return Object.assign({}, b); };
|
|
385
421
|
var peg$f3 = function (b) { return Object.assign({}, b); };
|
|
386
422
|
var peg$f4 = function (b) { return Object.assign({}, b); };
|
|
@@ -397,17 +433,22 @@ function peg$parse(input, options) {
|
|
|
397
433
|
var peg$f15 = function (c, bl) { return Object.assign(Object.assign({}, c), { content: bl, attrs: {} }); };
|
|
398
434
|
var peg$f16 = function (c, bl) { return Object.assign(Object.assign({}, c), { content: bl, attrs: {} }); };
|
|
399
435
|
var peg$f17 = function (c, bl) { return Object.assign(Object.assign({}, c), { content: bl, attrs: {} }); };
|
|
400
|
-
var peg$f18 = function () { return {
|
|
401
|
-
var peg$f19 = function () { return { type: "
|
|
402
|
-
var peg$f20 = function () { return { type: "
|
|
403
|
-
var peg$f21 = function (
|
|
404
|
-
var peg$f22 = function (
|
|
405
|
-
|
|
436
|
+
var peg$f18 = function (c, bl) { return Object.assign(Object.assign({}, c), { content: bl, attrs: {} }); };
|
|
437
|
+
var peg$f19 = function () { return { type: "bulletList" }; };
|
|
438
|
+
var peg$f20 = function () { return { type: "orderedList" }; };
|
|
439
|
+
var peg$f21 = function () { return { type: "letteredList" }; };
|
|
440
|
+
var peg$f22 = function () { return { type: "taskList" }; };
|
|
441
|
+
var peg$f23 = function (lt, listItem, lines, c) { return c; };
|
|
442
|
+
var peg$f24 = function (lt, listItem, lines, children) {
|
|
443
|
+
let _tempParsingParent = 'bulletList';
|
|
406
444
|
if ('•1 ' == lt) {
|
|
407
|
-
|
|
445
|
+
_tempParsingParent = 'orderedList';
|
|
446
|
+
}
|
|
447
|
+
if ('•A ' == lt) {
|
|
448
|
+
_tempParsingParent = 'letteredList';
|
|
408
449
|
}
|
|
409
450
|
if ('•+ ' == lt || '•- ' == lt) {
|
|
410
|
-
|
|
451
|
+
_tempParsingParent = 'taskList';
|
|
411
452
|
}
|
|
412
453
|
let li = (listItem + lines.join("")).trim();
|
|
413
454
|
let item = {
|
|
@@ -416,21 +457,21 @@ function peg$parse(input, options) {
|
|
|
416
457
|
content: bitmarkPlusString(li)
|
|
417
458
|
};
|
|
418
459
|
let content = [item];
|
|
419
|
-
if (children && children[0] && children[0].
|
|
460
|
+
if (children && children[0] && children[0]._tempParsingParent) {
|
|
420
461
|
let sublist = {
|
|
421
|
-
type: children[0].
|
|
462
|
+
type: children[0]._tempParsingParent,
|
|
422
463
|
attrs: { start: 1 },
|
|
423
464
|
content: children,
|
|
424
|
-
|
|
465
|
+
_tempParsingParent: ""
|
|
425
466
|
};
|
|
426
|
-
if ("orderedList" == sublist.
|
|
467
|
+
if ("orderedList" == sublist._tempParsingParent || "letteredList" == sublist._tempParsingParent) {
|
|
427
468
|
sublist.attrs.start = 1;
|
|
428
469
|
}
|
|
429
470
|
content.push(sublist);
|
|
430
471
|
}
|
|
431
472
|
let t = "listItem";
|
|
432
473
|
let attrs = {};
|
|
433
|
-
if ("taskList" ==
|
|
474
|
+
if ("taskList" == _tempParsingParent) {
|
|
434
475
|
t = "taskItem";
|
|
435
476
|
let checked = false;
|
|
436
477
|
if ('•+ ' == lt) {
|
|
@@ -438,18 +479,18 @@ function peg$parse(input, options) {
|
|
|
438
479
|
}
|
|
439
480
|
attrs = { checked };
|
|
440
481
|
}
|
|
441
|
-
return { type: t, content,
|
|
482
|
+
return { type: t, content, _tempParsingParent, attrs };
|
|
442
483
|
};
|
|
443
|
-
var peg$
|
|
444
|
-
var peg$
|
|
445
|
-
var peg$
|
|
446
|
-
var peg$
|
|
447
|
-
var peg$
|
|
448
|
-
var peg$f28 = function (body) { return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} }; };
|
|
449
|
-
var peg$f29 = function (body) { return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} }; };
|
|
484
|
+
var peg$f25 = function (ll) { return ll; };
|
|
485
|
+
var peg$f26 = function (i) { return i.join("") === indent; };
|
|
486
|
+
var peg$f27 = function (i) { return i.length > indent.length; };
|
|
487
|
+
var peg$f28 = function (i) { indentStack.push(indent); indent = i.join(""); };
|
|
488
|
+
var peg$f29 = function () { indent = indentStack.pop(); return true; };
|
|
450
489
|
var peg$f30 = function (body) { return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} }; };
|
|
451
|
-
var peg$f31 = function (
|
|
452
|
-
var peg$f32 = function (
|
|
490
|
+
var peg$f31 = function (body) { return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} }; };
|
|
491
|
+
var peg$f32 = function (body) { return { type: "paragraph", content: bitmarkPlusString(body.trim()), attrs: {} }; };
|
|
492
|
+
var peg$f33 = function (t) { return t; };
|
|
493
|
+
var peg$f34 = function (t, u, ch) {
|
|
453
494
|
const chain = Object.assign({}, ...ch);
|
|
454
495
|
let textAlign_ = chain.captionAlign || "left";
|
|
455
496
|
delete chain.captionAlign;
|
|
@@ -459,47 +500,52 @@ function peg$parse(input, options) {
|
|
|
459
500
|
delete chain.caption;
|
|
460
501
|
let class_ = chain.align || "center";
|
|
461
502
|
delete chain.align;
|
|
503
|
+
let zoomDisabled_ = chain.zoomDisabled || Boolean(chain.zoomDisabled);
|
|
504
|
+
delete chain.zoomDisabled;
|
|
462
505
|
let image = {
|
|
463
506
|
type: t,
|
|
464
|
-
attrs: Object.assign({ textAlign: textAlign_, src: u, alt: alt_, title: title_, class: class_ }, chain)
|
|
507
|
+
attrs: Object.assign({ textAlign: textAlign_, src: u, alt: alt_, title: title_, class: class_, zoomDisabled: zoomDisabled_ }, chain)
|
|
465
508
|
};
|
|
466
509
|
return image;
|
|
467
510
|
};
|
|
468
|
-
var peg$
|
|
469
|
-
var peg$
|
|
470
|
-
var peg$
|
|
471
|
-
var peg$
|
|
472
|
-
var peg$
|
|
473
|
-
var peg$
|
|
474
|
-
var peg$
|
|
475
|
-
var peg$
|
|
476
|
-
var peg$
|
|
477
|
-
var peg$
|
|
478
|
-
var peg$
|
|
479
|
-
var peg$
|
|
511
|
+
var peg$f35 = function (ch) { return ch; };
|
|
512
|
+
var peg$f36 = function (str) { return { comment: str }; };
|
|
513
|
+
var peg$f37 = function (p, v) { return { [p]: parseInt(v) }; };
|
|
514
|
+
var peg$f38 = function (p, v) { return { type: "error", msg: p + ' must be an positive integer.', found: v }; };
|
|
515
|
+
var peg$f39 = function (p, v) { return { [p]: v }; };
|
|
516
|
+
var peg$f40 = function (p) { return { [p]: true }; };
|
|
517
|
+
var peg$f41 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
|
|
518
|
+
var peg$f42 = function (first, more) { return first ? [first, ...more.flat()] : more.flat(); };
|
|
519
|
+
var peg$f43 = function () { return { "type": "hardBreak" }; };
|
|
520
|
+
var peg$f44 = function (t) { return { text: unbreakscape(t), type: "text" }; };
|
|
521
|
+
var peg$f45 = function (t) { return { index: +t, type: "bit" }; };
|
|
522
|
+
var peg$f46 = function (t, marks) { if (!marks)
|
|
480
523
|
marks = []; return { marks, text: unbreakscape(t), type: "text" }; };
|
|
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$
|
|
499
|
-
var peg$
|
|
500
|
-
var peg$
|
|
501
|
-
var peg$
|
|
502
|
-
var peg$
|
|
524
|
+
var peg$f47 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
|
|
525
|
+
var peg$f48 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
|
|
526
|
+
var peg$f49 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
|
|
527
|
+
var peg$f50 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
|
|
528
|
+
var peg$f51 = function (u) { return { marks: [{ type: "link", attrs: { href: (u.pr + u.t).trim(), target: '_blank' } }], text: u.t, type: "text" }; };
|
|
529
|
+
var peg$f52 = function (ch) { return ch; };
|
|
530
|
+
var peg$f53 = function (str) { return { type: 'link', attrs: { href: str.trim(), target: '_blank' } }; };
|
|
531
|
+
var peg$f54 = function (str) { return { type: 'var', attrs: { name: str.trim() } }; };
|
|
532
|
+
var peg$f55 = function () { return { type: 'code', attrs: { language: "plain text" } }; };
|
|
533
|
+
var peg$f56 = function (lang) { return { type: 'code', attrs: { language: lang.trim().toLowerCase() } }; };
|
|
534
|
+
var peg$f57 = function () { return { type: 'timer', attrs: { name: "" } }; };
|
|
535
|
+
var peg$f58 = function (str) { return { type: 'timer', attrs: { name: str.trim() } }; };
|
|
536
|
+
var peg$f59 = function (str) { return { type: 'duration', attrs: { duration: str } }; };
|
|
537
|
+
var peg$f60 = function (color) { return { type: 'color', attrs: { color } }; };
|
|
538
|
+
var peg$f61 = function (style) { return { type: style }; };
|
|
539
|
+
var peg$f62 = function (str) { return { type: "comment", comment: str }; };
|
|
540
|
+
var peg$f63 = function (bs) { return [{ type: 'paragraph', content: bs, attrs: {} }]; };
|
|
541
|
+
var peg$f64 = function (first, more) { return first ? [first, ...more.flat()] : more.flat(); };
|
|
542
|
+
var peg$f65 = function (t) { return { text: unbreakscape(t), type: "text" }; };
|
|
543
|
+
var peg$f66 = function (t) { return { index: +t, type: "bit" }; };
|
|
544
|
+
var peg$f67 = function (t) { return { marks: [{ type: "bold" }], text: unbreakscape(t), type: "text" }; };
|
|
545
|
+
var peg$f68 = function (t) { return { marks: [{ type: "italic" }], text: unbreakscape(t), type: "text" }; };
|
|
546
|
+
var peg$f69 = function (t) { return { marks: [{ type: "light" }], text: unbreakscape(t), type: "text" }; };
|
|
547
|
+
var peg$f70 = function (t) { return { marks: [{ type: "highlight" }], text: unbreakscape(t), type: "text" }; };
|
|
548
|
+
var peg$f71 = function (pr, t) { return { pr, t }; };
|
|
503
549
|
var peg$currPos = 0;
|
|
504
550
|
var peg$savedPos = 0;
|
|
505
551
|
var peg$posDetailsCache = [{ line: 1, column: 1 }];
|
|
@@ -1228,7 +1274,7 @@ function peg$parse(input, options) {
|
|
|
1228
1274
|
}
|
|
1229
1275
|
return s0;
|
|
1230
1276
|
}
|
|
1231
|
-
function peg$
|
|
1277
|
+
function peg$parseLetteredListTag() {
|
|
1232
1278
|
var s0;
|
|
1233
1279
|
if (input.substr(peg$currPos, 3) === peg$c11) {
|
|
1234
1280
|
s0 = peg$c11;
|
|
@@ -1240,15 +1286,29 @@ function peg$parse(input, options) {
|
|
|
1240
1286
|
peg$fail(peg$e13);
|
|
1241
1287
|
}
|
|
1242
1288
|
}
|
|
1289
|
+
return s0;
|
|
1290
|
+
}
|
|
1291
|
+
function peg$parseTaskListTag() {
|
|
1292
|
+
var s0;
|
|
1293
|
+
if (input.substr(peg$currPos, 3) === peg$c12) {
|
|
1294
|
+
s0 = peg$c12;
|
|
1295
|
+
peg$currPos += 3;
|
|
1296
|
+
}
|
|
1297
|
+
else {
|
|
1298
|
+
s0 = peg$FAILED;
|
|
1299
|
+
if (peg$silentFails === 0) {
|
|
1300
|
+
peg$fail(peg$e14);
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1243
1303
|
if (s0 === peg$FAILED) {
|
|
1244
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
1245
|
-
s0 = peg$
|
|
1304
|
+
if (input.substr(peg$currPos, 3) === peg$c13) {
|
|
1305
|
+
s0 = peg$c13;
|
|
1246
1306
|
peg$currPos += 3;
|
|
1247
1307
|
}
|
|
1248
1308
|
else {
|
|
1249
1309
|
s0 = peg$FAILED;
|
|
1250
1310
|
if (peg$silentFails === 0) {
|
|
1251
|
-
peg$fail(peg$
|
|
1311
|
+
peg$fail(peg$e15);
|
|
1252
1312
|
}
|
|
1253
1313
|
}
|
|
1254
1314
|
}
|
|
@@ -1260,7 +1320,10 @@ function peg$parse(input, options) {
|
|
|
1260
1320
|
if (s0 === peg$FAILED) {
|
|
1261
1321
|
s0 = peg$parseOrderedListTag();
|
|
1262
1322
|
if (s0 === peg$FAILED) {
|
|
1263
|
-
s0 = peg$
|
|
1323
|
+
s0 = peg$parseLetteredListTag();
|
|
1324
|
+
if (s0 === peg$FAILED) {
|
|
1325
|
+
s0 = peg$parseTaskListTag();
|
|
1326
|
+
}
|
|
1264
1327
|
}
|
|
1265
1328
|
}
|
|
1266
1329
|
return s0;
|
|
@@ -1332,7 +1395,7 @@ function peg$parse(input, options) {
|
|
|
1332
1395
|
}
|
|
1333
1396
|
if (s0 === peg$FAILED) {
|
|
1334
1397
|
s0 = peg$currPos;
|
|
1335
|
-
s1 = peg$
|
|
1398
|
+
s1 = peg$parseLetteredListContainer();
|
|
1336
1399
|
if (s1 !== peg$FAILED) {
|
|
1337
1400
|
s2 = [];
|
|
1338
1401
|
s3 = peg$parseBulletListLine();
|
|
@@ -1362,6 +1425,39 @@ function peg$parse(input, options) {
|
|
|
1362
1425
|
peg$currPos = s0;
|
|
1363
1426
|
s0 = peg$FAILED;
|
|
1364
1427
|
}
|
|
1428
|
+
if (s0 === peg$FAILED) {
|
|
1429
|
+
s0 = peg$currPos;
|
|
1430
|
+
s1 = peg$parseTaskListContainer();
|
|
1431
|
+
if (s1 !== peg$FAILED) {
|
|
1432
|
+
s2 = [];
|
|
1433
|
+
s3 = peg$parseBulletListLine();
|
|
1434
|
+
if (s3 !== peg$FAILED) {
|
|
1435
|
+
while (s3 !== peg$FAILED) {
|
|
1436
|
+
s2.push(s3);
|
|
1437
|
+
s3 = peg$parseBulletListLine();
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
else {
|
|
1441
|
+
s2 = peg$FAILED;
|
|
1442
|
+
}
|
|
1443
|
+
if (s2 !== peg$FAILED) {
|
|
1444
|
+
s3 = peg$parseNL();
|
|
1445
|
+
if (s3 === peg$FAILED) {
|
|
1446
|
+
s3 = null;
|
|
1447
|
+
}
|
|
1448
|
+
peg$savedPos = s0;
|
|
1449
|
+
s0 = peg$f18(s1, s2);
|
|
1450
|
+
}
|
|
1451
|
+
else {
|
|
1452
|
+
peg$currPos = s0;
|
|
1453
|
+
s0 = peg$FAILED;
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
else {
|
|
1457
|
+
peg$currPos = s0;
|
|
1458
|
+
s0 = peg$FAILED;
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1365
1461
|
}
|
|
1366
1462
|
}
|
|
1367
1463
|
return s0;
|
|
@@ -1382,7 +1478,7 @@ function peg$parse(input, options) {
|
|
|
1382
1478
|
}
|
|
1383
1479
|
if (s1 !== peg$FAILED) {
|
|
1384
1480
|
peg$savedPos = s0;
|
|
1385
|
-
s1 = peg$
|
|
1481
|
+
s1 = peg$f19();
|
|
1386
1482
|
}
|
|
1387
1483
|
s0 = s1;
|
|
1388
1484
|
return s0;
|
|
@@ -1403,7 +1499,28 @@ function peg$parse(input, options) {
|
|
|
1403
1499
|
}
|
|
1404
1500
|
if (s1 !== peg$FAILED) {
|
|
1405
1501
|
peg$savedPos = s0;
|
|
1406
|
-
s1 = peg$
|
|
1502
|
+
s1 = peg$f20();
|
|
1503
|
+
}
|
|
1504
|
+
s0 = s1;
|
|
1505
|
+
return s0;
|
|
1506
|
+
}
|
|
1507
|
+
function peg$parseLetteredListContainer() {
|
|
1508
|
+
var s0, s1, s2;
|
|
1509
|
+
s0 = peg$currPos;
|
|
1510
|
+
s1 = peg$currPos;
|
|
1511
|
+
peg$silentFails++;
|
|
1512
|
+
s2 = peg$parseLetteredListTag();
|
|
1513
|
+
peg$silentFails--;
|
|
1514
|
+
if (s2 !== peg$FAILED) {
|
|
1515
|
+
peg$currPos = s1;
|
|
1516
|
+
s1 = undefined;
|
|
1517
|
+
}
|
|
1518
|
+
else {
|
|
1519
|
+
s1 = peg$FAILED;
|
|
1520
|
+
}
|
|
1521
|
+
if (s1 !== peg$FAILED) {
|
|
1522
|
+
peg$savedPos = s0;
|
|
1523
|
+
s1 = peg$f21();
|
|
1407
1524
|
}
|
|
1408
1525
|
s0 = s1;
|
|
1409
1526
|
return s0;
|
|
@@ -1424,7 +1541,7 @@ function peg$parse(input, options) {
|
|
|
1424
1541
|
}
|
|
1425
1542
|
if (s1 !== peg$FAILED) {
|
|
1426
1543
|
peg$savedPos = s0;
|
|
1427
|
-
s1 = peg$
|
|
1544
|
+
s1 = peg$f22();
|
|
1428
1545
|
}
|
|
1429
1546
|
s0 = s1;
|
|
1430
1547
|
return s0;
|
|
@@ -1459,7 +1576,7 @@ function peg$parse(input, options) {
|
|
|
1459
1576
|
else {
|
|
1460
1577
|
s8 = peg$FAILED;
|
|
1461
1578
|
if (peg$silentFails === 0) {
|
|
1462
|
-
peg$fail(peg$
|
|
1579
|
+
peg$fail(peg$e16);
|
|
1463
1580
|
}
|
|
1464
1581
|
}
|
|
1465
1582
|
if (s8 !== peg$FAILED) {
|
|
@@ -1497,7 +1614,7 @@ function peg$parse(input, options) {
|
|
|
1497
1614
|
else {
|
|
1498
1615
|
s8 = peg$FAILED;
|
|
1499
1616
|
if (peg$silentFails === 0) {
|
|
1500
|
-
peg$fail(peg$
|
|
1617
|
+
peg$fail(peg$e16);
|
|
1501
1618
|
}
|
|
1502
1619
|
}
|
|
1503
1620
|
if (s8 !== peg$FAILED) {
|
|
@@ -1539,7 +1656,7 @@ function peg$parse(input, options) {
|
|
|
1539
1656
|
s8 = peg$parseDEDENT();
|
|
1540
1657
|
if (s8 !== peg$FAILED) {
|
|
1541
1658
|
peg$savedPos = s5;
|
|
1542
|
-
s5 = peg$
|
|
1659
|
+
s5 = peg$f23(s2, s3, s4, s7);
|
|
1543
1660
|
}
|
|
1544
1661
|
else {
|
|
1545
1662
|
peg$currPos = s5;
|
|
@@ -1554,7 +1671,7 @@ function peg$parse(input, options) {
|
|
|
1554
1671
|
s5 = null;
|
|
1555
1672
|
}
|
|
1556
1673
|
peg$savedPos = s0;
|
|
1557
|
-
s0 = peg$
|
|
1674
|
+
s0 = peg$f24(s2, s3, s4, s5);
|
|
1558
1675
|
}
|
|
1559
1676
|
else {
|
|
1560
1677
|
peg$currPos = s0;
|
|
@@ -1619,7 +1736,7 @@ function peg$parse(input, options) {
|
|
|
1619
1736
|
else {
|
|
1620
1737
|
s9 = peg$FAILED;
|
|
1621
1738
|
if (peg$silentFails === 0) {
|
|
1622
|
-
peg$fail(peg$
|
|
1739
|
+
peg$fail(peg$e16);
|
|
1623
1740
|
}
|
|
1624
1741
|
}
|
|
1625
1742
|
if (s9 !== peg$FAILED) {
|
|
@@ -1658,7 +1775,7 @@ function peg$parse(input, options) {
|
|
|
1658
1775
|
else {
|
|
1659
1776
|
s9 = peg$FAILED;
|
|
1660
1777
|
if (peg$silentFails === 0) {
|
|
1661
|
-
peg$fail(peg$
|
|
1778
|
+
peg$fail(peg$e16);
|
|
1662
1779
|
}
|
|
1663
1780
|
}
|
|
1664
1781
|
if (s9 !== peg$FAILED) {
|
|
@@ -1702,7 +1819,7 @@ function peg$parse(input, options) {
|
|
|
1702
1819
|
}
|
|
1703
1820
|
if (s4 !== peg$FAILED) {
|
|
1704
1821
|
peg$savedPos = s0;
|
|
1705
|
-
s0 = peg$
|
|
1822
|
+
s0 = peg$f25(s4);
|
|
1706
1823
|
}
|
|
1707
1824
|
else {
|
|
1708
1825
|
peg$currPos = s0;
|
|
@@ -1768,30 +1885,30 @@ function peg$parse(input, options) {
|
|
|
1768
1885
|
s0 = peg$currPos;
|
|
1769
1886
|
s1 = [];
|
|
1770
1887
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
1771
|
-
s2 = peg$
|
|
1888
|
+
s2 = peg$c14;
|
|
1772
1889
|
peg$currPos++;
|
|
1773
1890
|
}
|
|
1774
1891
|
else {
|
|
1775
1892
|
s2 = peg$FAILED;
|
|
1776
1893
|
if (peg$silentFails === 0) {
|
|
1777
|
-
peg$fail(peg$
|
|
1894
|
+
peg$fail(peg$e17);
|
|
1778
1895
|
}
|
|
1779
1896
|
}
|
|
1780
1897
|
while (s2 !== peg$FAILED) {
|
|
1781
1898
|
s1.push(s2);
|
|
1782
1899
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
1783
|
-
s2 = peg$
|
|
1900
|
+
s2 = peg$c14;
|
|
1784
1901
|
peg$currPos++;
|
|
1785
1902
|
}
|
|
1786
1903
|
else {
|
|
1787
1904
|
s2 = peg$FAILED;
|
|
1788
1905
|
if (peg$silentFails === 0) {
|
|
1789
|
-
peg$fail(peg$
|
|
1906
|
+
peg$fail(peg$e17);
|
|
1790
1907
|
}
|
|
1791
1908
|
}
|
|
1792
1909
|
}
|
|
1793
1910
|
peg$savedPos = peg$currPos;
|
|
1794
|
-
s2 = peg$
|
|
1911
|
+
s2 = peg$f26(s1);
|
|
1795
1912
|
if (s2) {
|
|
1796
1913
|
s2 = undefined;
|
|
1797
1914
|
}
|
|
@@ -1815,26 +1932,26 @@ function peg$parse(input, options) {
|
|
|
1815
1932
|
s1 = peg$currPos;
|
|
1816
1933
|
s2 = [];
|
|
1817
1934
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
1818
|
-
s3 = peg$
|
|
1935
|
+
s3 = peg$c14;
|
|
1819
1936
|
peg$currPos++;
|
|
1820
1937
|
}
|
|
1821
1938
|
else {
|
|
1822
1939
|
s3 = peg$FAILED;
|
|
1823
1940
|
if (peg$silentFails === 0) {
|
|
1824
|
-
peg$fail(peg$
|
|
1941
|
+
peg$fail(peg$e17);
|
|
1825
1942
|
}
|
|
1826
1943
|
}
|
|
1827
1944
|
if (s3 !== peg$FAILED) {
|
|
1828
1945
|
while (s3 !== peg$FAILED) {
|
|
1829
1946
|
s2.push(s3);
|
|
1830
1947
|
if (input.charCodeAt(peg$currPos) === 9) {
|
|
1831
|
-
s3 = peg$
|
|
1948
|
+
s3 = peg$c14;
|
|
1832
1949
|
peg$currPos++;
|
|
1833
1950
|
}
|
|
1834
1951
|
else {
|
|
1835
1952
|
s3 = peg$FAILED;
|
|
1836
1953
|
if (peg$silentFails === 0) {
|
|
1837
|
-
peg$fail(peg$
|
|
1954
|
+
peg$fail(peg$e17);
|
|
1838
1955
|
}
|
|
1839
1956
|
}
|
|
1840
1957
|
}
|
|
@@ -1844,7 +1961,7 @@ function peg$parse(input, options) {
|
|
|
1844
1961
|
}
|
|
1845
1962
|
if (s2 !== peg$FAILED) {
|
|
1846
1963
|
peg$savedPos = peg$currPos;
|
|
1847
|
-
s3 = peg$
|
|
1964
|
+
s3 = peg$f27(s2);
|
|
1848
1965
|
if (s3) {
|
|
1849
1966
|
s3 = undefined;
|
|
1850
1967
|
}
|
|
@@ -1853,7 +1970,7 @@ function peg$parse(input, options) {
|
|
|
1853
1970
|
}
|
|
1854
1971
|
if (s3 !== peg$FAILED) {
|
|
1855
1972
|
peg$savedPos = s1;
|
|
1856
|
-
s1 = peg$
|
|
1973
|
+
s1 = peg$f28(s2);
|
|
1857
1974
|
}
|
|
1858
1975
|
else {
|
|
1859
1976
|
peg$currPos = s1;
|
|
@@ -1877,7 +1994,7 @@ function peg$parse(input, options) {
|
|
|
1877
1994
|
function peg$parseDEDENT() {
|
|
1878
1995
|
var s0;
|
|
1879
1996
|
peg$savedPos = peg$currPos;
|
|
1880
|
-
s0 = peg$
|
|
1997
|
+
s0 = peg$f29();
|
|
1881
1998
|
if (s0) {
|
|
1882
1999
|
s0 = undefined;
|
|
1883
2000
|
}
|
|
@@ -1904,7 +2021,7 @@ function peg$parse(input, options) {
|
|
|
1904
2021
|
s2 = peg$parseParagraphBody();
|
|
1905
2022
|
if (s2 !== peg$FAILED) {
|
|
1906
2023
|
peg$savedPos = s0;
|
|
1907
|
-
s0 = peg$
|
|
2024
|
+
s0 = peg$f30(s2);
|
|
1908
2025
|
}
|
|
1909
2026
|
else {
|
|
1910
2027
|
peg$currPos = s0;
|
|
@@ -1922,7 +2039,7 @@ function peg$parse(input, options) {
|
|
|
1922
2039
|
s2 = peg$parseParagraphBody();
|
|
1923
2040
|
if (s2 !== peg$FAILED) {
|
|
1924
2041
|
peg$savedPos = s0;
|
|
1925
|
-
s0 = peg$
|
|
2042
|
+
s0 = peg$f31(s2);
|
|
1926
2043
|
}
|
|
1927
2044
|
else {
|
|
1928
2045
|
peg$currPos = s0;
|
|
@@ -1939,7 +2056,7 @@ function peg$parse(input, options) {
|
|
|
1939
2056
|
if (s1 !== peg$FAILED) {
|
|
1940
2057
|
s2 = '';
|
|
1941
2058
|
peg$savedPos = s0;
|
|
1942
|
-
s0 = peg$
|
|
2059
|
+
s0 = peg$f32(s2);
|
|
1943
2060
|
}
|
|
1944
2061
|
else {
|
|
1945
2062
|
peg$currPos = s0;
|
|
@@ -2105,14 +2222,14 @@ function peg$parse(input, options) {
|
|
|
2105
2222
|
}
|
|
2106
2223
|
function peg$parseImageType() {
|
|
2107
2224
|
var s0;
|
|
2108
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
2109
|
-
s0 = peg$
|
|
2225
|
+
if (input.substr(peg$currPos, 5) === peg$c15) {
|
|
2226
|
+
s0 = peg$c15;
|
|
2110
2227
|
peg$currPos += 5;
|
|
2111
2228
|
}
|
|
2112
2229
|
else {
|
|
2113
2230
|
s0 = peg$FAILED;
|
|
2114
2231
|
if (peg$silentFails === 0) {
|
|
2115
|
-
peg$fail(peg$
|
|
2232
|
+
peg$fail(peg$e18);
|
|
2116
2233
|
}
|
|
2117
2234
|
}
|
|
2118
2235
|
return s0;
|
|
@@ -2125,7 +2242,7 @@ function peg$parse(input, options) {
|
|
|
2125
2242
|
s2 = peg$parseImageType();
|
|
2126
2243
|
if (s2 !== peg$FAILED) {
|
|
2127
2244
|
peg$savedPos = s0;
|
|
2128
|
-
s0 = peg$
|
|
2245
|
+
s0 = peg$f33(s2);
|
|
2129
2246
|
}
|
|
2130
2247
|
else {
|
|
2131
2248
|
peg$currPos = s0;
|
|
@@ -2155,13 +2272,13 @@ function peg$parse(input, options) {
|
|
|
2155
2272
|
}
|
|
2156
2273
|
if (s2 !== peg$FAILED) {
|
|
2157
2274
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
2158
|
-
s3 = peg$
|
|
2275
|
+
s3 = peg$c16;
|
|
2159
2276
|
peg$currPos++;
|
|
2160
2277
|
}
|
|
2161
2278
|
else {
|
|
2162
2279
|
s3 = peg$FAILED;
|
|
2163
2280
|
if (peg$silentFails === 0) {
|
|
2164
|
-
peg$fail(peg$
|
|
2281
|
+
peg$fail(peg$e19);
|
|
2165
2282
|
}
|
|
2166
2283
|
}
|
|
2167
2284
|
if (s3 === peg$FAILED) {
|
|
@@ -2219,7 +2336,7 @@ function peg$parse(input, options) {
|
|
|
2219
2336
|
s8 = null;
|
|
2220
2337
|
}
|
|
2221
2338
|
peg$savedPos = s0;
|
|
2222
|
-
s0 = peg$
|
|
2339
|
+
s0 = peg$f34(s1, s4, s6);
|
|
2223
2340
|
}
|
|
2224
2341
|
else {
|
|
2225
2342
|
peg$currPos = s0;
|
|
@@ -2257,7 +2374,7 @@ function peg$parse(input, options) {
|
|
|
2257
2374
|
s2 = peg$parseMediaChainItem();
|
|
2258
2375
|
}
|
|
2259
2376
|
peg$savedPos = s0;
|
|
2260
|
-
s1 = peg$
|
|
2377
|
+
s1 = peg$f35(s1);
|
|
2261
2378
|
s0 = s1;
|
|
2262
2379
|
return s0;
|
|
2263
2380
|
}
|
|
@@ -2265,13 +2382,13 @@ function peg$parse(input, options) {
|
|
|
2265
2382
|
var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
|
|
2266
2383
|
s0 = peg$currPos;
|
|
2267
2384
|
if (input.charCodeAt(peg$currPos) === 35) {
|
|
2268
|
-
s1 = peg$
|
|
2385
|
+
s1 = peg$c17;
|
|
2269
2386
|
peg$currPos++;
|
|
2270
2387
|
}
|
|
2271
2388
|
else {
|
|
2272
2389
|
s1 = peg$FAILED;
|
|
2273
2390
|
if (peg$silentFails === 0) {
|
|
2274
|
-
peg$fail(peg$
|
|
2391
|
+
peg$fail(peg$e20);
|
|
2275
2392
|
}
|
|
2276
2393
|
}
|
|
2277
2394
|
if (s1 !== peg$FAILED) {
|
|
@@ -2338,7 +2455,7 @@ function peg$parse(input, options) {
|
|
|
2338
2455
|
s3 = peg$parseBlockTag();
|
|
2339
2456
|
if (s3 !== peg$FAILED) {
|
|
2340
2457
|
peg$savedPos = s0;
|
|
2341
|
-
s0 = peg$
|
|
2458
|
+
s0 = peg$f36(s2);
|
|
2342
2459
|
}
|
|
2343
2460
|
else {
|
|
2344
2461
|
peg$currPos = s0;
|
|
@@ -2352,19 +2469,19 @@ function peg$parse(input, options) {
|
|
|
2352
2469
|
if (s0 === peg$FAILED) {
|
|
2353
2470
|
s0 = peg$currPos;
|
|
2354
2471
|
if (input.charCodeAt(peg$currPos) === 64) {
|
|
2355
|
-
s1 = peg$
|
|
2472
|
+
s1 = peg$c18;
|
|
2356
2473
|
peg$currPos++;
|
|
2357
2474
|
}
|
|
2358
2475
|
else {
|
|
2359
2476
|
s1 = peg$FAILED;
|
|
2360
2477
|
if (peg$silentFails === 0) {
|
|
2361
|
-
peg$fail(peg$
|
|
2478
|
+
peg$fail(peg$e21);
|
|
2362
2479
|
}
|
|
2363
2480
|
}
|
|
2364
2481
|
if (s1 === peg$FAILED) {
|
|
2365
2482
|
s1 = null;
|
|
2366
2483
|
}
|
|
2367
|
-
s2 = peg$
|
|
2484
|
+
s2 = peg$parseMediaSizeTags();
|
|
2368
2485
|
if (s2 !== peg$FAILED) {
|
|
2369
2486
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
2370
2487
|
s3 = peg$c1;
|
|
@@ -2379,25 +2496,25 @@ function peg$parse(input, options) {
|
|
|
2379
2496
|
if (s3 !== peg$FAILED) {
|
|
2380
2497
|
s4 = [];
|
|
2381
2498
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
2382
|
-
s5 = peg$
|
|
2499
|
+
s5 = peg$c16;
|
|
2383
2500
|
peg$currPos++;
|
|
2384
2501
|
}
|
|
2385
2502
|
else {
|
|
2386
2503
|
s5 = peg$FAILED;
|
|
2387
2504
|
if (peg$silentFails === 0) {
|
|
2388
|
-
peg$fail(peg$
|
|
2505
|
+
peg$fail(peg$e19);
|
|
2389
2506
|
}
|
|
2390
2507
|
}
|
|
2391
2508
|
while (s5 !== peg$FAILED) {
|
|
2392
2509
|
s4.push(s5);
|
|
2393
2510
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
2394
|
-
s5 = peg$
|
|
2511
|
+
s5 = peg$c16;
|
|
2395
2512
|
peg$currPos++;
|
|
2396
2513
|
}
|
|
2397
2514
|
else {
|
|
2398
2515
|
s5 = peg$FAILED;
|
|
2399
2516
|
if (peg$silentFails === 0) {
|
|
2400
|
-
peg$fail(peg$
|
|
2517
|
+
peg$fail(peg$e19);
|
|
2401
2518
|
}
|
|
2402
2519
|
}
|
|
2403
2520
|
}
|
|
@@ -2423,7 +2540,7 @@ function peg$parse(input, options) {
|
|
|
2423
2540
|
else {
|
|
2424
2541
|
s9 = peg$FAILED;
|
|
2425
2542
|
if (peg$silentFails === 0) {
|
|
2426
|
-
peg$fail(peg$
|
|
2543
|
+
peg$fail(peg$e22);
|
|
2427
2544
|
}
|
|
2428
2545
|
}
|
|
2429
2546
|
if (s9 !== peg$FAILED) {
|
|
@@ -2462,7 +2579,7 @@ function peg$parse(input, options) {
|
|
|
2462
2579
|
else {
|
|
2463
2580
|
s9 = peg$FAILED;
|
|
2464
2581
|
if (peg$silentFails === 0) {
|
|
2465
|
-
peg$fail(peg$
|
|
2582
|
+
peg$fail(peg$e22);
|
|
2466
2583
|
}
|
|
2467
2584
|
}
|
|
2468
2585
|
if (s9 !== peg$FAILED) {
|
|
@@ -2493,7 +2610,7 @@ function peg$parse(input, options) {
|
|
|
2493
2610
|
s6 = peg$parseBlockTag();
|
|
2494
2611
|
if (s6 !== peg$FAILED) {
|
|
2495
2612
|
peg$savedPos = s0;
|
|
2496
|
-
s0 = peg$
|
|
2613
|
+
s0 = peg$f37(s2, s5);
|
|
2497
2614
|
}
|
|
2498
2615
|
else {
|
|
2499
2616
|
peg$currPos = s0;
|
|
@@ -2517,19 +2634,19 @@ function peg$parse(input, options) {
|
|
|
2517
2634
|
if (s0 === peg$FAILED) {
|
|
2518
2635
|
s0 = peg$currPos;
|
|
2519
2636
|
if (input.charCodeAt(peg$currPos) === 64) {
|
|
2520
|
-
s1 = peg$
|
|
2637
|
+
s1 = peg$c18;
|
|
2521
2638
|
peg$currPos++;
|
|
2522
2639
|
}
|
|
2523
2640
|
else {
|
|
2524
2641
|
s1 = peg$FAILED;
|
|
2525
2642
|
if (peg$silentFails === 0) {
|
|
2526
|
-
peg$fail(peg$
|
|
2643
|
+
peg$fail(peg$e21);
|
|
2527
2644
|
}
|
|
2528
2645
|
}
|
|
2529
2646
|
if (s1 === peg$FAILED) {
|
|
2530
2647
|
s1 = null;
|
|
2531
2648
|
}
|
|
2532
|
-
s2 = peg$
|
|
2649
|
+
s2 = peg$parseMediaSizeTags();
|
|
2533
2650
|
if (s2 !== peg$FAILED) {
|
|
2534
2651
|
if (input.charCodeAt(peg$currPos) === 58) {
|
|
2535
2652
|
s3 = peg$c1;
|
|
@@ -2544,25 +2661,25 @@ function peg$parse(input, options) {
|
|
|
2544
2661
|
if (s3 !== peg$FAILED) {
|
|
2545
2662
|
s4 = [];
|
|
2546
2663
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
2547
|
-
s5 = peg$
|
|
2664
|
+
s5 = peg$c16;
|
|
2548
2665
|
peg$currPos++;
|
|
2549
2666
|
}
|
|
2550
2667
|
else {
|
|
2551
2668
|
s5 = peg$FAILED;
|
|
2552
2669
|
if (peg$silentFails === 0) {
|
|
2553
|
-
peg$fail(peg$
|
|
2670
|
+
peg$fail(peg$e19);
|
|
2554
2671
|
}
|
|
2555
2672
|
}
|
|
2556
2673
|
while (s5 !== peg$FAILED) {
|
|
2557
2674
|
s4.push(s5);
|
|
2558
2675
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
2559
|
-
s5 = peg$
|
|
2676
|
+
s5 = peg$c16;
|
|
2560
2677
|
peg$currPos++;
|
|
2561
2678
|
}
|
|
2562
2679
|
else {
|
|
2563
2680
|
s5 = peg$FAILED;
|
|
2564
2681
|
if (peg$silentFails === 0) {
|
|
2565
|
-
peg$fail(peg$
|
|
2682
|
+
peg$fail(peg$e19);
|
|
2566
2683
|
}
|
|
2567
2684
|
}
|
|
2568
2685
|
}
|
|
@@ -2629,7 +2746,7 @@ function peg$parse(input, options) {
|
|
|
2629
2746
|
s6 = peg$parseBlockTag();
|
|
2630
2747
|
if (s6 !== peg$FAILED) {
|
|
2631
2748
|
peg$savedPos = s0;
|
|
2632
|
-
s0 = peg$
|
|
2749
|
+
s0 = peg$f38(s2, s5);
|
|
2633
2750
|
}
|
|
2634
2751
|
else {
|
|
2635
2752
|
peg$currPos = s0;
|
|
@@ -2648,13 +2765,13 @@ function peg$parse(input, options) {
|
|
|
2648
2765
|
if (s0 === peg$FAILED) {
|
|
2649
2766
|
s0 = peg$currPos;
|
|
2650
2767
|
if (input.charCodeAt(peg$currPos) === 64) {
|
|
2651
|
-
s1 = peg$
|
|
2768
|
+
s1 = peg$c18;
|
|
2652
2769
|
peg$currPos++;
|
|
2653
2770
|
}
|
|
2654
2771
|
else {
|
|
2655
2772
|
s1 = peg$FAILED;
|
|
2656
2773
|
if (peg$silentFails === 0) {
|
|
2657
|
-
peg$fail(peg$
|
|
2774
|
+
peg$fail(peg$e21);
|
|
2658
2775
|
}
|
|
2659
2776
|
}
|
|
2660
2777
|
if (s1 === peg$FAILED) {
|
|
@@ -2756,13 +2873,13 @@ function peg$parse(input, options) {
|
|
|
2756
2873
|
}
|
|
2757
2874
|
if (s3 !== peg$FAILED) {
|
|
2758
2875
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
2759
|
-
s4 = peg$
|
|
2876
|
+
s4 = peg$c16;
|
|
2760
2877
|
peg$currPos++;
|
|
2761
2878
|
}
|
|
2762
2879
|
else {
|
|
2763
2880
|
s4 = peg$FAILED;
|
|
2764
2881
|
if (peg$silentFails === 0) {
|
|
2765
|
-
peg$fail(peg$
|
|
2882
|
+
peg$fail(peg$e19);
|
|
2766
2883
|
}
|
|
2767
2884
|
}
|
|
2768
2885
|
if (s4 === peg$FAILED) {
|
|
@@ -2831,7 +2948,7 @@ function peg$parse(input, options) {
|
|
|
2831
2948
|
s6 = peg$parseBlockTag();
|
|
2832
2949
|
if (s6 !== peg$FAILED) {
|
|
2833
2950
|
peg$savedPos = s0;
|
|
2834
|
-
s0 = peg$
|
|
2951
|
+
s0 = peg$f39(s2, s5);
|
|
2835
2952
|
}
|
|
2836
2953
|
else {
|
|
2837
2954
|
peg$currPos = s0;
|
|
@@ -2845,13 +2962,13 @@ function peg$parse(input, options) {
|
|
|
2845
2962
|
if (s0 === peg$FAILED) {
|
|
2846
2963
|
s0 = peg$currPos;
|
|
2847
2964
|
if (input.charCodeAt(peg$currPos) === 64) {
|
|
2848
|
-
s1 = peg$
|
|
2965
|
+
s1 = peg$c18;
|
|
2849
2966
|
peg$currPos++;
|
|
2850
2967
|
}
|
|
2851
2968
|
else {
|
|
2852
2969
|
s1 = peg$FAILED;
|
|
2853
2970
|
if (peg$silentFails === 0) {
|
|
2854
|
-
peg$fail(peg$
|
|
2971
|
+
peg$fail(peg$e21);
|
|
2855
2972
|
}
|
|
2856
2973
|
}
|
|
2857
2974
|
if (s1 === peg$FAILED) {
|
|
@@ -2920,7 +3037,7 @@ function peg$parse(input, options) {
|
|
|
2920
3037
|
s3 = peg$parseBlockTag();
|
|
2921
3038
|
if (s3 !== peg$FAILED) {
|
|
2922
3039
|
peg$savedPos = s0;
|
|
2923
|
-
s0 = peg$
|
|
3040
|
+
s0 = peg$f40(s2);
|
|
2924
3041
|
}
|
|
2925
3042
|
else {
|
|
2926
3043
|
peg$currPos = s0;
|
|
@@ -2932,27 +3049,27 @@ function peg$parse(input, options) {
|
|
|
2932
3049
|
}
|
|
2933
3050
|
return s0;
|
|
2934
3051
|
}
|
|
2935
|
-
function peg$
|
|
3052
|
+
function peg$parseMediaSizeTags() {
|
|
2936
3053
|
var s0;
|
|
2937
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
2938
|
-
s0 = peg$
|
|
3054
|
+
if (input.substr(peg$currPos, 5) === peg$c19) {
|
|
3055
|
+
s0 = peg$c19;
|
|
2939
3056
|
peg$currPos += 5;
|
|
2940
3057
|
}
|
|
2941
3058
|
else {
|
|
2942
3059
|
s0 = peg$FAILED;
|
|
2943
3060
|
if (peg$silentFails === 0) {
|
|
2944
|
-
peg$fail(peg$
|
|
3061
|
+
peg$fail(peg$e23);
|
|
2945
3062
|
}
|
|
2946
3063
|
}
|
|
2947
3064
|
if (s0 === peg$FAILED) {
|
|
2948
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
2949
|
-
s0 = peg$
|
|
3065
|
+
if (input.substr(peg$currPos, 6) === peg$c20) {
|
|
3066
|
+
s0 = peg$c20;
|
|
2950
3067
|
peg$currPos += 6;
|
|
2951
3068
|
}
|
|
2952
3069
|
else {
|
|
2953
3070
|
s0 = peg$FAILED;
|
|
2954
3071
|
if (peg$silentFails === 0) {
|
|
2955
|
-
peg$fail(peg$
|
|
3072
|
+
peg$fail(peg$e24);
|
|
2956
3073
|
}
|
|
2957
3074
|
}
|
|
2958
3075
|
}
|
|
@@ -2964,7 +3081,7 @@ function peg$parse(input, options) {
|
|
|
2964
3081
|
s0 = peg$currPos;
|
|
2965
3082
|
s1 = peg$parseInlineTags();
|
|
2966
3083
|
peg$savedPos = s0;
|
|
2967
|
-
s1 = peg$
|
|
3084
|
+
s1 = peg$f41(s1);
|
|
2968
3085
|
s0 = s1;
|
|
2969
3086
|
peg$silentFails--;
|
|
2970
3087
|
s1 = peg$FAILED;
|
|
@@ -2980,7 +3097,7 @@ function peg$parse(input, options) {
|
|
|
2980
3097
|
peg$silentFails--;
|
|
2981
3098
|
s1 = peg$FAILED;
|
|
2982
3099
|
if (peg$silentFails === 0) {
|
|
2983
|
-
peg$fail(peg$
|
|
3100
|
+
peg$fail(peg$e25);
|
|
2984
3101
|
}
|
|
2985
3102
|
return s0;
|
|
2986
3103
|
}
|
|
@@ -3004,7 +3121,7 @@ function peg$parse(input, options) {
|
|
|
3004
3121
|
}
|
|
3005
3122
|
}
|
|
3006
3123
|
peg$savedPos = s0;
|
|
3007
|
-
s0 = peg$
|
|
3124
|
+
s0 = peg$f42(s1, s2);
|
|
3008
3125
|
return s0;
|
|
3009
3126
|
}
|
|
3010
3127
|
function peg$parseInlinePlainText() {
|
|
@@ -3013,7 +3130,7 @@ function peg$parse(input, options) {
|
|
|
3013
3130
|
s1 = peg$parseNL();
|
|
3014
3131
|
if (s1 !== peg$FAILED) {
|
|
3015
3132
|
peg$savedPos = s0;
|
|
3016
|
-
s1 = peg$
|
|
3133
|
+
s1 = peg$f43();
|
|
3017
3134
|
}
|
|
3018
3135
|
s0 = s1;
|
|
3019
3136
|
if (s0 === peg$FAILED) {
|
|
@@ -3156,7 +3273,7 @@ function peg$parse(input, options) {
|
|
|
3156
3273
|
}
|
|
3157
3274
|
if (s1 !== peg$FAILED) {
|
|
3158
3275
|
peg$savedPos = s0;
|
|
3159
|
-
s1 = peg$
|
|
3276
|
+
s1 = peg$f44(s1);
|
|
3160
3277
|
}
|
|
3161
3278
|
s0 = s1;
|
|
3162
3279
|
}
|
|
@@ -3165,27 +3282,27 @@ function peg$parse(input, options) {
|
|
|
3165
3282
|
function peg$parseInlineHalfTag() {
|
|
3166
3283
|
var s0;
|
|
3167
3284
|
if (input.charCodeAt(peg$currPos) === 61) {
|
|
3168
|
-
s0 = peg$
|
|
3285
|
+
s0 = peg$c21;
|
|
3169
3286
|
peg$currPos++;
|
|
3170
3287
|
}
|
|
3171
3288
|
else {
|
|
3172
3289
|
s0 = peg$FAILED;
|
|
3173
3290
|
if (peg$silentFails === 0) {
|
|
3174
|
-
peg$fail(peg$
|
|
3291
|
+
peg$fail(peg$e26);
|
|
3175
3292
|
}
|
|
3176
3293
|
}
|
|
3177
3294
|
return s0;
|
|
3178
3295
|
}
|
|
3179
3296
|
function peg$parseInlineLaTexHalfTag() {
|
|
3180
3297
|
var s0;
|
|
3181
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
3182
|
-
s0 = peg$
|
|
3298
|
+
if (input.substr(peg$currPos, 2) === peg$c22) {
|
|
3299
|
+
s0 = peg$c22;
|
|
3183
3300
|
peg$currPos += 2;
|
|
3184
3301
|
}
|
|
3185
3302
|
else {
|
|
3186
3303
|
s0 = peg$FAILED;
|
|
3187
3304
|
if (peg$silentFails === 0) {
|
|
3188
|
-
peg$fail(peg$
|
|
3305
|
+
peg$fail(peg$e27);
|
|
3189
3306
|
}
|
|
3190
3307
|
}
|
|
3191
3308
|
return s0;
|
|
@@ -3246,7 +3363,7 @@ function peg$parse(input, options) {
|
|
|
3246
3363
|
else {
|
|
3247
3364
|
s4 = peg$FAILED;
|
|
3248
3365
|
if (peg$silentFails === 0) {
|
|
3249
|
-
peg$fail(peg$
|
|
3366
|
+
peg$fail(peg$e22);
|
|
3250
3367
|
}
|
|
3251
3368
|
}
|
|
3252
3369
|
if (s4 !== peg$FAILED) {
|
|
@@ -3259,7 +3376,7 @@ function peg$parse(input, options) {
|
|
|
3259
3376
|
else {
|
|
3260
3377
|
s4 = peg$FAILED;
|
|
3261
3378
|
if (peg$silentFails === 0) {
|
|
3262
|
-
peg$fail(peg$
|
|
3379
|
+
peg$fail(peg$e22);
|
|
3263
3380
|
}
|
|
3264
3381
|
}
|
|
3265
3382
|
}
|
|
@@ -3277,7 +3394,7 @@ function peg$parse(input, options) {
|
|
|
3277
3394
|
s3 = peg$parseBodyBitCloseTag();
|
|
3278
3395
|
if (s3 !== peg$FAILED) {
|
|
3279
3396
|
peg$savedPos = s0;
|
|
3280
|
-
s0 = peg$
|
|
3397
|
+
s0 = peg$f45(s2);
|
|
3281
3398
|
}
|
|
3282
3399
|
else {
|
|
3283
3400
|
peg$currPos = s0;
|
|
@@ -3298,13 +3415,13 @@ function peg$parse(input, options) {
|
|
|
3298
3415
|
s1 = peg$parseInlineTag();
|
|
3299
3416
|
if (s1 !== peg$FAILED) {
|
|
3300
3417
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3301
|
-
s2 = peg$
|
|
3418
|
+
s2 = peg$c16;
|
|
3302
3419
|
peg$currPos++;
|
|
3303
3420
|
}
|
|
3304
3421
|
else {
|
|
3305
3422
|
s2 = peg$FAILED;
|
|
3306
3423
|
if (peg$silentFails === 0) {
|
|
3307
|
-
peg$fail(peg$
|
|
3424
|
+
peg$fail(peg$e19);
|
|
3308
3425
|
}
|
|
3309
3426
|
}
|
|
3310
3427
|
if (s2 === peg$FAILED) {
|
|
@@ -3317,13 +3434,13 @@ function peg$parse(input, options) {
|
|
|
3317
3434
|
peg$silentFails++;
|
|
3318
3435
|
s7 = peg$currPos;
|
|
3319
3436
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3320
|
-
s8 = peg$
|
|
3437
|
+
s8 = peg$c16;
|
|
3321
3438
|
peg$currPos++;
|
|
3322
3439
|
}
|
|
3323
3440
|
else {
|
|
3324
3441
|
s8 = peg$FAILED;
|
|
3325
3442
|
if (peg$silentFails === 0) {
|
|
3326
|
-
peg$fail(peg$
|
|
3443
|
+
peg$fail(peg$e19);
|
|
3327
3444
|
}
|
|
3328
3445
|
}
|
|
3329
3446
|
if (s8 === peg$FAILED) {
|
|
@@ -3354,7 +3471,7 @@ function peg$parse(input, options) {
|
|
|
3354
3471
|
else {
|
|
3355
3472
|
s7 = peg$FAILED;
|
|
3356
3473
|
if (peg$silentFails === 0) {
|
|
3357
|
-
peg$fail(peg$
|
|
3474
|
+
peg$fail(peg$e16);
|
|
3358
3475
|
}
|
|
3359
3476
|
}
|
|
3360
3477
|
if (s7 !== peg$FAILED) {
|
|
@@ -3377,13 +3494,13 @@ function peg$parse(input, options) {
|
|
|
3377
3494
|
peg$silentFails++;
|
|
3378
3495
|
s7 = peg$currPos;
|
|
3379
3496
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3380
|
-
s8 = peg$
|
|
3497
|
+
s8 = peg$c16;
|
|
3381
3498
|
peg$currPos++;
|
|
3382
3499
|
}
|
|
3383
3500
|
else {
|
|
3384
3501
|
s8 = peg$FAILED;
|
|
3385
3502
|
if (peg$silentFails === 0) {
|
|
3386
|
-
peg$fail(peg$
|
|
3503
|
+
peg$fail(peg$e19);
|
|
3387
3504
|
}
|
|
3388
3505
|
}
|
|
3389
3506
|
if (s8 === peg$FAILED) {
|
|
@@ -3414,7 +3531,7 @@ function peg$parse(input, options) {
|
|
|
3414
3531
|
else {
|
|
3415
3532
|
s7 = peg$FAILED;
|
|
3416
3533
|
if (peg$silentFails === 0) {
|
|
3417
|
-
peg$fail(peg$
|
|
3534
|
+
peg$fail(peg$e16);
|
|
3418
3535
|
}
|
|
3419
3536
|
}
|
|
3420
3537
|
if (s7 !== peg$FAILED) {
|
|
@@ -3433,13 +3550,13 @@ function peg$parse(input, options) {
|
|
|
3433
3550
|
}
|
|
3434
3551
|
s3 = input.substring(s3, peg$currPos);
|
|
3435
3552
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3436
|
-
s4 = peg$
|
|
3553
|
+
s4 = peg$c16;
|
|
3437
3554
|
peg$currPos++;
|
|
3438
3555
|
}
|
|
3439
3556
|
else {
|
|
3440
3557
|
s4 = peg$FAILED;
|
|
3441
3558
|
if (peg$silentFails === 0) {
|
|
3442
|
-
peg$fail(peg$
|
|
3559
|
+
peg$fail(peg$e19);
|
|
3443
3560
|
}
|
|
3444
3561
|
}
|
|
3445
3562
|
if (s4 === peg$FAILED) {
|
|
@@ -3448,11 +3565,14 @@ function peg$parse(input, options) {
|
|
|
3448
3565
|
s5 = peg$parseInlineTag();
|
|
3449
3566
|
if (s5 !== peg$FAILED) {
|
|
3450
3567
|
s6 = peg$parseAttrChain();
|
|
3451
|
-
if (s6
|
|
3452
|
-
|
|
3568
|
+
if (s6 !== peg$FAILED) {
|
|
3569
|
+
peg$savedPos = s0;
|
|
3570
|
+
s0 = peg$f46(s3, s6);
|
|
3571
|
+
}
|
|
3572
|
+
else {
|
|
3573
|
+
peg$currPos = s0;
|
|
3574
|
+
s0 = peg$FAILED;
|
|
3453
3575
|
}
|
|
3454
|
-
peg$savedPos = s0;
|
|
3455
|
-
s0 = peg$f44(s3, s6);
|
|
3456
3576
|
}
|
|
3457
3577
|
else {
|
|
3458
3578
|
peg$currPos = s0;
|
|
@@ -3468,13 +3588,13 @@ function peg$parse(input, options) {
|
|
|
3468
3588
|
s1 = peg$parseBoldTag();
|
|
3469
3589
|
if (s1 !== peg$FAILED) {
|
|
3470
3590
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3471
|
-
s2 = peg$
|
|
3591
|
+
s2 = peg$c16;
|
|
3472
3592
|
peg$currPos++;
|
|
3473
3593
|
}
|
|
3474
3594
|
else {
|
|
3475
3595
|
s2 = peg$FAILED;
|
|
3476
3596
|
if (peg$silentFails === 0) {
|
|
3477
|
-
peg$fail(peg$
|
|
3597
|
+
peg$fail(peg$e19);
|
|
3478
3598
|
}
|
|
3479
3599
|
}
|
|
3480
3600
|
if (s2 === peg$FAILED) {
|
|
@@ -3487,13 +3607,13 @@ function peg$parse(input, options) {
|
|
|
3487
3607
|
peg$silentFails++;
|
|
3488
3608
|
s7 = peg$currPos;
|
|
3489
3609
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3490
|
-
s8 = peg$
|
|
3610
|
+
s8 = peg$c16;
|
|
3491
3611
|
peg$currPos++;
|
|
3492
3612
|
}
|
|
3493
3613
|
else {
|
|
3494
3614
|
s8 = peg$FAILED;
|
|
3495
3615
|
if (peg$silentFails === 0) {
|
|
3496
|
-
peg$fail(peg$
|
|
3616
|
+
peg$fail(peg$e19);
|
|
3497
3617
|
}
|
|
3498
3618
|
}
|
|
3499
3619
|
if (s8 === peg$FAILED) {
|
|
@@ -3524,7 +3644,7 @@ function peg$parse(input, options) {
|
|
|
3524
3644
|
else {
|
|
3525
3645
|
s7 = peg$FAILED;
|
|
3526
3646
|
if (peg$silentFails === 0) {
|
|
3527
|
-
peg$fail(peg$
|
|
3647
|
+
peg$fail(peg$e16);
|
|
3528
3648
|
}
|
|
3529
3649
|
}
|
|
3530
3650
|
if (s7 !== peg$FAILED) {
|
|
@@ -3547,13 +3667,13 @@ function peg$parse(input, options) {
|
|
|
3547
3667
|
peg$silentFails++;
|
|
3548
3668
|
s7 = peg$currPos;
|
|
3549
3669
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3550
|
-
s8 = peg$
|
|
3670
|
+
s8 = peg$c16;
|
|
3551
3671
|
peg$currPos++;
|
|
3552
3672
|
}
|
|
3553
3673
|
else {
|
|
3554
3674
|
s8 = peg$FAILED;
|
|
3555
3675
|
if (peg$silentFails === 0) {
|
|
3556
|
-
peg$fail(peg$
|
|
3676
|
+
peg$fail(peg$e19);
|
|
3557
3677
|
}
|
|
3558
3678
|
}
|
|
3559
3679
|
if (s8 === peg$FAILED) {
|
|
@@ -3584,7 +3704,7 @@ function peg$parse(input, options) {
|
|
|
3584
3704
|
else {
|
|
3585
3705
|
s7 = peg$FAILED;
|
|
3586
3706
|
if (peg$silentFails === 0) {
|
|
3587
|
-
peg$fail(peg$
|
|
3707
|
+
peg$fail(peg$e16);
|
|
3588
3708
|
}
|
|
3589
3709
|
}
|
|
3590
3710
|
if (s7 !== peg$FAILED) {
|
|
@@ -3603,13 +3723,13 @@ function peg$parse(input, options) {
|
|
|
3603
3723
|
}
|
|
3604
3724
|
s3 = input.substring(s3, peg$currPos);
|
|
3605
3725
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3606
|
-
s4 = peg$
|
|
3726
|
+
s4 = peg$c16;
|
|
3607
3727
|
peg$currPos++;
|
|
3608
3728
|
}
|
|
3609
3729
|
else {
|
|
3610
3730
|
s4 = peg$FAILED;
|
|
3611
3731
|
if (peg$silentFails === 0) {
|
|
3612
|
-
peg$fail(peg$
|
|
3732
|
+
peg$fail(peg$e19);
|
|
3613
3733
|
}
|
|
3614
3734
|
}
|
|
3615
3735
|
if (s4 === peg$FAILED) {
|
|
@@ -3618,7 +3738,7 @@ function peg$parse(input, options) {
|
|
|
3618
3738
|
s5 = peg$parseBoldTag();
|
|
3619
3739
|
if (s5 !== peg$FAILED) {
|
|
3620
3740
|
peg$savedPos = s0;
|
|
3621
|
-
s0 = peg$
|
|
3741
|
+
s0 = peg$f47(s3);
|
|
3622
3742
|
}
|
|
3623
3743
|
else {
|
|
3624
3744
|
peg$currPos = s0;
|
|
@@ -3634,13 +3754,13 @@ function peg$parse(input, options) {
|
|
|
3634
3754
|
s1 = peg$parseItalicTag();
|
|
3635
3755
|
if (s1 !== peg$FAILED) {
|
|
3636
3756
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3637
|
-
s2 = peg$
|
|
3757
|
+
s2 = peg$c16;
|
|
3638
3758
|
peg$currPos++;
|
|
3639
3759
|
}
|
|
3640
3760
|
else {
|
|
3641
3761
|
s2 = peg$FAILED;
|
|
3642
3762
|
if (peg$silentFails === 0) {
|
|
3643
|
-
peg$fail(peg$
|
|
3763
|
+
peg$fail(peg$e19);
|
|
3644
3764
|
}
|
|
3645
3765
|
}
|
|
3646
3766
|
if (s2 === peg$FAILED) {
|
|
@@ -3653,13 +3773,13 @@ function peg$parse(input, options) {
|
|
|
3653
3773
|
peg$silentFails++;
|
|
3654
3774
|
s7 = peg$currPos;
|
|
3655
3775
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3656
|
-
s8 = peg$
|
|
3776
|
+
s8 = peg$c16;
|
|
3657
3777
|
peg$currPos++;
|
|
3658
3778
|
}
|
|
3659
3779
|
else {
|
|
3660
3780
|
s8 = peg$FAILED;
|
|
3661
3781
|
if (peg$silentFails === 0) {
|
|
3662
|
-
peg$fail(peg$
|
|
3782
|
+
peg$fail(peg$e19);
|
|
3663
3783
|
}
|
|
3664
3784
|
}
|
|
3665
3785
|
if (s8 === peg$FAILED) {
|
|
@@ -3690,7 +3810,7 @@ function peg$parse(input, options) {
|
|
|
3690
3810
|
else {
|
|
3691
3811
|
s7 = peg$FAILED;
|
|
3692
3812
|
if (peg$silentFails === 0) {
|
|
3693
|
-
peg$fail(peg$
|
|
3813
|
+
peg$fail(peg$e16);
|
|
3694
3814
|
}
|
|
3695
3815
|
}
|
|
3696
3816
|
if (s7 !== peg$FAILED) {
|
|
@@ -3713,13 +3833,13 @@ function peg$parse(input, options) {
|
|
|
3713
3833
|
peg$silentFails++;
|
|
3714
3834
|
s7 = peg$currPos;
|
|
3715
3835
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3716
|
-
s8 = peg$
|
|
3836
|
+
s8 = peg$c16;
|
|
3717
3837
|
peg$currPos++;
|
|
3718
3838
|
}
|
|
3719
3839
|
else {
|
|
3720
3840
|
s8 = peg$FAILED;
|
|
3721
3841
|
if (peg$silentFails === 0) {
|
|
3722
|
-
peg$fail(peg$
|
|
3842
|
+
peg$fail(peg$e19);
|
|
3723
3843
|
}
|
|
3724
3844
|
}
|
|
3725
3845
|
if (s8 === peg$FAILED) {
|
|
@@ -3750,7 +3870,7 @@ function peg$parse(input, options) {
|
|
|
3750
3870
|
else {
|
|
3751
3871
|
s7 = peg$FAILED;
|
|
3752
3872
|
if (peg$silentFails === 0) {
|
|
3753
|
-
peg$fail(peg$
|
|
3873
|
+
peg$fail(peg$e16);
|
|
3754
3874
|
}
|
|
3755
3875
|
}
|
|
3756
3876
|
if (s7 !== peg$FAILED) {
|
|
@@ -3769,13 +3889,13 @@ function peg$parse(input, options) {
|
|
|
3769
3889
|
}
|
|
3770
3890
|
s3 = input.substring(s3, peg$currPos);
|
|
3771
3891
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3772
|
-
s4 = peg$
|
|
3892
|
+
s4 = peg$c16;
|
|
3773
3893
|
peg$currPos++;
|
|
3774
3894
|
}
|
|
3775
3895
|
else {
|
|
3776
3896
|
s4 = peg$FAILED;
|
|
3777
3897
|
if (peg$silentFails === 0) {
|
|
3778
|
-
peg$fail(peg$
|
|
3898
|
+
peg$fail(peg$e19);
|
|
3779
3899
|
}
|
|
3780
3900
|
}
|
|
3781
3901
|
if (s4 === peg$FAILED) {
|
|
@@ -3784,7 +3904,7 @@ function peg$parse(input, options) {
|
|
|
3784
3904
|
s5 = peg$parseItalicTag();
|
|
3785
3905
|
if (s5 !== peg$FAILED) {
|
|
3786
3906
|
peg$savedPos = s0;
|
|
3787
|
-
s0 = peg$
|
|
3907
|
+
s0 = peg$f48(s3);
|
|
3788
3908
|
}
|
|
3789
3909
|
else {
|
|
3790
3910
|
peg$currPos = s0;
|
|
@@ -3800,13 +3920,13 @@ function peg$parse(input, options) {
|
|
|
3800
3920
|
s1 = peg$parseLightTag();
|
|
3801
3921
|
if (s1 !== peg$FAILED) {
|
|
3802
3922
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3803
|
-
s2 = peg$
|
|
3923
|
+
s2 = peg$c16;
|
|
3804
3924
|
peg$currPos++;
|
|
3805
3925
|
}
|
|
3806
3926
|
else {
|
|
3807
3927
|
s2 = peg$FAILED;
|
|
3808
3928
|
if (peg$silentFails === 0) {
|
|
3809
|
-
peg$fail(peg$
|
|
3929
|
+
peg$fail(peg$e19);
|
|
3810
3930
|
}
|
|
3811
3931
|
}
|
|
3812
3932
|
if (s2 === peg$FAILED) {
|
|
@@ -3819,13 +3939,13 @@ function peg$parse(input, options) {
|
|
|
3819
3939
|
peg$silentFails++;
|
|
3820
3940
|
s7 = peg$currPos;
|
|
3821
3941
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3822
|
-
s8 = peg$
|
|
3942
|
+
s8 = peg$c16;
|
|
3823
3943
|
peg$currPos++;
|
|
3824
3944
|
}
|
|
3825
3945
|
else {
|
|
3826
3946
|
s8 = peg$FAILED;
|
|
3827
3947
|
if (peg$silentFails === 0) {
|
|
3828
|
-
peg$fail(peg$
|
|
3948
|
+
peg$fail(peg$e19);
|
|
3829
3949
|
}
|
|
3830
3950
|
}
|
|
3831
3951
|
if (s8 === peg$FAILED) {
|
|
@@ -3856,7 +3976,7 @@ function peg$parse(input, options) {
|
|
|
3856
3976
|
else {
|
|
3857
3977
|
s7 = peg$FAILED;
|
|
3858
3978
|
if (peg$silentFails === 0) {
|
|
3859
|
-
peg$fail(peg$
|
|
3979
|
+
peg$fail(peg$e16);
|
|
3860
3980
|
}
|
|
3861
3981
|
}
|
|
3862
3982
|
if (s7 !== peg$FAILED) {
|
|
@@ -3879,13 +3999,13 @@ function peg$parse(input, options) {
|
|
|
3879
3999
|
peg$silentFails++;
|
|
3880
4000
|
s7 = peg$currPos;
|
|
3881
4001
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3882
|
-
s8 = peg$
|
|
4002
|
+
s8 = peg$c16;
|
|
3883
4003
|
peg$currPos++;
|
|
3884
4004
|
}
|
|
3885
4005
|
else {
|
|
3886
4006
|
s8 = peg$FAILED;
|
|
3887
4007
|
if (peg$silentFails === 0) {
|
|
3888
|
-
peg$fail(peg$
|
|
4008
|
+
peg$fail(peg$e19);
|
|
3889
4009
|
}
|
|
3890
4010
|
}
|
|
3891
4011
|
if (s8 === peg$FAILED) {
|
|
@@ -3916,7 +4036,7 @@ function peg$parse(input, options) {
|
|
|
3916
4036
|
else {
|
|
3917
4037
|
s7 = peg$FAILED;
|
|
3918
4038
|
if (peg$silentFails === 0) {
|
|
3919
|
-
peg$fail(peg$
|
|
4039
|
+
peg$fail(peg$e16);
|
|
3920
4040
|
}
|
|
3921
4041
|
}
|
|
3922
4042
|
if (s7 !== peg$FAILED) {
|
|
@@ -3935,13 +4055,13 @@ function peg$parse(input, options) {
|
|
|
3935
4055
|
}
|
|
3936
4056
|
s3 = input.substring(s3, peg$currPos);
|
|
3937
4057
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3938
|
-
s4 = peg$
|
|
4058
|
+
s4 = peg$c16;
|
|
3939
4059
|
peg$currPos++;
|
|
3940
4060
|
}
|
|
3941
4061
|
else {
|
|
3942
4062
|
s4 = peg$FAILED;
|
|
3943
4063
|
if (peg$silentFails === 0) {
|
|
3944
|
-
peg$fail(peg$
|
|
4064
|
+
peg$fail(peg$e19);
|
|
3945
4065
|
}
|
|
3946
4066
|
}
|
|
3947
4067
|
if (s4 === peg$FAILED) {
|
|
@@ -3950,7 +4070,7 @@ function peg$parse(input, options) {
|
|
|
3950
4070
|
s5 = peg$parseLightTag();
|
|
3951
4071
|
if (s5 !== peg$FAILED) {
|
|
3952
4072
|
peg$savedPos = s0;
|
|
3953
|
-
s0 = peg$
|
|
4073
|
+
s0 = peg$f49(s3);
|
|
3954
4074
|
}
|
|
3955
4075
|
else {
|
|
3956
4076
|
peg$currPos = s0;
|
|
@@ -3966,13 +4086,13 @@ function peg$parse(input, options) {
|
|
|
3966
4086
|
s1 = peg$parseHighlightTag();
|
|
3967
4087
|
if (s1 !== peg$FAILED) {
|
|
3968
4088
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3969
|
-
s2 = peg$
|
|
4089
|
+
s2 = peg$c16;
|
|
3970
4090
|
peg$currPos++;
|
|
3971
4091
|
}
|
|
3972
4092
|
else {
|
|
3973
4093
|
s2 = peg$FAILED;
|
|
3974
4094
|
if (peg$silentFails === 0) {
|
|
3975
|
-
peg$fail(peg$
|
|
4095
|
+
peg$fail(peg$e19);
|
|
3976
4096
|
}
|
|
3977
4097
|
}
|
|
3978
4098
|
if (s2 === peg$FAILED) {
|
|
@@ -3985,13 +4105,13 @@ function peg$parse(input, options) {
|
|
|
3985
4105
|
peg$silentFails++;
|
|
3986
4106
|
s7 = peg$currPos;
|
|
3987
4107
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3988
|
-
s8 = peg$
|
|
4108
|
+
s8 = peg$c16;
|
|
3989
4109
|
peg$currPos++;
|
|
3990
4110
|
}
|
|
3991
4111
|
else {
|
|
3992
4112
|
s8 = peg$FAILED;
|
|
3993
4113
|
if (peg$silentFails === 0) {
|
|
3994
|
-
peg$fail(peg$
|
|
4114
|
+
peg$fail(peg$e19);
|
|
3995
4115
|
}
|
|
3996
4116
|
}
|
|
3997
4117
|
if (s8 === peg$FAILED) {
|
|
@@ -4022,7 +4142,7 @@ function peg$parse(input, options) {
|
|
|
4022
4142
|
else {
|
|
4023
4143
|
s7 = peg$FAILED;
|
|
4024
4144
|
if (peg$silentFails === 0) {
|
|
4025
|
-
peg$fail(peg$
|
|
4145
|
+
peg$fail(peg$e16);
|
|
4026
4146
|
}
|
|
4027
4147
|
}
|
|
4028
4148
|
if (s7 !== peg$FAILED) {
|
|
@@ -4045,13 +4165,13 @@ function peg$parse(input, options) {
|
|
|
4045
4165
|
peg$silentFails++;
|
|
4046
4166
|
s7 = peg$currPos;
|
|
4047
4167
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
4048
|
-
s8 = peg$
|
|
4168
|
+
s8 = peg$c16;
|
|
4049
4169
|
peg$currPos++;
|
|
4050
4170
|
}
|
|
4051
4171
|
else {
|
|
4052
4172
|
s8 = peg$FAILED;
|
|
4053
4173
|
if (peg$silentFails === 0) {
|
|
4054
|
-
peg$fail(peg$
|
|
4174
|
+
peg$fail(peg$e19);
|
|
4055
4175
|
}
|
|
4056
4176
|
}
|
|
4057
4177
|
if (s8 === peg$FAILED) {
|
|
@@ -4082,7 +4202,7 @@ function peg$parse(input, options) {
|
|
|
4082
4202
|
else {
|
|
4083
4203
|
s7 = peg$FAILED;
|
|
4084
4204
|
if (peg$silentFails === 0) {
|
|
4085
|
-
peg$fail(peg$
|
|
4205
|
+
peg$fail(peg$e16);
|
|
4086
4206
|
}
|
|
4087
4207
|
}
|
|
4088
4208
|
if (s7 !== peg$FAILED) {
|
|
@@ -4101,13 +4221,13 @@ function peg$parse(input, options) {
|
|
|
4101
4221
|
}
|
|
4102
4222
|
s3 = input.substring(s3, peg$currPos);
|
|
4103
4223
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
4104
|
-
s4 = peg$
|
|
4224
|
+
s4 = peg$c16;
|
|
4105
4225
|
peg$currPos++;
|
|
4106
4226
|
}
|
|
4107
4227
|
else {
|
|
4108
4228
|
s4 = peg$FAILED;
|
|
4109
4229
|
if (peg$silentFails === 0) {
|
|
4110
|
-
peg$fail(peg$
|
|
4230
|
+
peg$fail(peg$e19);
|
|
4111
4231
|
}
|
|
4112
4232
|
}
|
|
4113
4233
|
if (s4 === peg$FAILED) {
|
|
@@ -4116,7 +4236,7 @@ function peg$parse(input, options) {
|
|
|
4116
4236
|
s5 = peg$parseHighlightTag();
|
|
4117
4237
|
if (s5 !== peg$FAILED) {
|
|
4118
4238
|
peg$savedPos = s0;
|
|
4119
|
-
s0 = peg$
|
|
4239
|
+
s0 = peg$f50(s3);
|
|
4120
4240
|
}
|
|
4121
4241
|
else {
|
|
4122
4242
|
peg$currPos = s0;
|
|
@@ -4132,7 +4252,7 @@ function peg$parse(input, options) {
|
|
|
4132
4252
|
s1 = peg$parseUrl();
|
|
4133
4253
|
if (s1 !== peg$FAILED) {
|
|
4134
4254
|
peg$savedPos = s0;
|
|
4135
|
-
s1 = peg$
|
|
4255
|
+
s1 = peg$f51(s1);
|
|
4136
4256
|
}
|
|
4137
4257
|
s0 = s1;
|
|
4138
4258
|
}
|
|
@@ -4305,12 +4425,23 @@ function peg$parse(input, options) {
|
|
|
4305
4425
|
if (s1 !== peg$FAILED) {
|
|
4306
4426
|
s2 = [];
|
|
4307
4427
|
s3 = peg$parseAttrChainItem();
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4428
|
+
if (s3 !== peg$FAILED) {
|
|
4429
|
+
while (s3 !== peg$FAILED) {
|
|
4430
|
+
s2.push(s3);
|
|
4431
|
+
s3 = peg$parseAttrChainItem();
|
|
4432
|
+
}
|
|
4433
|
+
}
|
|
4434
|
+
else {
|
|
4435
|
+
s2 = peg$FAILED;
|
|
4436
|
+
}
|
|
4437
|
+
if (s2 !== peg$FAILED) {
|
|
4438
|
+
peg$savedPos = s0;
|
|
4439
|
+
s0 = peg$f52(s2);
|
|
4440
|
+
}
|
|
4441
|
+
else {
|
|
4442
|
+
peg$currPos = s0;
|
|
4443
|
+
s0 = peg$FAILED;
|
|
4311
4444
|
}
|
|
4312
|
-
peg$savedPos = s0;
|
|
4313
|
-
s0 = peg$f50(s2);
|
|
4314
4445
|
}
|
|
4315
4446
|
else {
|
|
4316
4447
|
peg$currPos = s0;
|
|
@@ -4319,16 +4450,16 @@ function peg$parse(input, options) {
|
|
|
4319
4450
|
return s0;
|
|
4320
4451
|
}
|
|
4321
4452
|
function peg$parseAttrChainItem() {
|
|
4322
|
-
var s0, s1, s2, s3, s4, s5, s6;
|
|
4453
|
+
var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
|
|
4323
4454
|
s0 = peg$currPos;
|
|
4324
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
4325
|
-
s1 = peg$
|
|
4455
|
+
if (input.substr(peg$currPos, 5) === peg$c23) {
|
|
4456
|
+
s1 = peg$c23;
|
|
4326
4457
|
peg$currPos += 5;
|
|
4327
4458
|
}
|
|
4328
4459
|
else {
|
|
4329
4460
|
s1 = peg$FAILED;
|
|
4330
4461
|
if (peg$silentFails === 0) {
|
|
4331
|
-
peg$fail(peg$
|
|
4462
|
+
peg$fail(peg$e28);
|
|
4332
4463
|
}
|
|
4333
4464
|
}
|
|
4334
4465
|
if (s1 !== peg$FAILED) {
|
|
@@ -4395,7 +4526,7 @@ function peg$parse(input, options) {
|
|
|
4395
4526
|
s3 = peg$parseBlockTag();
|
|
4396
4527
|
if (s3 !== peg$FAILED) {
|
|
4397
4528
|
peg$savedPos = s0;
|
|
4398
|
-
s0 = peg$
|
|
4529
|
+
s0 = peg$f53(s2);
|
|
4399
4530
|
}
|
|
4400
4531
|
else {
|
|
4401
4532
|
peg$currPos = s0;
|
|
@@ -4408,14 +4539,14 @@ function peg$parse(input, options) {
|
|
|
4408
4539
|
}
|
|
4409
4540
|
if (s0 === peg$FAILED) {
|
|
4410
4541
|
s0 = peg$currPos;
|
|
4411
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4412
|
-
s1 = peg$
|
|
4542
|
+
if (input.substr(peg$currPos, 4) === peg$c24) {
|
|
4543
|
+
s1 = peg$c24;
|
|
4413
4544
|
peg$currPos += 4;
|
|
4414
4545
|
}
|
|
4415
4546
|
else {
|
|
4416
4547
|
s1 = peg$FAILED;
|
|
4417
4548
|
if (peg$silentFails === 0) {
|
|
4418
|
-
peg$fail(peg$
|
|
4549
|
+
peg$fail(peg$e29);
|
|
4419
4550
|
}
|
|
4420
4551
|
}
|
|
4421
4552
|
if (s1 !== peg$FAILED) {
|
|
@@ -4482,7 +4613,7 @@ function peg$parse(input, options) {
|
|
|
4482
4613
|
s3 = peg$parseBlockTag();
|
|
4483
4614
|
if (s3 !== peg$FAILED) {
|
|
4484
4615
|
peg$savedPos = s0;
|
|
4485
|
-
s0 = peg$
|
|
4616
|
+
s0 = peg$f54(s2);
|
|
4486
4617
|
}
|
|
4487
4618
|
else {
|
|
4488
4619
|
peg$currPos = s0;
|
|
@@ -4509,7 +4640,7 @@ function peg$parse(input, options) {
|
|
|
4509
4640
|
s2 = peg$parseBlockTag();
|
|
4510
4641
|
if (s2 !== peg$FAILED) {
|
|
4511
4642
|
peg$savedPos = s0;
|
|
4512
|
-
s0 = peg$
|
|
4643
|
+
s0 = peg$f55();
|
|
4513
4644
|
}
|
|
4514
4645
|
else {
|
|
4515
4646
|
peg$currPos = s0;
|
|
@@ -4522,14 +4653,14 @@ function peg$parse(input, options) {
|
|
|
4522
4653
|
}
|
|
4523
4654
|
if (s0 === peg$FAILED) {
|
|
4524
4655
|
s0 = peg$currPos;
|
|
4525
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
4526
|
-
s1 = peg$
|
|
4656
|
+
if (input.substr(peg$currPos, 5) === peg$c25) {
|
|
4657
|
+
s1 = peg$c25;
|
|
4527
4658
|
peg$currPos += 5;
|
|
4528
4659
|
}
|
|
4529
4660
|
else {
|
|
4530
4661
|
s1 = peg$FAILED;
|
|
4531
4662
|
if (peg$silentFails === 0) {
|
|
4532
|
-
peg$fail(peg$
|
|
4663
|
+
peg$fail(peg$e30);
|
|
4533
4664
|
}
|
|
4534
4665
|
}
|
|
4535
4666
|
if (s1 !== peg$FAILED) {
|
|
@@ -4596,7 +4727,7 @@ function peg$parse(input, options) {
|
|
|
4596
4727
|
s3 = peg$parseBlockTag();
|
|
4597
4728
|
if (s3 !== peg$FAILED) {
|
|
4598
4729
|
peg$savedPos = s0;
|
|
4599
|
-
s0 = peg$
|
|
4730
|
+
s0 = peg$f56(s2);
|
|
4600
4731
|
}
|
|
4601
4732
|
else {
|
|
4602
4733
|
peg$currPos = s0;
|
|
@@ -4609,28 +4740,21 @@ function peg$parse(input, options) {
|
|
|
4609
4740
|
}
|
|
4610
4741
|
if (s0 === peg$FAILED) {
|
|
4611
4742
|
s0 = peg$currPos;
|
|
4612
|
-
if (input.substr(peg$currPos,
|
|
4613
|
-
s1 = peg$
|
|
4614
|
-
peg$currPos +=
|
|
4743
|
+
if (input.substr(peg$currPos, 5) === peg$c26) {
|
|
4744
|
+
s1 = peg$c26;
|
|
4745
|
+
peg$currPos += 5;
|
|
4615
4746
|
}
|
|
4616
4747
|
else {
|
|
4617
4748
|
s1 = peg$FAILED;
|
|
4618
4749
|
if (peg$silentFails === 0) {
|
|
4619
|
-
peg$fail(peg$
|
|
4750
|
+
peg$fail(peg$e31);
|
|
4620
4751
|
}
|
|
4621
4752
|
}
|
|
4622
4753
|
if (s1 !== peg$FAILED) {
|
|
4623
|
-
s2 = peg$
|
|
4754
|
+
s2 = peg$parseBlockTag();
|
|
4624
4755
|
if (s2 !== peg$FAILED) {
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
peg$savedPos = s0;
|
|
4628
|
-
s0 = peg$f55(s2);
|
|
4629
|
-
}
|
|
4630
|
-
else {
|
|
4631
|
-
peg$currPos = s0;
|
|
4632
|
-
s0 = peg$FAILED;
|
|
4633
|
-
}
|
|
4756
|
+
peg$savedPos = s0;
|
|
4757
|
+
s0 = peg$f57();
|
|
4634
4758
|
}
|
|
4635
4759
|
else {
|
|
4636
4760
|
peg$currPos = s0;
|
|
@@ -4643,37 +4767,48 @@ function peg$parse(input, options) {
|
|
|
4643
4767
|
}
|
|
4644
4768
|
if (s0 === peg$FAILED) {
|
|
4645
4769
|
s0 = peg$currPos;
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
if (s2 !== peg$FAILED) {
|
|
4650
|
-
peg$savedPos = s0;
|
|
4651
|
-
s0 = peg$f56(s1);
|
|
4652
|
-
}
|
|
4653
|
-
else {
|
|
4654
|
-
peg$currPos = s0;
|
|
4655
|
-
s0 = peg$FAILED;
|
|
4656
|
-
}
|
|
4770
|
+
if (input.substr(peg$currPos, 6) === peg$c27) {
|
|
4771
|
+
s1 = peg$c27;
|
|
4772
|
+
peg$currPos += 6;
|
|
4657
4773
|
}
|
|
4658
4774
|
else {
|
|
4659
|
-
|
|
4660
|
-
|
|
4775
|
+
s1 = peg$FAILED;
|
|
4776
|
+
if (peg$silentFails === 0) {
|
|
4777
|
+
peg$fail(peg$e32);
|
|
4778
|
+
}
|
|
4661
4779
|
}
|
|
4662
|
-
if (
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4780
|
+
if (s1 !== peg$FAILED) {
|
|
4781
|
+
s2 = peg$currPos;
|
|
4782
|
+
s3 = [];
|
|
4783
|
+
s4 = peg$currPos;
|
|
4784
|
+
s5 = peg$currPos;
|
|
4785
|
+
peg$silentFails++;
|
|
4786
|
+
s6 = peg$parseBlockTag();
|
|
4787
|
+
peg$silentFails--;
|
|
4788
|
+
if (s6 === peg$FAILED) {
|
|
4789
|
+
s5 = undefined;
|
|
4667
4790
|
}
|
|
4668
4791
|
else {
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4792
|
+
peg$currPos = s5;
|
|
4793
|
+
s5 = peg$FAILED;
|
|
4794
|
+
}
|
|
4795
|
+
if (s5 !== peg$FAILED) {
|
|
4796
|
+
s6 = peg$parsechar();
|
|
4797
|
+
if (s6 !== peg$FAILED) {
|
|
4798
|
+
s5 = [s5, s6];
|
|
4799
|
+
s4 = s5;
|
|
4800
|
+
}
|
|
4801
|
+
else {
|
|
4802
|
+
peg$currPos = s4;
|
|
4803
|
+
s4 = peg$FAILED;
|
|
4672
4804
|
}
|
|
4673
4805
|
}
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4806
|
+
else {
|
|
4807
|
+
peg$currPos = s4;
|
|
4808
|
+
s4 = peg$FAILED;
|
|
4809
|
+
}
|
|
4810
|
+
while (s4 !== peg$FAILED) {
|
|
4811
|
+
s3.push(s4);
|
|
4677
4812
|
s4 = peg$currPos;
|
|
4678
4813
|
s5 = peg$currPos;
|
|
4679
4814
|
peg$silentFails++;
|
|
@@ -4701,41 +4836,131 @@ function peg$parse(input, options) {
|
|
|
4701
4836
|
peg$currPos = s4;
|
|
4702
4837
|
s4 = peg$FAILED;
|
|
4703
4838
|
}
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4839
|
+
}
|
|
4840
|
+
s2 = input.substring(s2, peg$currPos);
|
|
4841
|
+
s3 = peg$parseBlockTag();
|
|
4842
|
+
if (s3 !== peg$FAILED) {
|
|
4843
|
+
peg$savedPos = s0;
|
|
4844
|
+
s0 = peg$f58(s2);
|
|
4845
|
+
}
|
|
4846
|
+
else {
|
|
4847
|
+
peg$currPos = s0;
|
|
4848
|
+
s0 = peg$FAILED;
|
|
4849
|
+
}
|
|
4850
|
+
}
|
|
4851
|
+
else {
|
|
4852
|
+
peg$currPos = s0;
|
|
4853
|
+
s0 = peg$FAILED;
|
|
4854
|
+
}
|
|
4855
|
+
if (s0 === peg$FAILED) {
|
|
4856
|
+
s0 = peg$currPos;
|
|
4857
|
+
if (input.substr(peg$currPos, 9) === peg$c28) {
|
|
4858
|
+
s1 = peg$c28;
|
|
4859
|
+
peg$currPos += 9;
|
|
4860
|
+
}
|
|
4861
|
+
else {
|
|
4862
|
+
s1 = peg$FAILED;
|
|
4863
|
+
if (peg$silentFails === 0) {
|
|
4864
|
+
peg$fail(peg$e33);
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
4867
|
+
if (s1 !== peg$FAILED) {
|
|
4868
|
+
s2 = peg$currPos;
|
|
4869
|
+
s3 = peg$currPos;
|
|
4870
|
+
if (input.charCodeAt(peg$currPos) === 80) {
|
|
4871
|
+
s4 = peg$c29;
|
|
4872
|
+
peg$currPos++;
|
|
4873
|
+
}
|
|
4874
|
+
else {
|
|
4875
|
+
s4 = peg$FAILED;
|
|
4876
|
+
if (peg$silentFails === 0) {
|
|
4877
|
+
peg$fail(peg$e34);
|
|
4878
|
+
}
|
|
4879
|
+
}
|
|
4880
|
+
if (s4 !== peg$FAILED) {
|
|
4707
4881
|
s5 = peg$currPos;
|
|
4882
|
+
s6 = [];
|
|
4883
|
+
s7 = peg$currPos;
|
|
4884
|
+
s8 = peg$currPos;
|
|
4708
4885
|
peg$silentFails++;
|
|
4709
|
-
|
|
4886
|
+
s9 = peg$parseBlockTag();
|
|
4710
4887
|
peg$silentFails--;
|
|
4711
|
-
if (
|
|
4712
|
-
|
|
4888
|
+
if (s9 === peg$FAILED) {
|
|
4889
|
+
s8 = undefined;
|
|
4713
4890
|
}
|
|
4714
4891
|
else {
|
|
4715
|
-
peg$currPos =
|
|
4716
|
-
|
|
4892
|
+
peg$currPos = s8;
|
|
4893
|
+
s8 = peg$FAILED;
|
|
4717
4894
|
}
|
|
4718
|
-
if (
|
|
4719
|
-
|
|
4720
|
-
if (
|
|
4721
|
-
|
|
4722
|
-
|
|
4895
|
+
if (s8 !== peg$FAILED) {
|
|
4896
|
+
s9 = peg$parsechar();
|
|
4897
|
+
if (s9 !== peg$FAILED) {
|
|
4898
|
+
s8 = [s8, s9];
|
|
4899
|
+
s7 = s8;
|
|
4723
4900
|
}
|
|
4724
4901
|
else {
|
|
4725
|
-
peg$currPos =
|
|
4726
|
-
|
|
4902
|
+
peg$currPos = s7;
|
|
4903
|
+
s7 = peg$FAILED;
|
|
4727
4904
|
}
|
|
4728
4905
|
}
|
|
4729
4906
|
else {
|
|
4730
|
-
peg$currPos =
|
|
4731
|
-
|
|
4907
|
+
peg$currPos = s7;
|
|
4908
|
+
s7 = peg$FAILED;
|
|
4909
|
+
}
|
|
4910
|
+
while (s7 !== peg$FAILED) {
|
|
4911
|
+
s6.push(s7);
|
|
4912
|
+
s7 = peg$currPos;
|
|
4913
|
+
s8 = peg$currPos;
|
|
4914
|
+
peg$silentFails++;
|
|
4915
|
+
s9 = peg$parseBlockTag();
|
|
4916
|
+
peg$silentFails--;
|
|
4917
|
+
if (s9 === peg$FAILED) {
|
|
4918
|
+
s8 = undefined;
|
|
4919
|
+
}
|
|
4920
|
+
else {
|
|
4921
|
+
peg$currPos = s8;
|
|
4922
|
+
s8 = peg$FAILED;
|
|
4923
|
+
}
|
|
4924
|
+
if (s8 !== peg$FAILED) {
|
|
4925
|
+
s9 = peg$parsechar();
|
|
4926
|
+
if (s9 !== peg$FAILED) {
|
|
4927
|
+
s8 = [s8, s9];
|
|
4928
|
+
s7 = s8;
|
|
4929
|
+
}
|
|
4930
|
+
else {
|
|
4931
|
+
peg$currPos = s7;
|
|
4932
|
+
s7 = peg$FAILED;
|
|
4933
|
+
}
|
|
4934
|
+
}
|
|
4935
|
+
else {
|
|
4936
|
+
peg$currPos = s7;
|
|
4937
|
+
s7 = peg$FAILED;
|
|
4938
|
+
}
|
|
4732
4939
|
}
|
|
4940
|
+
s5 = input.substring(s5, peg$currPos);
|
|
4941
|
+
s4 = [s4, s5];
|
|
4942
|
+
s3 = s4;
|
|
4943
|
+
}
|
|
4944
|
+
else {
|
|
4945
|
+
peg$currPos = s3;
|
|
4946
|
+
s3 = peg$FAILED;
|
|
4733
4947
|
}
|
|
4734
|
-
s2 = input.substring(s2, peg$currPos);
|
|
4735
|
-
s3 = peg$parseBlockTag();
|
|
4736
4948
|
if (s3 !== peg$FAILED) {
|
|
4737
|
-
|
|
4738
|
-
|
|
4949
|
+
s2 = input.substring(s2, peg$currPos);
|
|
4950
|
+
}
|
|
4951
|
+
else {
|
|
4952
|
+
s2 = s3;
|
|
4953
|
+
}
|
|
4954
|
+
if (s2 !== peg$FAILED) {
|
|
4955
|
+
s3 = peg$parseBlockTag();
|
|
4956
|
+
if (s3 !== peg$FAILED) {
|
|
4957
|
+
peg$savedPos = s0;
|
|
4958
|
+
s0 = peg$f59(s2);
|
|
4959
|
+
}
|
|
4960
|
+
else {
|
|
4961
|
+
peg$currPos = s0;
|
|
4962
|
+
s0 = peg$FAILED;
|
|
4963
|
+
}
|
|
4739
4964
|
}
|
|
4740
4965
|
else {
|
|
4741
4966
|
peg$currPos = s0;
|
|
@@ -4746,6 +4971,148 @@ function peg$parse(input, options) {
|
|
|
4746
4971
|
peg$currPos = s0;
|
|
4747
4972
|
s0 = peg$FAILED;
|
|
4748
4973
|
}
|
|
4974
|
+
if (s0 === peg$FAILED) {
|
|
4975
|
+
s0 = peg$currPos;
|
|
4976
|
+
if (input.substr(peg$currPos, 6) === peg$c30) {
|
|
4977
|
+
s1 = peg$c30;
|
|
4978
|
+
peg$currPos += 6;
|
|
4979
|
+
}
|
|
4980
|
+
else {
|
|
4981
|
+
s1 = peg$FAILED;
|
|
4982
|
+
if (peg$silentFails === 0) {
|
|
4983
|
+
peg$fail(peg$e35);
|
|
4984
|
+
}
|
|
4985
|
+
}
|
|
4986
|
+
if (s1 !== peg$FAILED) {
|
|
4987
|
+
s2 = peg$parseColor();
|
|
4988
|
+
if (s2 !== peg$FAILED) {
|
|
4989
|
+
s3 = peg$parseBlockTag();
|
|
4990
|
+
if (s3 !== peg$FAILED) {
|
|
4991
|
+
peg$savedPos = s0;
|
|
4992
|
+
s0 = peg$f60(s2);
|
|
4993
|
+
}
|
|
4994
|
+
else {
|
|
4995
|
+
peg$currPos = s0;
|
|
4996
|
+
s0 = peg$FAILED;
|
|
4997
|
+
}
|
|
4998
|
+
}
|
|
4999
|
+
else {
|
|
5000
|
+
peg$currPos = s0;
|
|
5001
|
+
s0 = peg$FAILED;
|
|
5002
|
+
}
|
|
5003
|
+
}
|
|
5004
|
+
else {
|
|
5005
|
+
peg$currPos = s0;
|
|
5006
|
+
s0 = peg$FAILED;
|
|
5007
|
+
}
|
|
5008
|
+
if (s0 === peg$FAILED) {
|
|
5009
|
+
s0 = peg$currPos;
|
|
5010
|
+
s1 = peg$parseAlternativeStyleTags();
|
|
5011
|
+
if (s1 !== peg$FAILED) {
|
|
5012
|
+
s2 = peg$parseBlockTag();
|
|
5013
|
+
if (s2 !== peg$FAILED) {
|
|
5014
|
+
peg$savedPos = s0;
|
|
5015
|
+
s0 = peg$f61(s1);
|
|
5016
|
+
}
|
|
5017
|
+
else {
|
|
5018
|
+
peg$currPos = s0;
|
|
5019
|
+
s0 = peg$FAILED;
|
|
5020
|
+
}
|
|
5021
|
+
}
|
|
5022
|
+
else {
|
|
5023
|
+
peg$currPos = s0;
|
|
5024
|
+
s0 = peg$FAILED;
|
|
5025
|
+
}
|
|
5026
|
+
if (s0 === peg$FAILED) {
|
|
5027
|
+
s0 = peg$currPos;
|
|
5028
|
+
if (input.charCodeAt(peg$currPos) === 35) {
|
|
5029
|
+
s1 = peg$c17;
|
|
5030
|
+
peg$currPos++;
|
|
5031
|
+
}
|
|
5032
|
+
else {
|
|
5033
|
+
s1 = peg$FAILED;
|
|
5034
|
+
if (peg$silentFails === 0) {
|
|
5035
|
+
peg$fail(peg$e20);
|
|
5036
|
+
}
|
|
5037
|
+
}
|
|
5038
|
+
if (s1 !== peg$FAILED) {
|
|
5039
|
+
s2 = peg$currPos;
|
|
5040
|
+
s3 = [];
|
|
5041
|
+
s4 = peg$currPos;
|
|
5042
|
+
s5 = peg$currPos;
|
|
5043
|
+
peg$silentFails++;
|
|
5044
|
+
s6 = peg$parseBlockTag();
|
|
5045
|
+
peg$silentFails--;
|
|
5046
|
+
if (s6 === peg$FAILED) {
|
|
5047
|
+
s5 = undefined;
|
|
5048
|
+
}
|
|
5049
|
+
else {
|
|
5050
|
+
peg$currPos = s5;
|
|
5051
|
+
s5 = peg$FAILED;
|
|
5052
|
+
}
|
|
5053
|
+
if (s5 !== peg$FAILED) {
|
|
5054
|
+
s6 = peg$parsechar();
|
|
5055
|
+
if (s6 !== peg$FAILED) {
|
|
5056
|
+
s5 = [s5, s6];
|
|
5057
|
+
s4 = s5;
|
|
5058
|
+
}
|
|
5059
|
+
else {
|
|
5060
|
+
peg$currPos = s4;
|
|
5061
|
+
s4 = peg$FAILED;
|
|
5062
|
+
}
|
|
5063
|
+
}
|
|
5064
|
+
else {
|
|
5065
|
+
peg$currPos = s4;
|
|
5066
|
+
s4 = peg$FAILED;
|
|
5067
|
+
}
|
|
5068
|
+
while (s4 !== peg$FAILED) {
|
|
5069
|
+
s3.push(s4);
|
|
5070
|
+
s4 = peg$currPos;
|
|
5071
|
+
s5 = peg$currPos;
|
|
5072
|
+
peg$silentFails++;
|
|
5073
|
+
s6 = peg$parseBlockTag();
|
|
5074
|
+
peg$silentFails--;
|
|
5075
|
+
if (s6 === peg$FAILED) {
|
|
5076
|
+
s5 = undefined;
|
|
5077
|
+
}
|
|
5078
|
+
else {
|
|
5079
|
+
peg$currPos = s5;
|
|
5080
|
+
s5 = peg$FAILED;
|
|
5081
|
+
}
|
|
5082
|
+
if (s5 !== peg$FAILED) {
|
|
5083
|
+
s6 = peg$parsechar();
|
|
5084
|
+
if (s6 !== peg$FAILED) {
|
|
5085
|
+
s5 = [s5, s6];
|
|
5086
|
+
s4 = s5;
|
|
5087
|
+
}
|
|
5088
|
+
else {
|
|
5089
|
+
peg$currPos = s4;
|
|
5090
|
+
s4 = peg$FAILED;
|
|
5091
|
+
}
|
|
5092
|
+
}
|
|
5093
|
+
else {
|
|
5094
|
+
peg$currPos = s4;
|
|
5095
|
+
s4 = peg$FAILED;
|
|
5096
|
+
}
|
|
5097
|
+
}
|
|
5098
|
+
s2 = input.substring(s2, peg$currPos);
|
|
5099
|
+
s3 = peg$parseBlockTag();
|
|
5100
|
+
if (s3 !== peg$FAILED) {
|
|
5101
|
+
peg$savedPos = s0;
|
|
5102
|
+
s0 = peg$f62(s2);
|
|
5103
|
+
}
|
|
5104
|
+
else {
|
|
5105
|
+
peg$currPos = s0;
|
|
5106
|
+
s0 = peg$FAILED;
|
|
5107
|
+
}
|
|
5108
|
+
}
|
|
5109
|
+
else {
|
|
5110
|
+
peg$currPos = s0;
|
|
5111
|
+
s0 = peg$FAILED;
|
|
5112
|
+
}
|
|
5113
|
+
}
|
|
5114
|
+
}
|
|
5115
|
+
}
|
|
4749
5116
|
}
|
|
4750
5117
|
}
|
|
4751
5118
|
}
|
|
@@ -4756,102 +5123,210 @@ function peg$parse(input, options) {
|
|
|
4756
5123
|
}
|
|
4757
5124
|
function peg$parseAlternativeStyleTags() {
|
|
4758
5125
|
var s0;
|
|
4759
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4760
|
-
s0 = peg$
|
|
5126
|
+
if (input.substr(peg$currPos, 4) === peg$c31) {
|
|
5127
|
+
s0 = peg$c31;
|
|
4761
5128
|
peg$currPos += 4;
|
|
4762
5129
|
}
|
|
4763
5130
|
else {
|
|
4764
5131
|
s0 = peg$FAILED;
|
|
4765
5132
|
if (peg$silentFails === 0) {
|
|
4766
|
-
peg$fail(peg$
|
|
5133
|
+
peg$fail(peg$e36);
|
|
4767
5134
|
}
|
|
4768
5135
|
}
|
|
4769
5136
|
if (s0 === peg$FAILED) {
|
|
4770
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
4771
|
-
s0 = peg$
|
|
5137
|
+
if (input.substr(peg$currPos, 6) === peg$c32) {
|
|
5138
|
+
s0 = peg$c32;
|
|
4772
5139
|
peg$currPos += 6;
|
|
4773
5140
|
}
|
|
4774
5141
|
else {
|
|
4775
5142
|
s0 = peg$FAILED;
|
|
4776
5143
|
if (peg$silentFails === 0) {
|
|
4777
|
-
peg$fail(peg$
|
|
5144
|
+
peg$fail(peg$e37);
|
|
4778
5145
|
}
|
|
4779
5146
|
}
|
|
4780
5147
|
if (s0 === peg$FAILED) {
|
|
4781
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
4782
|
-
s0 = peg$
|
|
5148
|
+
if (input.substr(peg$currPos, 5) === peg$c33) {
|
|
5149
|
+
s0 = peg$c33;
|
|
4783
5150
|
peg$currPos += 5;
|
|
4784
5151
|
}
|
|
4785
5152
|
else {
|
|
4786
5153
|
s0 = peg$FAILED;
|
|
4787
5154
|
if (peg$silentFails === 0) {
|
|
4788
|
-
peg$fail(peg$
|
|
5155
|
+
peg$fail(peg$e38);
|
|
4789
5156
|
}
|
|
4790
5157
|
}
|
|
4791
5158
|
if (s0 === peg$FAILED) {
|
|
4792
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
4793
|
-
s0 = peg$
|
|
5159
|
+
if (input.substr(peg$currPos, 9) === peg$c34) {
|
|
5160
|
+
s0 = peg$c34;
|
|
4794
5161
|
peg$currPos += 9;
|
|
4795
5162
|
}
|
|
4796
5163
|
else {
|
|
4797
5164
|
s0 = peg$FAILED;
|
|
4798
5165
|
if (peg$silentFails === 0) {
|
|
4799
|
-
peg$fail(peg$
|
|
5166
|
+
peg$fail(peg$e39);
|
|
4800
5167
|
}
|
|
4801
5168
|
}
|
|
4802
5169
|
if (s0 === peg$FAILED) {
|
|
4803
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
4804
|
-
s0 = peg$
|
|
5170
|
+
if (input.substr(peg$currPos, 6) === peg$c35) {
|
|
5171
|
+
s0 = peg$c35;
|
|
4805
5172
|
peg$currPos += 6;
|
|
4806
5173
|
}
|
|
4807
5174
|
else {
|
|
4808
5175
|
s0 = peg$FAILED;
|
|
4809
5176
|
if (peg$silentFails === 0) {
|
|
4810
|
-
peg$fail(peg$
|
|
5177
|
+
peg$fail(peg$e40);
|
|
4811
5178
|
}
|
|
4812
5179
|
}
|
|
4813
5180
|
if (s0 === peg$FAILED) {
|
|
4814
|
-
if (input.substr(peg$currPos,
|
|
4815
|
-
s0 = peg$
|
|
4816
|
-
peg$currPos +=
|
|
5181
|
+
if (input.substr(peg$currPos, 9) === peg$c36) {
|
|
5182
|
+
s0 = peg$c36;
|
|
5183
|
+
peg$currPos += 9;
|
|
4817
5184
|
}
|
|
4818
5185
|
else {
|
|
4819
5186
|
s0 = peg$FAILED;
|
|
4820
5187
|
if (peg$silentFails === 0) {
|
|
4821
|
-
peg$fail(peg$
|
|
5188
|
+
peg$fail(peg$e41);
|
|
4822
5189
|
}
|
|
4823
5190
|
}
|
|
4824
5191
|
if (s0 === peg$FAILED) {
|
|
4825
|
-
if (input.substr(peg$currPos,
|
|
4826
|
-
s0 = peg$
|
|
4827
|
-
peg$currPos +=
|
|
5192
|
+
if (input.substr(peg$currPos, 11) === peg$c37) {
|
|
5193
|
+
s0 = peg$c37;
|
|
5194
|
+
peg$currPos += 11;
|
|
4828
5195
|
}
|
|
4829
5196
|
else {
|
|
4830
5197
|
s0 = peg$FAILED;
|
|
4831
5198
|
if (peg$silentFails === 0) {
|
|
4832
|
-
peg$fail(peg$
|
|
5199
|
+
peg$fail(peg$e42);
|
|
4833
5200
|
}
|
|
4834
5201
|
}
|
|
4835
5202
|
if (s0 === peg$FAILED) {
|
|
4836
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
4837
|
-
s0 = peg$
|
|
5203
|
+
if (input.substr(peg$currPos, 3) === peg$c38) {
|
|
5204
|
+
s0 = peg$c38;
|
|
4838
5205
|
peg$currPos += 3;
|
|
4839
5206
|
}
|
|
4840
5207
|
else {
|
|
4841
5208
|
s0 = peg$FAILED;
|
|
4842
5209
|
if (peg$silentFails === 0) {
|
|
4843
|
-
peg$fail(peg$
|
|
5210
|
+
peg$fail(peg$e43);
|
|
4844
5211
|
}
|
|
4845
5212
|
}
|
|
4846
5213
|
if (s0 === peg$FAILED) {
|
|
4847
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
4848
|
-
s0 = peg$
|
|
5214
|
+
if (input.substr(peg$currPos, 3) === peg$c39) {
|
|
5215
|
+
s0 = peg$c39;
|
|
4849
5216
|
peg$currPos += 3;
|
|
4850
5217
|
}
|
|
4851
5218
|
else {
|
|
4852
5219
|
s0 = peg$FAILED;
|
|
4853
5220
|
if (peg$silentFails === 0) {
|
|
4854
|
-
peg$fail(peg$
|
|
5221
|
+
peg$fail(peg$e44);
|
|
5222
|
+
}
|
|
5223
|
+
}
|
|
5224
|
+
if (s0 === peg$FAILED) {
|
|
5225
|
+
if (input.substr(peg$currPos, 9) === peg$c40) {
|
|
5226
|
+
s0 = peg$c40;
|
|
5227
|
+
peg$currPos += 9;
|
|
5228
|
+
}
|
|
5229
|
+
else {
|
|
5230
|
+
s0 = peg$FAILED;
|
|
5231
|
+
if (peg$silentFails === 0) {
|
|
5232
|
+
peg$fail(peg$e45);
|
|
5233
|
+
}
|
|
5234
|
+
}
|
|
5235
|
+
if (s0 === peg$FAILED) {
|
|
5236
|
+
if (input.substr(peg$currPos, 15) === peg$c41) {
|
|
5237
|
+
s0 = peg$c41;
|
|
5238
|
+
peg$currPos += 15;
|
|
5239
|
+
}
|
|
5240
|
+
else {
|
|
5241
|
+
s0 = peg$FAILED;
|
|
5242
|
+
if (peg$silentFails === 0) {
|
|
5243
|
+
peg$fail(peg$e46);
|
|
5244
|
+
}
|
|
5245
|
+
}
|
|
5246
|
+
if (s0 === peg$FAILED) {
|
|
5247
|
+
if (input.substr(peg$currPos, 6) === peg$c42) {
|
|
5248
|
+
s0 = peg$c42;
|
|
5249
|
+
peg$currPos += 6;
|
|
5250
|
+
}
|
|
5251
|
+
else {
|
|
5252
|
+
s0 = peg$FAILED;
|
|
5253
|
+
if (peg$silentFails === 0) {
|
|
5254
|
+
peg$fail(peg$e47);
|
|
5255
|
+
}
|
|
5256
|
+
}
|
|
5257
|
+
if (s0 === peg$FAILED) {
|
|
5258
|
+
if (input.substr(peg$currPos, 10) === peg$c43) {
|
|
5259
|
+
s0 = peg$c43;
|
|
5260
|
+
peg$currPos += 10;
|
|
5261
|
+
}
|
|
5262
|
+
else {
|
|
5263
|
+
s0 = peg$FAILED;
|
|
5264
|
+
if (peg$silentFails === 0) {
|
|
5265
|
+
peg$fail(peg$e48);
|
|
5266
|
+
}
|
|
5267
|
+
}
|
|
5268
|
+
if (s0 === peg$FAILED) {
|
|
5269
|
+
if (input.substr(peg$currPos, 13) === peg$c44) {
|
|
5270
|
+
s0 = peg$c44;
|
|
5271
|
+
peg$currPos += 13;
|
|
5272
|
+
}
|
|
5273
|
+
else {
|
|
5274
|
+
s0 = peg$FAILED;
|
|
5275
|
+
if (peg$silentFails === 0) {
|
|
5276
|
+
peg$fail(peg$e49);
|
|
5277
|
+
}
|
|
5278
|
+
}
|
|
5279
|
+
if (s0 === peg$FAILED) {
|
|
5280
|
+
if (input.substr(peg$currPos, 19) === peg$c45) {
|
|
5281
|
+
s0 = peg$c45;
|
|
5282
|
+
peg$currPos += 19;
|
|
5283
|
+
}
|
|
5284
|
+
else {
|
|
5285
|
+
s0 = peg$FAILED;
|
|
5286
|
+
if (peg$silentFails === 0) {
|
|
5287
|
+
peg$fail(peg$e50);
|
|
5288
|
+
}
|
|
5289
|
+
}
|
|
5290
|
+
if (s0 === peg$FAILED) {
|
|
5291
|
+
if (input.substr(peg$currPos, 10) === peg$c46) {
|
|
5292
|
+
s0 = peg$c46;
|
|
5293
|
+
peg$currPos += 10;
|
|
5294
|
+
}
|
|
5295
|
+
else {
|
|
5296
|
+
s0 = peg$FAILED;
|
|
5297
|
+
if (peg$silentFails === 0) {
|
|
5298
|
+
peg$fail(peg$e51);
|
|
5299
|
+
}
|
|
5300
|
+
}
|
|
5301
|
+
if (s0 === peg$FAILED) {
|
|
5302
|
+
if (input.substr(peg$currPos, 10) === peg$c47) {
|
|
5303
|
+
s0 = peg$c47;
|
|
5304
|
+
peg$currPos += 10;
|
|
5305
|
+
}
|
|
5306
|
+
else {
|
|
5307
|
+
s0 = peg$FAILED;
|
|
5308
|
+
if (peg$silentFails === 0) {
|
|
5309
|
+
peg$fail(peg$e52);
|
|
5310
|
+
}
|
|
5311
|
+
}
|
|
5312
|
+
if (s0 === peg$FAILED) {
|
|
5313
|
+
if (input.substr(peg$currPos, 13) === peg$c48) {
|
|
5314
|
+
s0 = peg$c48;
|
|
5315
|
+
peg$currPos += 13;
|
|
5316
|
+
}
|
|
5317
|
+
else {
|
|
5318
|
+
s0 = peg$FAILED;
|
|
5319
|
+
if (peg$silentFails === 0) {
|
|
5320
|
+
peg$fail(peg$e53);
|
|
5321
|
+
}
|
|
5322
|
+
}
|
|
5323
|
+
}
|
|
5324
|
+
}
|
|
5325
|
+
}
|
|
5326
|
+
}
|
|
5327
|
+
}
|
|
5328
|
+
}
|
|
5329
|
+
}
|
|
4855
5330
|
}
|
|
4856
5331
|
}
|
|
4857
5332
|
}
|
|
@@ -4866,245 +5341,245 @@ function peg$parse(input, options) {
|
|
|
4866
5341
|
}
|
|
4867
5342
|
function peg$parseColor() {
|
|
4868
5343
|
var s0;
|
|
4869
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4870
|
-
s0 = peg$
|
|
5344
|
+
if (input.substr(peg$currPos, 4) === peg$c49) {
|
|
5345
|
+
s0 = peg$c49;
|
|
4871
5346
|
peg$currPos += 4;
|
|
4872
5347
|
}
|
|
4873
5348
|
else {
|
|
4874
5349
|
s0 = peg$FAILED;
|
|
4875
5350
|
if (peg$silentFails === 0) {
|
|
4876
|
-
peg$fail(peg$
|
|
5351
|
+
peg$fail(peg$e54);
|
|
4877
5352
|
}
|
|
4878
5353
|
}
|
|
4879
5354
|
if (s0 === peg$FAILED) {
|
|
4880
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
4881
|
-
s0 = peg$
|
|
5355
|
+
if (input.substr(peg$currPos, 5) === peg$c50) {
|
|
5356
|
+
s0 = peg$c50;
|
|
4882
5357
|
peg$currPos += 5;
|
|
4883
5358
|
}
|
|
4884
5359
|
else {
|
|
4885
5360
|
s0 = peg$FAILED;
|
|
4886
5361
|
if (peg$silentFails === 0) {
|
|
4887
|
-
peg$fail(peg$
|
|
5362
|
+
peg$fail(peg$e55);
|
|
4888
5363
|
}
|
|
4889
5364
|
}
|
|
4890
5365
|
if (s0 === peg$FAILED) {
|
|
4891
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4892
|
-
s0 = peg$
|
|
5366
|
+
if (input.substr(peg$currPos, 4) === peg$c51) {
|
|
5367
|
+
s0 = peg$c51;
|
|
4893
5368
|
peg$currPos += 4;
|
|
4894
5369
|
}
|
|
4895
5370
|
else {
|
|
4896
5371
|
s0 = peg$FAILED;
|
|
4897
5372
|
if (peg$silentFails === 0) {
|
|
4898
|
-
peg$fail(peg$
|
|
5373
|
+
peg$fail(peg$e56);
|
|
4899
5374
|
}
|
|
4900
5375
|
}
|
|
4901
5376
|
if (s0 === peg$FAILED) {
|
|
4902
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4903
|
-
s0 = peg$
|
|
5377
|
+
if (input.substr(peg$currPos, 4) === peg$c52) {
|
|
5378
|
+
s0 = peg$c52;
|
|
4904
5379
|
peg$currPos += 4;
|
|
4905
5380
|
}
|
|
4906
5381
|
else {
|
|
4907
5382
|
s0 = peg$FAILED;
|
|
4908
5383
|
if (peg$silentFails === 0) {
|
|
4909
|
-
peg$fail(peg$
|
|
5384
|
+
peg$fail(peg$e57);
|
|
4910
5385
|
}
|
|
4911
5386
|
}
|
|
4912
5387
|
if (s0 === peg$FAILED) {
|
|
4913
|
-
if (input.substr(peg$currPos, 7) === peg$
|
|
4914
|
-
s0 = peg$
|
|
5388
|
+
if (input.substr(peg$currPos, 7) === peg$c53) {
|
|
5389
|
+
s0 = peg$c53;
|
|
4915
5390
|
peg$currPos += 7;
|
|
4916
5391
|
}
|
|
4917
5392
|
else {
|
|
4918
5393
|
s0 = peg$FAILED;
|
|
4919
5394
|
if (peg$silentFails === 0) {
|
|
4920
|
-
peg$fail(peg$
|
|
5395
|
+
peg$fail(peg$e58);
|
|
4921
5396
|
}
|
|
4922
5397
|
}
|
|
4923
5398
|
if (s0 === peg$FAILED) {
|
|
4924
|
-
if (input.substr(peg$currPos, 9) === peg$
|
|
4925
|
-
s0 = peg$
|
|
5399
|
+
if (input.substr(peg$currPos, 9) === peg$c54) {
|
|
5400
|
+
s0 = peg$c54;
|
|
4926
5401
|
peg$currPos += 9;
|
|
4927
5402
|
}
|
|
4928
5403
|
else {
|
|
4929
5404
|
s0 = peg$FAILED;
|
|
4930
5405
|
if (peg$silentFails === 0) {
|
|
4931
|
-
peg$fail(peg$
|
|
5406
|
+
peg$fail(peg$e59);
|
|
4932
5407
|
}
|
|
4933
5408
|
}
|
|
4934
5409
|
if (s0 === peg$FAILED) {
|
|
4935
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4936
|
-
s0 = peg$
|
|
5410
|
+
if (input.substr(peg$currPos, 4) === peg$c55) {
|
|
5411
|
+
s0 = peg$c55;
|
|
4937
5412
|
peg$currPos += 4;
|
|
4938
5413
|
}
|
|
4939
5414
|
else {
|
|
4940
5415
|
s0 = peg$FAILED;
|
|
4941
5416
|
if (peg$silentFails === 0) {
|
|
4942
|
-
peg$fail(peg$
|
|
5417
|
+
peg$fail(peg$e60);
|
|
4943
5418
|
}
|
|
4944
5419
|
}
|
|
4945
5420
|
if (s0 === peg$FAILED) {
|
|
4946
|
-
if (input.substr(peg$currPos, 8) === peg$
|
|
4947
|
-
s0 = peg$
|
|
5421
|
+
if (input.substr(peg$currPos, 8) === peg$c56) {
|
|
5422
|
+
s0 = peg$c56;
|
|
4948
5423
|
peg$currPos += 8;
|
|
4949
5424
|
}
|
|
4950
5425
|
else {
|
|
4951
5426
|
s0 = peg$FAILED;
|
|
4952
5427
|
if (peg$silentFails === 0) {
|
|
4953
|
-
peg$fail(peg$
|
|
5428
|
+
peg$fail(peg$e61);
|
|
4954
5429
|
}
|
|
4955
5430
|
}
|
|
4956
5431
|
if (s0 === peg$FAILED) {
|
|
4957
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
4958
|
-
s0 = peg$
|
|
5432
|
+
if (input.substr(peg$currPos, 5) === peg$c57) {
|
|
5433
|
+
s0 = peg$c57;
|
|
4959
5434
|
peg$currPos += 5;
|
|
4960
5435
|
}
|
|
4961
5436
|
else {
|
|
4962
5437
|
s0 = peg$FAILED;
|
|
4963
5438
|
if (peg$silentFails === 0) {
|
|
4964
|
-
peg$fail(peg$
|
|
5439
|
+
peg$fail(peg$e62);
|
|
4965
5440
|
}
|
|
4966
5441
|
}
|
|
4967
5442
|
if (s0 === peg$FAILED) {
|
|
4968
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
4969
|
-
s0 = peg$
|
|
5443
|
+
if (input.substr(peg$currPos, 4) === peg$c58) {
|
|
5444
|
+
s0 = peg$c58;
|
|
4970
5445
|
peg$currPos += 4;
|
|
4971
5446
|
}
|
|
4972
5447
|
else {
|
|
4973
5448
|
s0 = peg$FAILED;
|
|
4974
5449
|
if (peg$silentFails === 0) {
|
|
4975
|
-
peg$fail(peg$
|
|
5450
|
+
peg$fail(peg$e63);
|
|
4976
5451
|
}
|
|
4977
5452
|
}
|
|
4978
5453
|
if (s0 === peg$FAILED) {
|
|
4979
|
-
if (input.substr(peg$currPos, 7) === peg$
|
|
4980
|
-
s0 = peg$
|
|
5454
|
+
if (input.substr(peg$currPos, 7) === peg$c59) {
|
|
5455
|
+
s0 = peg$c59;
|
|
4981
5456
|
peg$currPos += 7;
|
|
4982
5457
|
}
|
|
4983
5458
|
else {
|
|
4984
5459
|
s0 = peg$FAILED;
|
|
4985
5460
|
if (peg$silentFails === 0) {
|
|
4986
|
-
peg$fail(peg$
|
|
5461
|
+
peg$fail(peg$e64);
|
|
4987
5462
|
}
|
|
4988
5463
|
}
|
|
4989
5464
|
if (s0 === peg$FAILED) {
|
|
4990
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
4991
|
-
s0 = peg$
|
|
5465
|
+
if (input.substr(peg$currPos, 6) === peg$c60) {
|
|
5466
|
+
s0 = peg$c60;
|
|
4992
5467
|
peg$currPos += 6;
|
|
4993
5468
|
}
|
|
4994
5469
|
else {
|
|
4995
5470
|
s0 = peg$FAILED;
|
|
4996
5471
|
if (peg$silentFails === 0) {
|
|
4997
|
-
peg$fail(peg$
|
|
5472
|
+
peg$fail(peg$e65);
|
|
4998
5473
|
}
|
|
4999
5474
|
}
|
|
5000
5475
|
if (s0 === peg$FAILED) {
|
|
5001
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
5002
|
-
s0 = peg$
|
|
5476
|
+
if (input.substr(peg$currPos, 4) === peg$c61) {
|
|
5477
|
+
s0 = peg$c61;
|
|
5003
5478
|
peg$currPos += 4;
|
|
5004
5479
|
}
|
|
5005
5480
|
else {
|
|
5006
5481
|
s0 = peg$FAILED;
|
|
5007
5482
|
if (peg$silentFails === 0) {
|
|
5008
|
-
peg$fail(peg$
|
|
5483
|
+
peg$fail(peg$e66);
|
|
5009
5484
|
}
|
|
5010
5485
|
}
|
|
5011
5486
|
if (s0 === peg$FAILED) {
|
|
5012
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
5013
|
-
s0 = peg$
|
|
5487
|
+
if (input.substr(peg$currPos, 5) === peg$c62) {
|
|
5488
|
+
s0 = peg$c62;
|
|
5014
5489
|
peg$currPos += 5;
|
|
5015
5490
|
}
|
|
5016
5491
|
else {
|
|
5017
5492
|
s0 = peg$FAILED;
|
|
5018
5493
|
if (peg$silentFails === 0) {
|
|
5019
|
-
peg$fail(peg$
|
|
5494
|
+
peg$fail(peg$e67);
|
|
5020
5495
|
}
|
|
5021
5496
|
}
|
|
5022
5497
|
if (s0 === peg$FAILED) {
|
|
5023
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
5024
|
-
s0 = peg$
|
|
5498
|
+
if (input.substr(peg$currPos, 6) === peg$c63) {
|
|
5499
|
+
s0 = peg$c63;
|
|
5025
5500
|
peg$currPos += 6;
|
|
5026
5501
|
}
|
|
5027
5502
|
else {
|
|
5028
5503
|
s0 = peg$FAILED;
|
|
5029
5504
|
if (peg$silentFails === 0) {
|
|
5030
|
-
peg$fail(peg$
|
|
5505
|
+
peg$fail(peg$e68);
|
|
5031
5506
|
}
|
|
5032
5507
|
}
|
|
5033
5508
|
if (s0 === peg$FAILED) {
|
|
5034
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
5035
|
-
s0 = peg$
|
|
5509
|
+
if (input.substr(peg$currPos, 6) === peg$c64) {
|
|
5510
|
+
s0 = peg$c64;
|
|
5036
5511
|
peg$currPos += 6;
|
|
5037
5512
|
}
|
|
5038
5513
|
else {
|
|
5039
5514
|
s0 = peg$FAILED;
|
|
5040
5515
|
if (peg$silentFails === 0) {
|
|
5041
|
-
peg$fail(peg$
|
|
5516
|
+
peg$fail(peg$e69);
|
|
5042
5517
|
}
|
|
5043
5518
|
}
|
|
5044
5519
|
if (s0 === peg$FAILED) {
|
|
5045
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
5046
|
-
s0 = peg$
|
|
5520
|
+
if (input.substr(peg$currPos, 3) === peg$c65) {
|
|
5521
|
+
s0 = peg$c65;
|
|
5047
5522
|
peg$currPos += 3;
|
|
5048
5523
|
}
|
|
5049
5524
|
else {
|
|
5050
5525
|
s0 = peg$FAILED;
|
|
5051
5526
|
if (peg$silentFails === 0) {
|
|
5052
|
-
peg$fail(peg$
|
|
5527
|
+
peg$fail(peg$e70);
|
|
5053
5528
|
}
|
|
5054
5529
|
}
|
|
5055
5530
|
if (s0 === peg$FAILED) {
|
|
5056
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
5057
|
-
s0 = peg$
|
|
5531
|
+
if (input.substr(peg$currPos, 6) === peg$c66) {
|
|
5532
|
+
s0 = peg$c66;
|
|
5058
5533
|
peg$currPos += 6;
|
|
5059
5534
|
}
|
|
5060
5535
|
else {
|
|
5061
5536
|
s0 = peg$FAILED;
|
|
5062
5537
|
if (peg$silentFails === 0) {
|
|
5063
|
-
peg$fail(peg$
|
|
5538
|
+
peg$fail(peg$e71);
|
|
5064
5539
|
}
|
|
5065
5540
|
}
|
|
5066
5541
|
if (s0 === peg$FAILED) {
|
|
5067
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
5068
|
-
s0 = peg$
|
|
5542
|
+
if (input.substr(peg$currPos, 4) === peg$c67) {
|
|
5543
|
+
s0 = peg$c67;
|
|
5069
5544
|
peg$currPos += 4;
|
|
5070
5545
|
}
|
|
5071
5546
|
else {
|
|
5072
5547
|
s0 = peg$FAILED;
|
|
5073
5548
|
if (peg$silentFails === 0) {
|
|
5074
|
-
peg$fail(peg$
|
|
5549
|
+
peg$fail(peg$e72);
|
|
5075
5550
|
}
|
|
5076
5551
|
}
|
|
5077
5552
|
if (s0 === peg$FAILED) {
|
|
5078
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
5079
|
-
s0 = peg$
|
|
5553
|
+
if (input.substr(peg$currPos, 6) === peg$c68) {
|
|
5554
|
+
s0 = peg$c68;
|
|
5080
5555
|
peg$currPos += 6;
|
|
5081
5556
|
}
|
|
5082
5557
|
else {
|
|
5083
5558
|
s0 = peg$FAILED;
|
|
5084
5559
|
if (peg$silentFails === 0) {
|
|
5085
|
-
peg$fail(peg$
|
|
5560
|
+
peg$fail(peg$e73);
|
|
5086
5561
|
}
|
|
5087
5562
|
}
|
|
5088
5563
|
if (s0 === peg$FAILED) {
|
|
5089
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
5090
|
-
s0 = peg$
|
|
5564
|
+
if (input.substr(peg$currPos, 5) === peg$c69) {
|
|
5565
|
+
s0 = peg$c69;
|
|
5091
5566
|
peg$currPos += 5;
|
|
5092
5567
|
}
|
|
5093
5568
|
else {
|
|
5094
5569
|
s0 = peg$FAILED;
|
|
5095
5570
|
if (peg$silentFails === 0) {
|
|
5096
|
-
peg$fail(peg$
|
|
5571
|
+
peg$fail(peg$e74);
|
|
5097
5572
|
}
|
|
5098
5573
|
}
|
|
5099
5574
|
if (s0 === peg$FAILED) {
|
|
5100
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
5101
|
-
s0 = peg$
|
|
5575
|
+
if (input.substr(peg$currPos, 6) === peg$c70) {
|
|
5576
|
+
s0 = peg$c70;
|
|
5102
5577
|
peg$currPos += 6;
|
|
5103
5578
|
}
|
|
5104
5579
|
else {
|
|
5105
5580
|
s0 = peg$FAILED;
|
|
5106
5581
|
if (peg$silentFails === 0) {
|
|
5107
|
-
peg$fail(peg$
|
|
5582
|
+
peg$fail(peg$e75);
|
|
5108
5583
|
}
|
|
5109
5584
|
}
|
|
5110
5585
|
}
|
|
@@ -5136,12 +5611,12 @@ function peg$parse(input, options) {
|
|
|
5136
5611
|
s0 = peg$currPos;
|
|
5137
5612
|
s1 = peg$parsebitmarkMinusMinusString();
|
|
5138
5613
|
peg$savedPos = s0;
|
|
5139
|
-
s1 = peg$
|
|
5614
|
+
s1 = peg$f63(s1);
|
|
5140
5615
|
s0 = s1;
|
|
5141
5616
|
peg$silentFails--;
|
|
5142
5617
|
s1 = peg$FAILED;
|
|
5143
5618
|
if (peg$silentFails === 0) {
|
|
5144
|
-
peg$fail(peg$
|
|
5619
|
+
peg$fail(peg$e76);
|
|
5145
5620
|
}
|
|
5146
5621
|
return s0;
|
|
5147
5622
|
}
|
|
@@ -5166,11 +5641,11 @@ function peg$parse(input, options) {
|
|
|
5166
5641
|
}
|
|
5167
5642
|
}
|
|
5168
5643
|
peg$savedPos = s0;
|
|
5169
|
-
s0 = peg$
|
|
5644
|
+
s0 = peg$f64(s1, s2);
|
|
5170
5645
|
peg$silentFails--;
|
|
5171
5646
|
s1 = peg$FAILED;
|
|
5172
5647
|
if (peg$silentFails === 0) {
|
|
5173
|
-
peg$fail(peg$
|
|
5648
|
+
peg$fail(peg$e77);
|
|
5174
5649
|
}
|
|
5175
5650
|
return s0;
|
|
5176
5651
|
}
|
|
@@ -5203,7 +5678,7 @@ function peg$parse(input, options) {
|
|
|
5203
5678
|
else {
|
|
5204
5679
|
s6 = peg$FAILED;
|
|
5205
5680
|
if (peg$silentFails === 0) {
|
|
5206
|
-
peg$fail(peg$
|
|
5681
|
+
peg$fail(peg$e16);
|
|
5207
5682
|
}
|
|
5208
5683
|
}
|
|
5209
5684
|
if (s6 !== peg$FAILED) {
|
|
@@ -5246,7 +5721,7 @@ function peg$parse(input, options) {
|
|
|
5246
5721
|
else {
|
|
5247
5722
|
s6 = peg$FAILED;
|
|
5248
5723
|
if (peg$silentFails === 0) {
|
|
5249
|
-
peg$fail(peg$
|
|
5724
|
+
peg$fail(peg$e16);
|
|
5250
5725
|
}
|
|
5251
5726
|
}
|
|
5252
5727
|
if (s6 !== peg$FAILED) {
|
|
@@ -5275,7 +5750,7 @@ function peg$parse(input, options) {
|
|
|
5275
5750
|
}
|
|
5276
5751
|
if (s1 !== peg$FAILED) {
|
|
5277
5752
|
peg$savedPos = s0;
|
|
5278
|
-
s1 = peg$
|
|
5753
|
+
s1 = peg$f65(s1);
|
|
5279
5754
|
}
|
|
5280
5755
|
s0 = s1;
|
|
5281
5756
|
if (s0 === peg$FAILED) {
|
|
@@ -5286,13 +5761,13 @@ function peg$parse(input, options) {
|
|
|
5286
5761
|
function peg$parseBoldHalfTag() {
|
|
5287
5762
|
var s0;
|
|
5288
5763
|
if (input.charCodeAt(peg$currPos) === 42) {
|
|
5289
|
-
s0 = peg$
|
|
5764
|
+
s0 = peg$c71;
|
|
5290
5765
|
peg$currPos++;
|
|
5291
5766
|
}
|
|
5292
5767
|
else {
|
|
5293
5768
|
s0 = peg$FAILED;
|
|
5294
5769
|
if (peg$silentFails === 0) {
|
|
5295
|
-
peg$fail(peg$
|
|
5770
|
+
peg$fail(peg$e78);
|
|
5296
5771
|
}
|
|
5297
5772
|
}
|
|
5298
5773
|
return s0;
|
|
@@ -5300,13 +5775,13 @@ function peg$parse(input, options) {
|
|
|
5300
5775
|
function peg$parseItalicHalfTag() {
|
|
5301
5776
|
var s0;
|
|
5302
5777
|
if (input.charCodeAt(peg$currPos) === 95) {
|
|
5303
|
-
s0 = peg$
|
|
5778
|
+
s0 = peg$c72;
|
|
5304
5779
|
peg$currPos++;
|
|
5305
5780
|
}
|
|
5306
5781
|
else {
|
|
5307
5782
|
s0 = peg$FAILED;
|
|
5308
5783
|
if (peg$silentFails === 0) {
|
|
5309
|
-
peg$fail(peg$
|
|
5784
|
+
peg$fail(peg$e79);
|
|
5310
5785
|
}
|
|
5311
5786
|
}
|
|
5312
5787
|
return s0;
|
|
@@ -5314,13 +5789,13 @@ function peg$parse(input, options) {
|
|
|
5314
5789
|
function peg$parseLightHalfTag() {
|
|
5315
5790
|
var s0;
|
|
5316
5791
|
if (input.charCodeAt(peg$currPos) === 96) {
|
|
5317
|
-
s0 = peg$
|
|
5792
|
+
s0 = peg$c73;
|
|
5318
5793
|
peg$currPos++;
|
|
5319
5794
|
}
|
|
5320
5795
|
else {
|
|
5321
5796
|
s0 = peg$FAILED;
|
|
5322
5797
|
if (peg$silentFails === 0) {
|
|
5323
|
-
peg$fail(peg$
|
|
5798
|
+
peg$fail(peg$e80);
|
|
5324
5799
|
}
|
|
5325
5800
|
}
|
|
5326
5801
|
return s0;
|
|
@@ -5328,13 +5803,13 @@ function peg$parse(input, options) {
|
|
|
5328
5803
|
function peg$parseHighlightHalfTag() {
|
|
5329
5804
|
var s0;
|
|
5330
5805
|
if (input.charCodeAt(peg$currPos) === 33) {
|
|
5331
|
-
s0 = peg$
|
|
5806
|
+
s0 = peg$c74;
|
|
5332
5807
|
peg$currPos++;
|
|
5333
5808
|
}
|
|
5334
5809
|
else {
|
|
5335
5810
|
s0 = peg$FAILED;
|
|
5336
5811
|
if (peg$silentFails === 0) {
|
|
5337
|
-
peg$fail(peg$
|
|
5812
|
+
peg$fail(peg$e81);
|
|
5338
5813
|
}
|
|
5339
5814
|
}
|
|
5340
5815
|
return s0;
|
|
@@ -5425,14 +5900,14 @@ function peg$parse(input, options) {
|
|
|
5425
5900
|
}
|
|
5426
5901
|
function peg$parseBodyBitOpenTag() {
|
|
5427
5902
|
var s0;
|
|
5428
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
5429
|
-
s0 = peg$
|
|
5903
|
+
if (input.substr(peg$currPos, 2) === peg$c75) {
|
|
5904
|
+
s0 = peg$c75;
|
|
5430
5905
|
peg$currPos += 2;
|
|
5431
5906
|
}
|
|
5432
5907
|
else {
|
|
5433
5908
|
s0 = peg$FAILED;
|
|
5434
5909
|
if (peg$silentFails === 0) {
|
|
5435
|
-
peg$fail(peg$
|
|
5910
|
+
peg$fail(peg$e82);
|
|
5436
5911
|
}
|
|
5437
5912
|
}
|
|
5438
5913
|
return s0;
|
|
@@ -5440,13 +5915,13 @@ function peg$parse(input, options) {
|
|
|
5440
5915
|
function peg$parseBodyBitCloseTag() {
|
|
5441
5916
|
var s0;
|
|
5442
5917
|
if (input.charCodeAt(peg$currPos) === 93) {
|
|
5443
|
-
s0 = peg$
|
|
5918
|
+
s0 = peg$c76;
|
|
5444
5919
|
peg$currPos++;
|
|
5445
5920
|
}
|
|
5446
5921
|
else {
|
|
5447
5922
|
s0 = peg$FAILED;
|
|
5448
5923
|
if (peg$silentFails === 0) {
|
|
5449
|
-
peg$fail(peg$
|
|
5924
|
+
peg$fail(peg$e83);
|
|
5450
5925
|
}
|
|
5451
5926
|
}
|
|
5452
5927
|
return s0;
|
|
@@ -5465,7 +5940,7 @@ function peg$parse(input, options) {
|
|
|
5465
5940
|
else {
|
|
5466
5941
|
s4 = peg$FAILED;
|
|
5467
5942
|
if (peg$silentFails === 0) {
|
|
5468
|
-
peg$fail(peg$
|
|
5943
|
+
peg$fail(peg$e22);
|
|
5469
5944
|
}
|
|
5470
5945
|
}
|
|
5471
5946
|
if (s4 !== peg$FAILED) {
|
|
@@ -5478,7 +5953,7 @@ function peg$parse(input, options) {
|
|
|
5478
5953
|
else {
|
|
5479
5954
|
s4 = peg$FAILED;
|
|
5480
5955
|
if (peg$silentFails === 0) {
|
|
5481
|
-
peg$fail(peg$
|
|
5956
|
+
peg$fail(peg$e22);
|
|
5482
5957
|
}
|
|
5483
5958
|
}
|
|
5484
5959
|
}
|
|
@@ -5496,7 +5971,7 @@ function peg$parse(input, options) {
|
|
|
5496
5971
|
s3 = peg$parseBodyBitCloseTag();
|
|
5497
5972
|
if (s3 !== peg$FAILED) {
|
|
5498
5973
|
peg$savedPos = s0;
|
|
5499
|
-
s0 = peg$
|
|
5974
|
+
s0 = peg$f66(s2);
|
|
5500
5975
|
}
|
|
5501
5976
|
else {
|
|
5502
5977
|
peg$currPos = s0;
|
|
@@ -5517,13 +5992,13 @@ function peg$parse(input, options) {
|
|
|
5517
5992
|
s1 = peg$parseBoldTag();
|
|
5518
5993
|
if (s1 !== peg$FAILED) {
|
|
5519
5994
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5520
|
-
s2 = peg$
|
|
5995
|
+
s2 = peg$c16;
|
|
5521
5996
|
peg$currPos++;
|
|
5522
5997
|
}
|
|
5523
5998
|
else {
|
|
5524
5999
|
s2 = peg$FAILED;
|
|
5525
6000
|
if (peg$silentFails === 0) {
|
|
5526
|
-
peg$fail(peg$
|
|
6001
|
+
peg$fail(peg$e19);
|
|
5527
6002
|
}
|
|
5528
6003
|
}
|
|
5529
6004
|
if (s2 === peg$FAILED) {
|
|
@@ -5536,13 +6011,13 @@ function peg$parse(input, options) {
|
|
|
5536
6011
|
peg$silentFails++;
|
|
5537
6012
|
s7 = peg$currPos;
|
|
5538
6013
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5539
|
-
s8 = peg$
|
|
6014
|
+
s8 = peg$c16;
|
|
5540
6015
|
peg$currPos++;
|
|
5541
6016
|
}
|
|
5542
6017
|
else {
|
|
5543
6018
|
s8 = peg$FAILED;
|
|
5544
6019
|
if (peg$silentFails === 0) {
|
|
5545
|
-
peg$fail(peg$
|
|
6020
|
+
peg$fail(peg$e19);
|
|
5546
6021
|
}
|
|
5547
6022
|
}
|
|
5548
6023
|
if (s8 === peg$FAILED) {
|
|
@@ -5573,7 +6048,7 @@ function peg$parse(input, options) {
|
|
|
5573
6048
|
else {
|
|
5574
6049
|
s7 = peg$FAILED;
|
|
5575
6050
|
if (peg$silentFails === 0) {
|
|
5576
|
-
peg$fail(peg$
|
|
6051
|
+
peg$fail(peg$e16);
|
|
5577
6052
|
}
|
|
5578
6053
|
}
|
|
5579
6054
|
if (s7 !== peg$FAILED) {
|
|
@@ -5596,13 +6071,13 @@ function peg$parse(input, options) {
|
|
|
5596
6071
|
peg$silentFails++;
|
|
5597
6072
|
s7 = peg$currPos;
|
|
5598
6073
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5599
|
-
s8 = peg$
|
|
6074
|
+
s8 = peg$c16;
|
|
5600
6075
|
peg$currPos++;
|
|
5601
6076
|
}
|
|
5602
6077
|
else {
|
|
5603
6078
|
s8 = peg$FAILED;
|
|
5604
6079
|
if (peg$silentFails === 0) {
|
|
5605
|
-
peg$fail(peg$
|
|
6080
|
+
peg$fail(peg$e19);
|
|
5606
6081
|
}
|
|
5607
6082
|
}
|
|
5608
6083
|
if (s8 === peg$FAILED) {
|
|
@@ -5633,7 +6108,7 @@ function peg$parse(input, options) {
|
|
|
5633
6108
|
else {
|
|
5634
6109
|
s7 = peg$FAILED;
|
|
5635
6110
|
if (peg$silentFails === 0) {
|
|
5636
|
-
peg$fail(peg$
|
|
6111
|
+
peg$fail(peg$e16);
|
|
5637
6112
|
}
|
|
5638
6113
|
}
|
|
5639
6114
|
if (s7 !== peg$FAILED) {
|
|
@@ -5652,13 +6127,13 @@ function peg$parse(input, options) {
|
|
|
5652
6127
|
}
|
|
5653
6128
|
s3 = input.substring(s3, peg$currPos);
|
|
5654
6129
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5655
|
-
s4 = peg$
|
|
6130
|
+
s4 = peg$c16;
|
|
5656
6131
|
peg$currPos++;
|
|
5657
6132
|
}
|
|
5658
6133
|
else {
|
|
5659
6134
|
s4 = peg$FAILED;
|
|
5660
6135
|
if (peg$silentFails === 0) {
|
|
5661
|
-
peg$fail(peg$
|
|
6136
|
+
peg$fail(peg$e19);
|
|
5662
6137
|
}
|
|
5663
6138
|
}
|
|
5664
6139
|
if (s4 === peg$FAILED) {
|
|
@@ -5667,7 +6142,7 @@ function peg$parse(input, options) {
|
|
|
5667
6142
|
s5 = peg$parseBoldTag();
|
|
5668
6143
|
if (s5 !== peg$FAILED) {
|
|
5669
6144
|
peg$savedPos = s0;
|
|
5670
|
-
s0 = peg$
|
|
6145
|
+
s0 = peg$f67(s3);
|
|
5671
6146
|
}
|
|
5672
6147
|
else {
|
|
5673
6148
|
peg$currPos = s0;
|
|
@@ -5683,13 +6158,13 @@ function peg$parse(input, options) {
|
|
|
5683
6158
|
s1 = peg$parseItalicTag();
|
|
5684
6159
|
if (s1 !== peg$FAILED) {
|
|
5685
6160
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5686
|
-
s2 = peg$
|
|
6161
|
+
s2 = peg$c16;
|
|
5687
6162
|
peg$currPos++;
|
|
5688
6163
|
}
|
|
5689
6164
|
else {
|
|
5690
6165
|
s2 = peg$FAILED;
|
|
5691
6166
|
if (peg$silentFails === 0) {
|
|
5692
|
-
peg$fail(peg$
|
|
6167
|
+
peg$fail(peg$e19);
|
|
5693
6168
|
}
|
|
5694
6169
|
}
|
|
5695
6170
|
if (s2 === peg$FAILED) {
|
|
@@ -5702,13 +6177,13 @@ function peg$parse(input, options) {
|
|
|
5702
6177
|
peg$silentFails++;
|
|
5703
6178
|
s7 = peg$currPos;
|
|
5704
6179
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5705
|
-
s8 = peg$
|
|
6180
|
+
s8 = peg$c16;
|
|
5706
6181
|
peg$currPos++;
|
|
5707
6182
|
}
|
|
5708
6183
|
else {
|
|
5709
6184
|
s8 = peg$FAILED;
|
|
5710
6185
|
if (peg$silentFails === 0) {
|
|
5711
|
-
peg$fail(peg$
|
|
6186
|
+
peg$fail(peg$e19);
|
|
5712
6187
|
}
|
|
5713
6188
|
}
|
|
5714
6189
|
if (s8 === peg$FAILED) {
|
|
@@ -5739,7 +6214,7 @@ function peg$parse(input, options) {
|
|
|
5739
6214
|
else {
|
|
5740
6215
|
s7 = peg$FAILED;
|
|
5741
6216
|
if (peg$silentFails === 0) {
|
|
5742
|
-
peg$fail(peg$
|
|
6217
|
+
peg$fail(peg$e16);
|
|
5743
6218
|
}
|
|
5744
6219
|
}
|
|
5745
6220
|
if (s7 !== peg$FAILED) {
|
|
@@ -5762,13 +6237,13 @@ function peg$parse(input, options) {
|
|
|
5762
6237
|
peg$silentFails++;
|
|
5763
6238
|
s7 = peg$currPos;
|
|
5764
6239
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5765
|
-
s8 = peg$
|
|
6240
|
+
s8 = peg$c16;
|
|
5766
6241
|
peg$currPos++;
|
|
5767
6242
|
}
|
|
5768
6243
|
else {
|
|
5769
6244
|
s8 = peg$FAILED;
|
|
5770
6245
|
if (peg$silentFails === 0) {
|
|
5771
|
-
peg$fail(peg$
|
|
6246
|
+
peg$fail(peg$e19);
|
|
5772
6247
|
}
|
|
5773
6248
|
}
|
|
5774
6249
|
if (s8 === peg$FAILED) {
|
|
@@ -5799,7 +6274,7 @@ function peg$parse(input, options) {
|
|
|
5799
6274
|
else {
|
|
5800
6275
|
s7 = peg$FAILED;
|
|
5801
6276
|
if (peg$silentFails === 0) {
|
|
5802
|
-
peg$fail(peg$
|
|
6277
|
+
peg$fail(peg$e16);
|
|
5803
6278
|
}
|
|
5804
6279
|
}
|
|
5805
6280
|
if (s7 !== peg$FAILED) {
|
|
@@ -5818,13 +6293,13 @@ function peg$parse(input, options) {
|
|
|
5818
6293
|
}
|
|
5819
6294
|
s3 = input.substring(s3, peg$currPos);
|
|
5820
6295
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5821
|
-
s4 = peg$
|
|
6296
|
+
s4 = peg$c16;
|
|
5822
6297
|
peg$currPos++;
|
|
5823
6298
|
}
|
|
5824
6299
|
else {
|
|
5825
6300
|
s4 = peg$FAILED;
|
|
5826
6301
|
if (peg$silentFails === 0) {
|
|
5827
|
-
peg$fail(peg$
|
|
6302
|
+
peg$fail(peg$e19);
|
|
5828
6303
|
}
|
|
5829
6304
|
}
|
|
5830
6305
|
if (s4 === peg$FAILED) {
|
|
@@ -5833,7 +6308,7 @@ function peg$parse(input, options) {
|
|
|
5833
6308
|
s5 = peg$parseItalicTag();
|
|
5834
6309
|
if (s5 !== peg$FAILED) {
|
|
5835
6310
|
peg$savedPos = s0;
|
|
5836
|
-
s0 = peg$
|
|
6311
|
+
s0 = peg$f68(s3);
|
|
5837
6312
|
}
|
|
5838
6313
|
else {
|
|
5839
6314
|
peg$currPos = s0;
|
|
@@ -5849,13 +6324,13 @@ function peg$parse(input, options) {
|
|
|
5849
6324
|
s1 = peg$parseLightTag();
|
|
5850
6325
|
if (s1 !== peg$FAILED) {
|
|
5851
6326
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5852
|
-
s2 = peg$
|
|
6327
|
+
s2 = peg$c16;
|
|
5853
6328
|
peg$currPos++;
|
|
5854
6329
|
}
|
|
5855
6330
|
else {
|
|
5856
6331
|
s2 = peg$FAILED;
|
|
5857
6332
|
if (peg$silentFails === 0) {
|
|
5858
|
-
peg$fail(peg$
|
|
6333
|
+
peg$fail(peg$e19);
|
|
5859
6334
|
}
|
|
5860
6335
|
}
|
|
5861
6336
|
if (s2 === peg$FAILED) {
|
|
@@ -5868,13 +6343,13 @@ function peg$parse(input, options) {
|
|
|
5868
6343
|
peg$silentFails++;
|
|
5869
6344
|
s7 = peg$currPos;
|
|
5870
6345
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5871
|
-
s8 = peg$
|
|
6346
|
+
s8 = peg$c16;
|
|
5872
6347
|
peg$currPos++;
|
|
5873
6348
|
}
|
|
5874
6349
|
else {
|
|
5875
6350
|
s8 = peg$FAILED;
|
|
5876
6351
|
if (peg$silentFails === 0) {
|
|
5877
|
-
peg$fail(peg$
|
|
6352
|
+
peg$fail(peg$e19);
|
|
5878
6353
|
}
|
|
5879
6354
|
}
|
|
5880
6355
|
if (s8 === peg$FAILED) {
|
|
@@ -5905,7 +6380,7 @@ function peg$parse(input, options) {
|
|
|
5905
6380
|
else {
|
|
5906
6381
|
s7 = peg$FAILED;
|
|
5907
6382
|
if (peg$silentFails === 0) {
|
|
5908
|
-
peg$fail(peg$
|
|
6383
|
+
peg$fail(peg$e16);
|
|
5909
6384
|
}
|
|
5910
6385
|
}
|
|
5911
6386
|
if (s7 !== peg$FAILED) {
|
|
@@ -5928,13 +6403,13 @@ function peg$parse(input, options) {
|
|
|
5928
6403
|
peg$silentFails++;
|
|
5929
6404
|
s7 = peg$currPos;
|
|
5930
6405
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5931
|
-
s8 = peg$
|
|
6406
|
+
s8 = peg$c16;
|
|
5932
6407
|
peg$currPos++;
|
|
5933
6408
|
}
|
|
5934
6409
|
else {
|
|
5935
6410
|
s8 = peg$FAILED;
|
|
5936
6411
|
if (peg$silentFails === 0) {
|
|
5937
|
-
peg$fail(peg$
|
|
6412
|
+
peg$fail(peg$e19);
|
|
5938
6413
|
}
|
|
5939
6414
|
}
|
|
5940
6415
|
if (s8 === peg$FAILED) {
|
|
@@ -5965,7 +6440,7 @@ function peg$parse(input, options) {
|
|
|
5965
6440
|
else {
|
|
5966
6441
|
s7 = peg$FAILED;
|
|
5967
6442
|
if (peg$silentFails === 0) {
|
|
5968
|
-
peg$fail(peg$
|
|
6443
|
+
peg$fail(peg$e16);
|
|
5969
6444
|
}
|
|
5970
6445
|
}
|
|
5971
6446
|
if (s7 !== peg$FAILED) {
|
|
@@ -5984,13 +6459,13 @@ function peg$parse(input, options) {
|
|
|
5984
6459
|
}
|
|
5985
6460
|
s3 = input.substring(s3, peg$currPos);
|
|
5986
6461
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
5987
|
-
s4 = peg$
|
|
6462
|
+
s4 = peg$c16;
|
|
5988
6463
|
peg$currPos++;
|
|
5989
6464
|
}
|
|
5990
6465
|
else {
|
|
5991
6466
|
s4 = peg$FAILED;
|
|
5992
6467
|
if (peg$silentFails === 0) {
|
|
5993
|
-
peg$fail(peg$
|
|
6468
|
+
peg$fail(peg$e19);
|
|
5994
6469
|
}
|
|
5995
6470
|
}
|
|
5996
6471
|
if (s4 === peg$FAILED) {
|
|
@@ -5999,7 +6474,7 @@ function peg$parse(input, options) {
|
|
|
5999
6474
|
s5 = peg$parseLightTag();
|
|
6000
6475
|
if (s5 !== peg$FAILED) {
|
|
6001
6476
|
peg$savedPos = s0;
|
|
6002
|
-
s0 = peg$
|
|
6477
|
+
s0 = peg$f69(s3);
|
|
6003
6478
|
}
|
|
6004
6479
|
else {
|
|
6005
6480
|
peg$currPos = s0;
|
|
@@ -6015,13 +6490,13 @@ function peg$parse(input, options) {
|
|
|
6015
6490
|
s1 = peg$parseHighlightTag();
|
|
6016
6491
|
if (s1 !== peg$FAILED) {
|
|
6017
6492
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
6018
|
-
s2 = peg$
|
|
6493
|
+
s2 = peg$c16;
|
|
6019
6494
|
peg$currPos++;
|
|
6020
6495
|
}
|
|
6021
6496
|
else {
|
|
6022
6497
|
s2 = peg$FAILED;
|
|
6023
6498
|
if (peg$silentFails === 0) {
|
|
6024
|
-
peg$fail(peg$
|
|
6499
|
+
peg$fail(peg$e19);
|
|
6025
6500
|
}
|
|
6026
6501
|
}
|
|
6027
6502
|
if (s2 === peg$FAILED) {
|
|
@@ -6034,13 +6509,13 @@ function peg$parse(input, options) {
|
|
|
6034
6509
|
peg$silentFails++;
|
|
6035
6510
|
s7 = peg$currPos;
|
|
6036
6511
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
6037
|
-
s8 = peg$
|
|
6512
|
+
s8 = peg$c16;
|
|
6038
6513
|
peg$currPos++;
|
|
6039
6514
|
}
|
|
6040
6515
|
else {
|
|
6041
6516
|
s8 = peg$FAILED;
|
|
6042
6517
|
if (peg$silentFails === 0) {
|
|
6043
|
-
peg$fail(peg$
|
|
6518
|
+
peg$fail(peg$e19);
|
|
6044
6519
|
}
|
|
6045
6520
|
}
|
|
6046
6521
|
if (s8 === peg$FAILED) {
|
|
@@ -6071,7 +6546,7 @@ function peg$parse(input, options) {
|
|
|
6071
6546
|
else {
|
|
6072
6547
|
s7 = peg$FAILED;
|
|
6073
6548
|
if (peg$silentFails === 0) {
|
|
6074
|
-
peg$fail(peg$
|
|
6549
|
+
peg$fail(peg$e16);
|
|
6075
6550
|
}
|
|
6076
6551
|
}
|
|
6077
6552
|
if (s7 !== peg$FAILED) {
|
|
@@ -6094,13 +6569,13 @@ function peg$parse(input, options) {
|
|
|
6094
6569
|
peg$silentFails++;
|
|
6095
6570
|
s7 = peg$currPos;
|
|
6096
6571
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
6097
|
-
s8 = peg$
|
|
6572
|
+
s8 = peg$c16;
|
|
6098
6573
|
peg$currPos++;
|
|
6099
6574
|
}
|
|
6100
6575
|
else {
|
|
6101
6576
|
s8 = peg$FAILED;
|
|
6102
6577
|
if (peg$silentFails === 0) {
|
|
6103
|
-
peg$fail(peg$
|
|
6578
|
+
peg$fail(peg$e19);
|
|
6104
6579
|
}
|
|
6105
6580
|
}
|
|
6106
6581
|
if (s8 === peg$FAILED) {
|
|
@@ -6131,7 +6606,7 @@ function peg$parse(input, options) {
|
|
|
6131
6606
|
else {
|
|
6132
6607
|
s7 = peg$FAILED;
|
|
6133
6608
|
if (peg$silentFails === 0) {
|
|
6134
|
-
peg$fail(peg$
|
|
6609
|
+
peg$fail(peg$e16);
|
|
6135
6610
|
}
|
|
6136
6611
|
}
|
|
6137
6612
|
if (s7 !== peg$FAILED) {
|
|
@@ -6150,13 +6625,13 @@ function peg$parse(input, options) {
|
|
|
6150
6625
|
}
|
|
6151
6626
|
s3 = input.substring(s3, peg$currPos);
|
|
6152
6627
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
6153
|
-
s4 = peg$
|
|
6628
|
+
s4 = peg$c16;
|
|
6154
6629
|
peg$currPos++;
|
|
6155
6630
|
}
|
|
6156
6631
|
else {
|
|
6157
6632
|
s4 = peg$FAILED;
|
|
6158
6633
|
if (peg$silentFails === 0) {
|
|
6159
|
-
peg$fail(peg$
|
|
6634
|
+
peg$fail(peg$e19);
|
|
6160
6635
|
}
|
|
6161
6636
|
}
|
|
6162
6637
|
if (s4 === peg$FAILED) {
|
|
@@ -6165,7 +6640,7 @@ function peg$parse(input, options) {
|
|
|
6165
6640
|
s5 = peg$parseHighlightTag();
|
|
6166
6641
|
if (s5 !== peg$FAILED) {
|
|
6167
6642
|
peg$savedPos = s0;
|
|
6168
|
-
s0 = peg$
|
|
6643
|
+
s0 = peg$f70(s3);
|
|
6169
6644
|
}
|
|
6170
6645
|
else {
|
|
6171
6646
|
peg$currPos = s0;
|
|
@@ -6332,57 +6807,57 @@ function peg$parse(input, options) {
|
|
|
6332
6807
|
var s0, s1;
|
|
6333
6808
|
peg$silentFails++;
|
|
6334
6809
|
if (input.charCodeAt(peg$currPos) === 10) {
|
|
6335
|
-
s0 = peg$
|
|
6810
|
+
s0 = peg$c77;
|
|
6336
6811
|
peg$currPos++;
|
|
6337
6812
|
}
|
|
6338
6813
|
else {
|
|
6339
6814
|
s0 = peg$FAILED;
|
|
6340
6815
|
if (peg$silentFails === 0) {
|
|
6341
|
-
peg$fail(peg$
|
|
6816
|
+
peg$fail(peg$e85);
|
|
6342
6817
|
}
|
|
6343
6818
|
}
|
|
6344
6819
|
if (s0 === peg$FAILED) {
|
|
6345
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
6346
|
-
s0 = peg$
|
|
6820
|
+
if (input.substr(peg$currPos, 2) === peg$c78) {
|
|
6821
|
+
s0 = peg$c78;
|
|
6347
6822
|
peg$currPos += 2;
|
|
6348
6823
|
}
|
|
6349
6824
|
else {
|
|
6350
6825
|
s0 = peg$FAILED;
|
|
6351
6826
|
if (peg$silentFails === 0) {
|
|
6352
|
-
peg$fail(peg$
|
|
6827
|
+
peg$fail(peg$e86);
|
|
6353
6828
|
}
|
|
6354
6829
|
}
|
|
6355
6830
|
if (s0 === peg$FAILED) {
|
|
6356
6831
|
if (input.charCodeAt(peg$currPos) === 13) {
|
|
6357
|
-
s0 = peg$
|
|
6832
|
+
s0 = peg$c79;
|
|
6358
6833
|
peg$currPos++;
|
|
6359
6834
|
}
|
|
6360
6835
|
else {
|
|
6361
6836
|
s0 = peg$FAILED;
|
|
6362
6837
|
if (peg$silentFails === 0) {
|
|
6363
|
-
peg$fail(peg$
|
|
6838
|
+
peg$fail(peg$e87);
|
|
6364
6839
|
}
|
|
6365
6840
|
}
|
|
6366
6841
|
if (s0 === peg$FAILED) {
|
|
6367
6842
|
if (input.charCodeAt(peg$currPos) === 8232) {
|
|
6368
|
-
s0 = peg$
|
|
6843
|
+
s0 = peg$c80;
|
|
6369
6844
|
peg$currPos++;
|
|
6370
6845
|
}
|
|
6371
6846
|
else {
|
|
6372
6847
|
s0 = peg$FAILED;
|
|
6373
6848
|
if (peg$silentFails === 0) {
|
|
6374
|
-
peg$fail(peg$
|
|
6849
|
+
peg$fail(peg$e88);
|
|
6375
6850
|
}
|
|
6376
6851
|
}
|
|
6377
6852
|
if (s0 === peg$FAILED) {
|
|
6378
6853
|
if (input.charCodeAt(peg$currPos) === 8233) {
|
|
6379
|
-
s0 = peg$
|
|
6854
|
+
s0 = peg$c81;
|
|
6380
6855
|
peg$currPos++;
|
|
6381
6856
|
}
|
|
6382
6857
|
else {
|
|
6383
6858
|
s0 = peg$FAILED;
|
|
6384
6859
|
if (peg$silentFails === 0) {
|
|
6385
|
-
peg$fail(peg$
|
|
6860
|
+
peg$fail(peg$e89);
|
|
6386
6861
|
}
|
|
6387
6862
|
}
|
|
6388
6863
|
}
|
|
@@ -6393,7 +6868,7 @@ function peg$parse(input, options) {
|
|
|
6393
6868
|
if (s0 === peg$FAILED) {
|
|
6394
6869
|
s1 = peg$FAILED;
|
|
6395
6870
|
if (peg$silentFails === 0) {
|
|
6396
|
-
peg$fail(peg$
|
|
6871
|
+
peg$fail(peg$e84);
|
|
6397
6872
|
}
|
|
6398
6873
|
}
|
|
6399
6874
|
return s0;
|
|
@@ -6428,7 +6903,7 @@ function peg$parse(input, options) {
|
|
|
6428
6903
|
peg$silentFails--;
|
|
6429
6904
|
s1 = peg$FAILED;
|
|
6430
6905
|
if (peg$silentFails === 0) {
|
|
6431
|
-
peg$fail(peg$
|
|
6906
|
+
peg$fail(peg$e90);
|
|
6432
6907
|
}
|
|
6433
6908
|
return s0;
|
|
6434
6909
|
}
|
|
@@ -6452,7 +6927,7 @@ function peg$parse(input, options) {
|
|
|
6452
6927
|
peg$silentFails--;
|
|
6453
6928
|
s1 = peg$FAILED;
|
|
6454
6929
|
if (peg$silentFails === 0) {
|
|
6455
|
-
peg$fail(peg$
|
|
6930
|
+
peg$fail(peg$e91);
|
|
6456
6931
|
}
|
|
6457
6932
|
return s0;
|
|
6458
6933
|
}
|
|
@@ -6476,7 +6951,7 @@ function peg$parse(input, options) {
|
|
|
6476
6951
|
if (s0 === peg$FAILED) {
|
|
6477
6952
|
s1 = peg$FAILED;
|
|
6478
6953
|
if (peg$silentFails === 0) {
|
|
6479
|
-
peg$fail(peg$
|
|
6954
|
+
peg$fail(peg$e92);
|
|
6480
6955
|
}
|
|
6481
6956
|
}
|
|
6482
6957
|
return s0;
|
|
@@ -6491,14 +6966,14 @@ function peg$parse(input, options) {
|
|
|
6491
6966
|
else {
|
|
6492
6967
|
s0 = peg$FAILED;
|
|
6493
6968
|
if (peg$silentFails === 0) {
|
|
6494
|
-
peg$fail(peg$
|
|
6969
|
+
peg$fail(peg$e94);
|
|
6495
6970
|
}
|
|
6496
6971
|
}
|
|
6497
6972
|
peg$silentFails--;
|
|
6498
6973
|
if (s0 === peg$FAILED) {
|
|
6499
6974
|
s1 = peg$FAILED;
|
|
6500
6975
|
if (peg$silentFails === 0) {
|
|
6501
|
-
peg$fail(peg$
|
|
6976
|
+
peg$fail(peg$e93);
|
|
6502
6977
|
}
|
|
6503
6978
|
}
|
|
6504
6979
|
return s0;
|
|
@@ -6512,7 +6987,7 @@ function peg$parse(input, options) {
|
|
|
6512
6987
|
else {
|
|
6513
6988
|
s0 = peg$FAILED;
|
|
6514
6989
|
if (peg$silentFails === 0) {
|
|
6515
|
-
peg$fail(peg$
|
|
6990
|
+
peg$fail(peg$e95);
|
|
6516
6991
|
}
|
|
6517
6992
|
}
|
|
6518
6993
|
return s0;
|
|
@@ -6526,7 +7001,7 @@ function peg$parse(input, options) {
|
|
|
6526
7001
|
else {
|
|
6527
7002
|
s0 = peg$FAILED;
|
|
6528
7003
|
if (peg$silentFails === 0) {
|
|
6529
|
-
peg$fail(peg$
|
|
7004
|
+
peg$fail(peg$e96);
|
|
6530
7005
|
}
|
|
6531
7006
|
}
|
|
6532
7007
|
return s0;
|
|
@@ -6540,7 +7015,7 @@ function peg$parse(input, options) {
|
|
|
6540
7015
|
else {
|
|
6541
7016
|
s0 = peg$FAILED;
|
|
6542
7017
|
if (peg$silentFails === 0) {
|
|
6543
|
-
peg$fail(peg$
|
|
7018
|
+
peg$fail(peg$e97);
|
|
6544
7019
|
}
|
|
6545
7020
|
}
|
|
6546
7021
|
return s0;
|
|
@@ -6558,7 +7033,7 @@ function peg$parse(input, options) {
|
|
|
6558
7033
|
else {
|
|
6559
7034
|
s1 = peg$FAILED;
|
|
6560
7035
|
if (peg$silentFails === 0) {
|
|
6561
|
-
peg$fail(peg$
|
|
7036
|
+
peg$fail(peg$e16);
|
|
6562
7037
|
}
|
|
6563
7038
|
}
|
|
6564
7039
|
peg$silentFails--;
|
|
@@ -6576,38 +7051,38 @@ function peg$parse(input, options) {
|
|
|
6576
7051
|
var s0, s1, s2, s3, s4, s5, s6, s7, s8;
|
|
6577
7052
|
s0 = peg$currPos;
|
|
6578
7053
|
s1 = peg$currPos;
|
|
6579
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6580
|
-
s2 = peg$
|
|
7054
|
+
if (input.substr(peg$currPos, 4) === peg$c82) {
|
|
7055
|
+
s2 = peg$c82;
|
|
6581
7056
|
peg$currPos += 4;
|
|
6582
7057
|
}
|
|
6583
7058
|
else {
|
|
6584
7059
|
s2 = peg$FAILED;
|
|
6585
7060
|
if (peg$silentFails === 0) {
|
|
6586
|
-
peg$fail(peg$
|
|
7061
|
+
peg$fail(peg$e98);
|
|
6587
7062
|
}
|
|
6588
7063
|
}
|
|
6589
7064
|
if (s2 !== peg$FAILED) {
|
|
6590
7065
|
if (input.charCodeAt(peg$currPos) === 115) {
|
|
6591
|
-
s3 = peg$
|
|
7066
|
+
s3 = peg$c83;
|
|
6592
7067
|
peg$currPos++;
|
|
6593
7068
|
}
|
|
6594
7069
|
else {
|
|
6595
7070
|
s3 = peg$FAILED;
|
|
6596
7071
|
if (peg$silentFails === 0) {
|
|
6597
|
-
peg$fail(peg$
|
|
7072
|
+
peg$fail(peg$e99);
|
|
6598
7073
|
}
|
|
6599
7074
|
}
|
|
6600
7075
|
if (s3 === peg$FAILED) {
|
|
6601
7076
|
s3 = null;
|
|
6602
7077
|
}
|
|
6603
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6604
|
-
s4 = peg$
|
|
7078
|
+
if (input.substr(peg$currPos, 3) === peg$c84) {
|
|
7079
|
+
s4 = peg$c84;
|
|
6605
7080
|
peg$currPos += 3;
|
|
6606
7081
|
}
|
|
6607
7082
|
else {
|
|
6608
7083
|
s4 = peg$FAILED;
|
|
6609
7084
|
if (peg$silentFails === 0) {
|
|
6610
|
-
peg$fail(peg$
|
|
7085
|
+
peg$fail(peg$e100);
|
|
6611
7086
|
}
|
|
6612
7087
|
}
|
|
6613
7088
|
if (s4 !== peg$FAILED) {
|
|
@@ -6694,38 +7169,38 @@ function peg$parse(input, options) {
|
|
|
6694
7169
|
s0 = peg$currPos;
|
|
6695
7170
|
s1 = peg$currPos;
|
|
6696
7171
|
s2 = peg$currPos;
|
|
6697
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
6698
|
-
s3 = peg$
|
|
7172
|
+
if (input.substr(peg$currPos, 4) === peg$c82) {
|
|
7173
|
+
s3 = peg$c82;
|
|
6699
7174
|
peg$currPos += 4;
|
|
6700
7175
|
}
|
|
6701
7176
|
else {
|
|
6702
7177
|
s3 = peg$FAILED;
|
|
6703
7178
|
if (peg$silentFails === 0) {
|
|
6704
|
-
peg$fail(peg$
|
|
7179
|
+
peg$fail(peg$e98);
|
|
6705
7180
|
}
|
|
6706
7181
|
}
|
|
6707
7182
|
if (s3 !== peg$FAILED) {
|
|
6708
7183
|
if (input.charCodeAt(peg$currPos) === 115) {
|
|
6709
|
-
s4 = peg$
|
|
7184
|
+
s4 = peg$c83;
|
|
6710
7185
|
peg$currPos++;
|
|
6711
7186
|
}
|
|
6712
7187
|
else {
|
|
6713
7188
|
s4 = peg$FAILED;
|
|
6714
7189
|
if (peg$silentFails === 0) {
|
|
6715
|
-
peg$fail(peg$
|
|
7190
|
+
peg$fail(peg$e99);
|
|
6716
7191
|
}
|
|
6717
7192
|
}
|
|
6718
7193
|
if (s4 === peg$FAILED) {
|
|
6719
7194
|
s4 = null;
|
|
6720
7195
|
}
|
|
6721
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
6722
|
-
s5 = peg$
|
|
7196
|
+
if (input.substr(peg$currPos, 3) === peg$c84) {
|
|
7197
|
+
s5 = peg$c84;
|
|
6723
7198
|
peg$currPos += 3;
|
|
6724
7199
|
}
|
|
6725
7200
|
else {
|
|
6726
7201
|
s5 = peg$FAILED;
|
|
6727
7202
|
if (peg$silentFails === 0) {
|
|
6728
|
-
peg$fail(peg$
|
|
7203
|
+
peg$fail(peg$e100);
|
|
6729
7204
|
}
|
|
6730
7205
|
}
|
|
6731
7206
|
if (s5 !== peg$FAILED) {
|
|
@@ -6742,14 +7217,14 @@ function peg$parse(input, options) {
|
|
|
6742
7217
|
s2 = peg$FAILED;
|
|
6743
7218
|
}
|
|
6744
7219
|
if (s2 === peg$FAILED) {
|
|
6745
|
-
if (input.substr(peg$currPos, 7) === peg$
|
|
6746
|
-
s2 = peg$
|
|
7220
|
+
if (input.substr(peg$currPos, 7) === peg$c85) {
|
|
7221
|
+
s2 = peg$c85;
|
|
6747
7222
|
peg$currPos += 7;
|
|
6748
7223
|
}
|
|
6749
7224
|
else {
|
|
6750
7225
|
s2 = peg$FAILED;
|
|
6751
7226
|
if (peg$silentFails === 0) {
|
|
6752
|
-
peg$fail(peg$
|
|
7227
|
+
peg$fail(peg$e101);
|
|
6753
7228
|
}
|
|
6754
7229
|
}
|
|
6755
7230
|
}
|
|
@@ -6821,7 +7296,7 @@ function peg$parse(input, options) {
|
|
|
6821
7296
|
}
|
|
6822
7297
|
s2 = input.substring(s2, peg$currPos);
|
|
6823
7298
|
peg$savedPos = s0;
|
|
6824
|
-
s0 = peg$
|
|
7299
|
+
s0 = peg$f71(s1, s2);
|
|
6825
7300
|
}
|
|
6826
7301
|
else {
|
|
6827
7302
|
peg$currPos = s0;
|
|
@@ -6838,40 +7313,40 @@ function peg$parse(input, options) {
|
|
|
6838
7313
|
else {
|
|
6839
7314
|
s0 = peg$FAILED;
|
|
6840
7315
|
if (peg$silentFails === 0) {
|
|
6841
|
-
peg$fail(peg$
|
|
7316
|
+
peg$fail(peg$e102);
|
|
6842
7317
|
}
|
|
6843
7318
|
}
|
|
6844
7319
|
if (s0 === peg$FAILED) {
|
|
6845
7320
|
if (input.charCodeAt(peg$currPos) === 126) {
|
|
6846
|
-
s0 = peg$
|
|
7321
|
+
s0 = peg$c86;
|
|
6847
7322
|
peg$currPos++;
|
|
6848
7323
|
}
|
|
6849
7324
|
else {
|
|
6850
7325
|
s0 = peg$FAILED;
|
|
6851
7326
|
if (peg$silentFails === 0) {
|
|
6852
|
-
peg$fail(peg$
|
|
7327
|
+
peg$fail(peg$e103);
|
|
6853
7328
|
}
|
|
6854
7329
|
}
|
|
6855
7330
|
if (s0 === peg$FAILED) {
|
|
6856
7331
|
if (input.charCodeAt(peg$currPos) === 94) {
|
|
6857
|
-
s0 = peg$
|
|
7332
|
+
s0 = peg$c87;
|
|
6858
7333
|
peg$currPos++;
|
|
6859
7334
|
}
|
|
6860
7335
|
else {
|
|
6861
7336
|
s0 = peg$FAILED;
|
|
6862
7337
|
if (peg$silentFails === 0) {
|
|
6863
|
-
peg$fail(peg$
|
|
7338
|
+
peg$fail(peg$e104);
|
|
6864
7339
|
}
|
|
6865
7340
|
}
|
|
6866
7341
|
if (s0 === peg$FAILED) {
|
|
6867
7342
|
if (input.charCodeAt(peg$currPos) === 39) {
|
|
6868
|
-
s0 = peg$
|
|
7343
|
+
s0 = peg$c88;
|
|
6869
7344
|
peg$currPos++;
|
|
6870
7345
|
}
|
|
6871
7346
|
else {
|
|
6872
7347
|
s0 = peg$FAILED;
|
|
6873
7348
|
if (peg$silentFails === 0) {
|
|
6874
|
-
peg$fail(peg$
|
|
7349
|
+
peg$fail(peg$e105);
|
|
6875
7350
|
}
|
|
6876
7351
|
}
|
|
6877
7352
|
}
|