podlite 0.0.90 → 0.0.91

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.
@@ -116,12 +116,12 @@ peg$SyntaxError.buildMessage = function (expected, found) {
116
116
  };
117
117
  function peg$parse(input, options) {
118
118
  options = options !== void 0 ? options : {};
119
- var peg$FAILED = {}, peg$startRuleFunctions = { start: peg$parsestart }, peg$startRuleFunction = peg$parsestart, peg$c0 = peg$anyExpectation(), peg$c1 = ':', peg$c2 = peg$literalExpectation(':', false), peg$c3 = '<', peg$c4 = peg$literalExpectation('<', false), peg$c5 = /^[^>]/, peg$c6 = peg$classExpectation(['>'], true, false), peg$c7 = '>', peg$c8 = peg$literalExpectation('>', false), peg$c9 = function (name, value) {
120
- // only a real attribute list is checked: `<` and `>` in running text or in
121
- // a verbatim block are not markup
122
- const verbatim = options._blockStack.some(b => options.isVerbatim(b.name));
123
- if (!options._inDirective || verbatim)
124
- return null;
119
+ var peg$FAILED = {}, peg$startRuleFunctions = { start: peg$parsestart }, peg$startRuleFunction = peg$parsestart, peg$c0 = peg$anyExpectation(), peg$c1 = function () {
120
+ // an option is written after whitespace, or after the brace or a comma of a hash
121
+ if (!options._inDirective || options._blockStack.some(b => options.isVerbatim(b.name)))
122
+ return false;
123
+ return /[ \t\x7b,]/.test(input.charAt(location().start.offset - 1));
124
+ }, peg$c2 = ':', peg$c3 = peg$literalExpectation(':', false), peg$c4 = '<', peg$c5 = peg$literalExpectation('<', false), peg$c6 = /^[^>\r\n]/, peg$c7 = peg$classExpectation(['>', '\r', '\n'], true, false), peg$c8 = '>', peg$c9 = peg$literalExpectation('>', false), peg$c10 = function (name, value) {
125
125
  const advice = 'use a non-conflicting delimiter ("...", (...), <<...>>) or plain text';
126
126
  // the mirror case: the value ended at a `>` written inside it, and the one
127
127
  // the author meant as the closing bracket is still ahead on the line
@@ -144,7 +144,11 @@ function peg$parse(input, options) {
144
144
  });
145
145
  }
146
146
  return null;
147
- }, peg$c10 = '=begin', peg$c11 = peg$literalExpectation('=begin', false), peg$c12 = function (name) {
147
+ }, peg$c11 = function () {
148
+ return options._inDirective;
149
+ }, peg$c12 = "'", peg$c13 = peg$literalExpectation("'", false), peg$c14 = /^[^'\r\n]/, peg$c15 = peg$classExpectation(["'", '\r', '\n'], true, false), peg$c16 = '"', peg$c17 = peg$literalExpectation('"', false), peg$c18 = /^[^"\r\n]/, peg$c19 = peg$classExpectation(['"', '\r', '\n'], true, false), peg$c20 = '\uFF62', peg$c21 = peg$literalExpectation('\uFF62', false), peg$c22 = /^[^\uFF63\r\n]/, peg$c23 = peg$classExpectation(['\uFF63', '\r', '\n'], true, false), peg$c24 = '\uFF63', peg$c25 = peg$literalExpectation('\uFF63', false), peg$c26 = function () {
150
+ return null;
151
+ }, peg$c27 = '=begin', peg$c28 = peg$literalExpectation('=begin', false), peg$c29 = function (name) {
148
152
  const top = options._blockStack[options._blockStack.length - 1];
149
153
  const verbatim = top && options.isVerbatim(top.name);
150
154
  if (verbatim) {
@@ -169,7 +173,7 @@ function peg$parse(input, options) {
169
173
  options._blockStack.push({ name: name, location: location() });
170
174
  options._inDirective = true;
171
175
  return null;
172
- }, peg$c13 = '=end', peg$c14 = peg$literalExpectation('=end', false), peg$c15 = function (name) {
176
+ }, peg$c30 = '=end', peg$c31 = peg$literalExpectation('=end', false), peg$c32 = function (name) {
173
177
  const top = options._blockStack[options._blockStack.length - 1];
174
178
  // a verbatim block runs to its own =end, so any other marker inside it is content
175
179
  if (top && top.name !== name && options.isVerbatim(top.name)) {
@@ -228,10 +232,10 @@ function peg$parse(input, options) {
228
232
  }
229
233
  options._inDirective = false;
230
234
  return null;
231
- }, peg$c16 = '=for', peg$c17 = peg$literalExpectation('=for', false), peg$c18 = function () {
235
+ }, peg$c33 = '=for', peg$c34 = peg$literalExpectation('=for', false), peg$c35 = function () {
232
236
  options._inDirective = true;
233
237
  return null;
234
- }, peg$c19 = '!', peg$c20 = peg$literalExpectation('!', false), peg$c21 = function (name) {
238
+ }, peg$c36 = '!', peg$c37 = peg$literalExpectation('!', false), peg$c38 = function (name) {
235
239
  // any verbatim block on the stack makes this line content: markers written
236
240
  // inside such a block are an example, not structure
237
241
  const verbatim = options._blockStack.some(b => options.isVerbatim(b.name));
@@ -244,15 +248,15 @@ function peg$parse(input, options) {
244
248
  });
245
249
  }
246
250
  return null;
247
- }, peg$c22 = '(', peg$c23 = peg$literalExpectation('(', false), peg$c24 = '{', peg$c25 = peg$literalExpectation('{', false), peg$c26 = '[', peg$c27 = peg$literalExpectation('[', false), peg$c28 = "'", peg$c29 = peg$literalExpectation("'", false), peg$c30 = '"', peg$c31 = peg$literalExpectation('"', false), peg$c32 = '\uFF62', peg$c33 = peg$literalExpectation('\uFF62', false), peg$c34 = '=', peg$c35 = peg$literalExpectation('=', false), peg$c36 = /^[ \t]/, peg$c37 = peg$classExpectation([' ', '\t'], false, false), peg$c38 = '\n', peg$c39 = peg$literalExpectation('\n', false), peg$c40 = function () {
251
+ }, peg$c39 = '(', peg$c40 = peg$literalExpectation('(', false), peg$c41 = '{', peg$c42 = peg$literalExpectation('{', false), peg$c43 = '[', peg$c44 = peg$literalExpectation('[', false), peg$c45 = '=', peg$c46 = peg$literalExpectation('=', false), peg$c47 = /^[ \t]/, peg$c48 = peg$classExpectation([' ', '\t'], false, false), peg$c49 = '\n', peg$c50 = peg$literalExpectation('\n', false), peg$c51 = function () {
248
252
  options._inDirective = false;
249
253
  return null;
250
- }, peg$c41 = peg$otherExpectation('identifier'), peg$c42 = /^[a-zA-Z]/, peg$c43 = peg$classExpectation([
254
+ }, peg$c52 = peg$otherExpectation('identifier'), peg$c53 = /^[a-zA-Z]/, peg$c54 = peg$classExpectation([
251
255
  ['a', 'z'],
252
256
  ['A', 'Z'],
253
- ], false, false), peg$c44 = /^[a-zA-Z0-9_\-]/, peg$c45 = peg$classExpectation([['a', 'z'], ['A', 'Z'], ['0', '9'], '_', '-'], false, false), peg$c46 = peg$otherExpectation('start-of-line'), peg$c47 = function () {
257
+ ], false, false), peg$c55 = /^[a-zA-Z0-9_\-]/, peg$c56 = peg$classExpectation([['a', 'z'], ['A', 'Z'], ['0', '9'], '_', '-'], false, false), peg$c57 = peg$otherExpectation('start-of-line'), peg$c58 = function () {
254
258
  return location().start.column === 1;
255
- }, peg$c48 = peg$otherExpectation('whitespace'), peg$currPos = 0, peg$savedPos = 0, peg$posDetailsCache = [{ line: 1, column: 1 }], peg$maxFailPos = 0, peg$maxFailExpected = [], peg$silentFails = 0, peg$result;
259
+ }, peg$c59 = peg$otherExpectation('whitespace'), peg$currPos = 0, peg$savedPos = 0, peg$posDetailsCache = [{ line: 1, column: 1 }], peg$maxFailPos = 0, peg$maxFailExpected = [], peg$silentFails = 0, peg$result;
256
260
  if ('startRule' in options) {
257
261
  if (!(options.startRule in peg$startRuleFunctions)) {
258
262
  throw new Error('Can\'t start parsing from rule "' + options.startRule + '".');
@@ -386,19 +390,22 @@ function peg$parse(input, options) {
386
390
  var s0;
387
391
  s0 = peg$parseattr_nested_angle();
388
392
  if (s0 === peg$FAILED) {
389
- s0 = peg$parsedelim_begin();
393
+ s0 = peg$parsequoted_value();
390
394
  if (s0 === peg$FAILED) {
391
- s0 = peg$parsedelim_end();
395
+ s0 = peg$parsedelim_begin();
392
396
  if (s0 === peg$FAILED) {
393
- s0 = peg$parseparagraph_directive();
397
+ s0 = peg$parsedelim_end();
394
398
  if (s0 === peg$FAILED) {
395
- s0 = peg$parsecontinuation_attr();
399
+ s0 = peg$parseparagraph_directive();
396
400
  if (s0 === peg$FAILED) {
397
- s0 = peg$parsecontinuation_marker();
401
+ s0 = peg$parsecontinuation_attr();
398
402
  if (s0 === peg$FAILED) {
399
- s0 = peg$parseblank_line_marker();
403
+ s0 = peg$parsecontinuation_marker();
400
404
  if (s0 === peg$FAILED) {
401
- s0 = peg$parseline_marker();
405
+ s0 = peg$parseblank_line_marker();
406
+ if (s0 === peg$FAILED) {
407
+ s0 = peg$parseline_marker();
408
+ }
402
409
  }
403
410
  }
404
411
  }
@@ -409,115 +416,373 @@ function peg$parse(input, options) {
409
416
  return s0;
410
417
  }
411
418
  function peg$parseattr_nested_angle() {
412
- var s0, s1, s2, s3, s4, s5, s6, s7;
419
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8;
413
420
  s0 = peg$currPos;
414
- if (input.charCodeAt(peg$currPos) === 58) {
415
- s1 = peg$c1;
416
- peg$currPos++;
421
+ peg$savedPos = peg$currPos;
422
+ s1 = peg$c1();
423
+ if (s1) {
424
+ s1 = void 0;
417
425
  }
418
426
  else {
419
427
  s1 = peg$FAILED;
420
- if (peg$silentFails === 0) {
421
- peg$fail(peg$c2);
428
+ }
429
+ if (s1 !== peg$FAILED) {
430
+ if (input.charCodeAt(peg$currPos) === 58) {
431
+ s2 = peg$c2;
432
+ peg$currPos++;
433
+ }
434
+ else {
435
+ s2 = peg$FAILED;
436
+ if (peg$silentFails === 0) {
437
+ peg$fail(peg$c3);
438
+ }
439
+ }
440
+ if (s2 !== peg$FAILED) {
441
+ s3 = peg$parseidentifier();
442
+ if (s3 !== peg$FAILED) {
443
+ if (input.charCodeAt(peg$currPos) === 60) {
444
+ s4 = peg$c4;
445
+ peg$currPos++;
446
+ }
447
+ else {
448
+ s4 = peg$FAILED;
449
+ if (peg$silentFails === 0) {
450
+ peg$fail(peg$c5);
451
+ }
452
+ }
453
+ if (s4 !== peg$FAILED) {
454
+ s5 = peg$currPos;
455
+ peg$silentFails++;
456
+ if (input.charCodeAt(peg$currPos) === 60) {
457
+ s6 = peg$c4;
458
+ peg$currPos++;
459
+ }
460
+ else {
461
+ s6 = peg$FAILED;
462
+ if (peg$silentFails === 0) {
463
+ peg$fail(peg$c5);
464
+ }
465
+ }
466
+ peg$silentFails--;
467
+ if (s6 === peg$FAILED) {
468
+ s5 = void 0;
469
+ }
470
+ else {
471
+ peg$currPos = s5;
472
+ s5 = peg$FAILED;
473
+ }
474
+ if (s5 !== peg$FAILED) {
475
+ s6 = peg$currPos;
476
+ s7 = [];
477
+ if (peg$c6.test(input.charAt(peg$currPos))) {
478
+ s8 = input.charAt(peg$currPos);
479
+ peg$currPos++;
480
+ }
481
+ else {
482
+ s8 = peg$FAILED;
483
+ if (peg$silentFails === 0) {
484
+ peg$fail(peg$c7);
485
+ }
486
+ }
487
+ while (s8 !== peg$FAILED) {
488
+ s7.push(s8);
489
+ if (peg$c6.test(input.charAt(peg$currPos))) {
490
+ s8 = input.charAt(peg$currPos);
491
+ peg$currPos++;
492
+ }
493
+ else {
494
+ s8 = peg$FAILED;
495
+ if (peg$silentFails === 0) {
496
+ peg$fail(peg$c7);
497
+ }
498
+ }
499
+ }
500
+ if (s7 !== peg$FAILED) {
501
+ s6 = input.substring(s6, peg$currPos);
502
+ }
503
+ else {
504
+ s6 = s7;
505
+ }
506
+ if (s6 !== peg$FAILED) {
507
+ if (input.charCodeAt(peg$currPos) === 62) {
508
+ s7 = peg$c8;
509
+ peg$currPos++;
510
+ }
511
+ else {
512
+ s7 = peg$FAILED;
513
+ if (peg$silentFails === 0) {
514
+ peg$fail(peg$c9);
515
+ }
516
+ }
517
+ if (s7 !== peg$FAILED) {
518
+ peg$savedPos = s0;
519
+ s1 = peg$c10(s3, s6);
520
+ s0 = s1;
521
+ }
522
+ else {
523
+ peg$currPos = s0;
524
+ s0 = peg$FAILED;
525
+ }
526
+ }
527
+ else {
528
+ peg$currPos = s0;
529
+ s0 = peg$FAILED;
530
+ }
531
+ }
532
+ else {
533
+ peg$currPos = s0;
534
+ s0 = peg$FAILED;
535
+ }
536
+ }
537
+ else {
538
+ peg$currPos = s0;
539
+ s0 = peg$FAILED;
540
+ }
541
+ }
542
+ else {
543
+ peg$currPos = s0;
544
+ s0 = peg$FAILED;
545
+ }
422
546
  }
547
+ else {
548
+ peg$currPos = s0;
549
+ s0 = peg$FAILED;
550
+ }
551
+ }
552
+ else {
553
+ peg$currPos = s0;
554
+ s0 = peg$FAILED;
555
+ }
556
+ return s0;
557
+ }
558
+ function peg$parsequoted_value() {
559
+ var s0, s1, s2, s3, s4, s5, s6;
560
+ s0 = peg$currPos;
561
+ s1 = peg$currPos;
562
+ peg$silentFails++;
563
+ s2 = peg$parsesol();
564
+ peg$silentFails--;
565
+ if (s2 === peg$FAILED) {
566
+ s1 = void 0;
567
+ }
568
+ else {
569
+ peg$currPos = s1;
570
+ s1 = peg$FAILED;
423
571
  }
424
572
  if (s1 !== peg$FAILED) {
425
- s2 = peg$parseidentifier();
573
+ peg$savedPos = peg$currPos;
574
+ s2 = peg$c11();
575
+ if (s2) {
576
+ s2 = void 0;
577
+ }
578
+ else {
579
+ s2 = peg$FAILED;
580
+ }
426
581
  if (s2 !== peg$FAILED) {
427
- if (input.charCodeAt(peg$currPos) === 60) {
428
- s3 = peg$c3;
582
+ s3 = peg$currPos;
583
+ if (input.charCodeAt(peg$currPos) === 39) {
584
+ s4 = peg$c12;
429
585
  peg$currPos++;
430
586
  }
431
587
  else {
432
- s3 = peg$FAILED;
588
+ s4 = peg$FAILED;
433
589
  if (peg$silentFails === 0) {
434
- peg$fail(peg$c4);
590
+ peg$fail(peg$c13);
435
591
  }
436
592
  }
437
- if (s3 !== peg$FAILED) {
438
- s4 = peg$currPos;
439
- peg$silentFails++;
440
- if (input.charCodeAt(peg$currPos) === 60) {
441
- s5 = peg$c3;
593
+ if (s4 !== peg$FAILED) {
594
+ s5 = [];
595
+ if (peg$c14.test(input.charAt(peg$currPos))) {
596
+ s6 = input.charAt(peg$currPos);
442
597
  peg$currPos++;
443
598
  }
444
599
  else {
445
- s5 = peg$FAILED;
600
+ s6 = peg$FAILED;
446
601
  if (peg$silentFails === 0) {
447
- peg$fail(peg$c4);
602
+ peg$fail(peg$c15);
603
+ }
604
+ }
605
+ while (s6 !== peg$FAILED) {
606
+ s5.push(s6);
607
+ if (peg$c14.test(input.charAt(peg$currPos))) {
608
+ s6 = input.charAt(peg$currPos);
609
+ peg$currPos++;
610
+ }
611
+ else {
612
+ s6 = peg$FAILED;
613
+ if (peg$silentFails === 0) {
614
+ peg$fail(peg$c15);
615
+ }
616
+ }
617
+ }
618
+ if (s5 !== peg$FAILED) {
619
+ if (input.charCodeAt(peg$currPos) === 39) {
620
+ s6 = peg$c12;
621
+ peg$currPos++;
622
+ }
623
+ else {
624
+ s6 = peg$FAILED;
625
+ if (peg$silentFails === 0) {
626
+ peg$fail(peg$c13);
627
+ }
628
+ }
629
+ if (s6 !== peg$FAILED) {
630
+ s4 = [s4, s5, s6];
631
+ s3 = s4;
632
+ }
633
+ else {
634
+ peg$currPos = s3;
635
+ s3 = peg$FAILED;
448
636
  }
449
637
  }
450
- peg$silentFails--;
451
- if (s5 === peg$FAILED) {
452
- s4 = void 0;
638
+ else {
639
+ peg$currPos = s3;
640
+ s3 = peg$FAILED;
641
+ }
642
+ }
643
+ else {
644
+ peg$currPos = s3;
645
+ s3 = peg$FAILED;
646
+ }
647
+ if (s3 === peg$FAILED) {
648
+ s3 = peg$currPos;
649
+ if (input.charCodeAt(peg$currPos) === 34) {
650
+ s4 = peg$c16;
651
+ peg$currPos++;
453
652
  }
454
653
  else {
455
- peg$currPos = s4;
456
654
  s4 = peg$FAILED;
655
+ if (peg$silentFails === 0) {
656
+ peg$fail(peg$c17);
657
+ }
457
658
  }
458
659
  if (s4 !== peg$FAILED) {
459
- s5 = peg$currPos;
460
- s6 = [];
461
- if (peg$c5.test(input.charAt(peg$currPos))) {
462
- s7 = input.charAt(peg$currPos);
660
+ s5 = [];
661
+ if (peg$c18.test(input.charAt(peg$currPos))) {
662
+ s6 = input.charAt(peg$currPos);
463
663
  peg$currPos++;
464
664
  }
465
665
  else {
466
- s7 = peg$FAILED;
666
+ s6 = peg$FAILED;
467
667
  if (peg$silentFails === 0) {
468
- peg$fail(peg$c6);
668
+ peg$fail(peg$c19);
469
669
  }
470
670
  }
471
- while (s7 !== peg$FAILED) {
472
- s6.push(s7);
473
- if (peg$c5.test(input.charAt(peg$currPos))) {
474
- s7 = input.charAt(peg$currPos);
671
+ while (s6 !== peg$FAILED) {
672
+ s5.push(s6);
673
+ if (peg$c18.test(input.charAt(peg$currPos))) {
674
+ s6 = input.charAt(peg$currPos);
475
675
  peg$currPos++;
476
676
  }
477
677
  else {
478
- s7 = peg$FAILED;
678
+ s6 = peg$FAILED;
479
679
  if (peg$silentFails === 0) {
480
- peg$fail(peg$c6);
680
+ peg$fail(peg$c19);
481
681
  }
482
682
  }
483
683
  }
484
- if (s6 !== peg$FAILED) {
485
- s5 = input.substring(s5, peg$currPos);
486
- }
487
- else {
488
- s5 = s6;
489
- }
490
684
  if (s5 !== peg$FAILED) {
491
- if (input.charCodeAt(peg$currPos) === 62) {
492
- s6 = peg$c7;
685
+ if (input.charCodeAt(peg$currPos) === 34) {
686
+ s6 = peg$c16;
493
687
  peg$currPos++;
494
688
  }
495
689
  else {
496
690
  s6 = peg$FAILED;
497
691
  if (peg$silentFails === 0) {
498
- peg$fail(peg$c8);
692
+ peg$fail(peg$c17);
499
693
  }
500
694
  }
501
695
  if (s6 !== peg$FAILED) {
502
- peg$savedPos = s0;
503
- s1 = peg$c9(s2, s5);
504
- s0 = s1;
696
+ s4 = [s4, s5, s6];
697
+ s3 = s4;
505
698
  }
506
699
  else {
507
- peg$currPos = s0;
508
- s0 = peg$FAILED;
700
+ peg$currPos = s3;
701
+ s3 = peg$FAILED;
509
702
  }
510
703
  }
511
704
  else {
512
- peg$currPos = s0;
513
- s0 = peg$FAILED;
705
+ peg$currPos = s3;
706
+ s3 = peg$FAILED;
514
707
  }
515
708
  }
516
709
  else {
517
- peg$currPos = s0;
518
- s0 = peg$FAILED;
710
+ peg$currPos = s3;
711
+ s3 = peg$FAILED;
712
+ }
713
+ if (s3 === peg$FAILED) {
714
+ s3 = peg$currPos;
715
+ if (input.charCodeAt(peg$currPos) === 65378) {
716
+ s4 = peg$c20;
717
+ peg$currPos++;
718
+ }
719
+ else {
720
+ s4 = peg$FAILED;
721
+ if (peg$silentFails === 0) {
722
+ peg$fail(peg$c21);
723
+ }
724
+ }
725
+ if (s4 !== peg$FAILED) {
726
+ s5 = [];
727
+ if (peg$c22.test(input.charAt(peg$currPos))) {
728
+ s6 = input.charAt(peg$currPos);
729
+ peg$currPos++;
730
+ }
731
+ else {
732
+ s6 = peg$FAILED;
733
+ if (peg$silentFails === 0) {
734
+ peg$fail(peg$c23);
735
+ }
736
+ }
737
+ while (s6 !== peg$FAILED) {
738
+ s5.push(s6);
739
+ if (peg$c22.test(input.charAt(peg$currPos))) {
740
+ s6 = input.charAt(peg$currPos);
741
+ peg$currPos++;
742
+ }
743
+ else {
744
+ s6 = peg$FAILED;
745
+ if (peg$silentFails === 0) {
746
+ peg$fail(peg$c23);
747
+ }
748
+ }
749
+ }
750
+ if (s5 !== peg$FAILED) {
751
+ if (input.charCodeAt(peg$currPos) === 65379) {
752
+ s6 = peg$c24;
753
+ peg$currPos++;
754
+ }
755
+ else {
756
+ s6 = peg$FAILED;
757
+ if (peg$silentFails === 0) {
758
+ peg$fail(peg$c25);
759
+ }
760
+ }
761
+ if (s6 !== peg$FAILED) {
762
+ s4 = [s4, s5, s6];
763
+ s3 = s4;
764
+ }
765
+ else {
766
+ peg$currPos = s3;
767
+ s3 = peg$FAILED;
768
+ }
769
+ }
770
+ else {
771
+ peg$currPos = s3;
772
+ s3 = peg$FAILED;
773
+ }
774
+ }
775
+ else {
776
+ peg$currPos = s3;
777
+ s3 = peg$FAILED;
778
+ }
519
779
  }
520
780
  }
781
+ if (s3 !== peg$FAILED) {
782
+ peg$savedPos = s0;
783
+ s1 = peg$c26();
784
+ s0 = s1;
785
+ }
521
786
  else {
522
787
  peg$currPos = s0;
523
788
  s0 = peg$FAILED;
@@ -539,14 +804,14 @@ function peg$parse(input, options) {
539
804
  s0 = peg$currPos;
540
805
  s1 = peg$parsesol();
541
806
  if (s1 !== peg$FAILED) {
542
- if (input.substr(peg$currPos, 6) === peg$c10) {
543
- s2 = peg$c10;
807
+ if (input.substr(peg$currPos, 6) === peg$c27) {
808
+ s2 = peg$c27;
544
809
  peg$currPos += 6;
545
810
  }
546
811
  else {
547
812
  s2 = peg$FAILED;
548
813
  if (peg$silentFails === 0) {
549
- peg$fail(peg$c11);
814
+ peg$fail(peg$c28);
550
815
  }
551
816
  }
552
817
  if (s2 !== peg$FAILED) {
@@ -555,7 +820,7 @@ function peg$parse(input, options) {
555
820
  s4 = peg$parseidentifier();
556
821
  if (s4 !== peg$FAILED) {
557
822
  peg$savedPos = s0;
558
- s1 = peg$c12(s4);
823
+ s1 = peg$c29(s4);
559
824
  s0 = s1;
560
825
  }
561
826
  else {
@@ -584,14 +849,14 @@ function peg$parse(input, options) {
584
849
  s0 = peg$currPos;
585
850
  s1 = peg$parsesol();
586
851
  if (s1 !== peg$FAILED) {
587
- if (input.substr(peg$currPos, 4) === peg$c13) {
588
- s2 = peg$c13;
852
+ if (input.substr(peg$currPos, 4) === peg$c30) {
853
+ s2 = peg$c30;
589
854
  peg$currPos += 4;
590
855
  }
591
856
  else {
592
857
  s2 = peg$FAILED;
593
858
  if (peg$silentFails === 0) {
594
- peg$fail(peg$c14);
859
+ peg$fail(peg$c31);
595
860
  }
596
861
  }
597
862
  if (s2 !== peg$FAILED) {
@@ -600,7 +865,7 @@ function peg$parse(input, options) {
600
865
  s4 = peg$parseidentifier();
601
866
  if (s4 !== peg$FAILED) {
602
867
  peg$savedPos = s0;
603
- s1 = peg$c15(s4);
868
+ s1 = peg$c32(s4);
604
869
  s0 = s1;
605
870
  }
606
871
  else {
@@ -629,14 +894,14 @@ function peg$parse(input, options) {
629
894
  s0 = peg$currPos;
630
895
  s1 = peg$parsesol();
631
896
  if (s1 !== peg$FAILED) {
632
- if (input.substr(peg$currPos, 4) === peg$c16) {
633
- s2 = peg$c16;
897
+ if (input.substr(peg$currPos, 4) === peg$c33) {
898
+ s2 = peg$c33;
634
899
  peg$currPos += 4;
635
900
  }
636
901
  else {
637
902
  s2 = peg$FAILED;
638
903
  if (peg$silentFails === 0) {
639
- peg$fail(peg$c17);
904
+ peg$fail(peg$c34);
640
905
  }
641
906
  }
642
907
  if (s2 !== peg$FAILED) {
@@ -645,7 +910,7 @@ function peg$parse(input, options) {
645
910
  s4 = peg$parseidentifier();
646
911
  if (s4 !== peg$FAILED) {
647
912
  peg$savedPos = s0;
648
- s1 = peg$c18();
913
+ s1 = peg$c35();
649
914
  s0 = s1;
650
915
  }
651
916
  else {
@@ -677,24 +942,24 @@ function peg$parse(input, options) {
677
942
  s2 = peg$parse__();
678
943
  if (s2 !== peg$FAILED) {
679
944
  if (input.charCodeAt(peg$currPos) === 58) {
680
- s3 = peg$c1;
945
+ s3 = peg$c2;
681
946
  peg$currPos++;
682
947
  }
683
948
  else {
684
949
  s3 = peg$FAILED;
685
950
  if (peg$silentFails === 0) {
686
- peg$fail(peg$c2);
951
+ peg$fail(peg$c3);
687
952
  }
688
953
  }
689
954
  if (s3 !== peg$FAILED) {
690
955
  if (input.charCodeAt(peg$currPos) === 33) {
691
- s4 = peg$c19;
956
+ s4 = peg$c36;
692
957
  peg$currPos++;
693
958
  }
694
959
  else {
695
960
  s4 = peg$FAILED;
696
961
  if (peg$silentFails === 0) {
697
- peg$fail(peg$c20);
962
+ peg$fail(peg$c37);
698
963
  }
699
964
  }
700
965
  if (s4 === peg$FAILED) {
@@ -706,7 +971,7 @@ function peg$parse(input, options) {
706
971
  s6 = peg$parsevalue_delim();
707
972
  if (s6 !== peg$FAILED) {
708
973
  peg$savedPos = s0;
709
- s1 = peg$c21(s5);
974
+ s1 = peg$c38(s5);
710
975
  s0 = s1;
711
976
  }
712
977
  else {
@@ -743,79 +1008,79 @@ function peg$parse(input, options) {
743
1008
  function peg$parsevalue_delim() {
744
1009
  var s0;
745
1010
  if (input.charCodeAt(peg$currPos) === 60) {
746
- s0 = peg$c3;
1011
+ s0 = peg$c4;
747
1012
  peg$currPos++;
748
1013
  }
749
1014
  else {
750
1015
  s0 = peg$FAILED;
751
1016
  if (peg$silentFails === 0) {
752
- peg$fail(peg$c4);
1017
+ peg$fail(peg$c5);
753
1018
  }
754
1019
  }
755
1020
  if (s0 === peg$FAILED) {
756
1021
  if (input.charCodeAt(peg$currPos) === 40) {
757
- s0 = peg$c22;
1022
+ s0 = peg$c39;
758
1023
  peg$currPos++;
759
1024
  }
760
1025
  else {
761
1026
  s0 = peg$FAILED;
762
1027
  if (peg$silentFails === 0) {
763
- peg$fail(peg$c23);
1028
+ peg$fail(peg$c40);
764
1029
  }
765
1030
  }
766
1031
  if (s0 === peg$FAILED) {
767
1032
  if (input.charCodeAt(peg$currPos) === 123) {
768
- s0 = peg$c24;
1033
+ s0 = peg$c41;
769
1034
  peg$currPos++;
770
1035
  }
771
1036
  else {
772
1037
  s0 = peg$FAILED;
773
1038
  if (peg$silentFails === 0) {
774
- peg$fail(peg$c25);
1039
+ peg$fail(peg$c42);
775
1040
  }
776
1041
  }
777
1042
  if (s0 === peg$FAILED) {
778
1043
  if (input.charCodeAt(peg$currPos) === 91) {
779
- s0 = peg$c26;
1044
+ s0 = peg$c43;
780
1045
  peg$currPos++;
781
1046
  }
782
1047
  else {
783
1048
  s0 = peg$FAILED;
784
1049
  if (peg$silentFails === 0) {
785
- peg$fail(peg$c27);
1050
+ peg$fail(peg$c44);
786
1051
  }
787
1052
  }
788
1053
  if (s0 === peg$FAILED) {
789
1054
  if (input.charCodeAt(peg$currPos) === 39) {
790
- s0 = peg$c28;
1055
+ s0 = peg$c12;
791
1056
  peg$currPos++;
792
1057
  }
793
1058
  else {
794
1059
  s0 = peg$FAILED;
795
1060
  if (peg$silentFails === 0) {
796
- peg$fail(peg$c29);
1061
+ peg$fail(peg$c13);
797
1062
  }
798
1063
  }
799
1064
  if (s0 === peg$FAILED) {
800
1065
  if (input.charCodeAt(peg$currPos) === 34) {
801
- s0 = peg$c30;
1066
+ s0 = peg$c16;
802
1067
  peg$currPos++;
803
1068
  }
804
1069
  else {
805
1070
  s0 = peg$FAILED;
806
1071
  if (peg$silentFails === 0) {
807
- peg$fail(peg$c31);
1072
+ peg$fail(peg$c17);
808
1073
  }
809
1074
  }
810
1075
  if (s0 === peg$FAILED) {
811
1076
  if (input.charCodeAt(peg$currPos) === 65378) {
812
- s0 = peg$c32;
1077
+ s0 = peg$c20;
813
1078
  peg$currPos++;
814
1079
  }
815
1080
  else {
816
1081
  s0 = peg$FAILED;
817
1082
  if (peg$silentFails === 0) {
818
- peg$fail(peg$c33);
1083
+ peg$fail(peg$c21);
819
1084
  }
820
1085
  }
821
1086
  }
@@ -832,38 +1097,38 @@ function peg$parse(input, options) {
832
1097
  s1 = peg$parsesol();
833
1098
  if (s1 !== peg$FAILED) {
834
1099
  if (input.charCodeAt(peg$currPos) === 61) {
835
- s2 = peg$c34;
1100
+ s2 = peg$c45;
836
1101
  peg$currPos++;
837
1102
  }
838
1103
  else {
839
1104
  s2 = peg$FAILED;
840
1105
  if (peg$silentFails === 0) {
841
- peg$fail(peg$c35);
1106
+ peg$fail(peg$c46);
842
1107
  }
843
1108
  }
844
1109
  if (s2 !== peg$FAILED) {
845
1110
  s3 = [];
846
- if (peg$c36.test(input.charAt(peg$currPos))) {
1111
+ if (peg$c47.test(input.charAt(peg$currPos))) {
847
1112
  s4 = input.charAt(peg$currPos);
848
1113
  peg$currPos++;
849
1114
  }
850
1115
  else {
851
1116
  s4 = peg$FAILED;
852
1117
  if (peg$silentFails === 0) {
853
- peg$fail(peg$c37);
1118
+ peg$fail(peg$c48);
854
1119
  }
855
1120
  }
856
1121
  if (s4 !== peg$FAILED) {
857
1122
  while (s4 !== peg$FAILED) {
858
1123
  s3.push(s4);
859
- if (peg$c36.test(input.charAt(peg$currPos))) {
1124
+ if (peg$c47.test(input.charAt(peg$currPos))) {
860
1125
  s4 = input.charAt(peg$currPos);
861
1126
  peg$currPos++;
862
1127
  }
863
1128
  else {
864
1129
  s4 = peg$FAILED;
865
1130
  if (peg$silentFails === 0) {
866
- peg$fail(peg$c37);
1131
+ peg$fail(peg$c48);
867
1132
  }
868
1133
  }
869
1134
  }
@@ -873,7 +1138,7 @@ function peg$parse(input, options) {
873
1138
  }
874
1139
  if (s3 !== peg$FAILED) {
875
1140
  peg$savedPos = s0;
876
- s1 = peg$c18();
1141
+ s1 = peg$c35();
877
1142
  s0 = s1;
878
1143
  }
879
1144
  else {
@@ -898,43 +1163,43 @@ function peg$parse(input, options) {
898
1163
  s1 = peg$parsesol();
899
1164
  if (s1 !== peg$FAILED) {
900
1165
  s2 = [];
901
- if (peg$c36.test(input.charAt(peg$currPos))) {
1166
+ if (peg$c47.test(input.charAt(peg$currPos))) {
902
1167
  s3 = input.charAt(peg$currPos);
903
1168
  peg$currPos++;
904
1169
  }
905
1170
  else {
906
1171
  s3 = peg$FAILED;
907
1172
  if (peg$silentFails === 0) {
908
- peg$fail(peg$c37);
1173
+ peg$fail(peg$c48);
909
1174
  }
910
1175
  }
911
1176
  while (s3 !== peg$FAILED) {
912
1177
  s2.push(s3);
913
- if (peg$c36.test(input.charAt(peg$currPos))) {
1178
+ if (peg$c47.test(input.charAt(peg$currPos))) {
914
1179
  s3 = input.charAt(peg$currPos);
915
1180
  peg$currPos++;
916
1181
  }
917
1182
  else {
918
1183
  s3 = peg$FAILED;
919
1184
  if (peg$silentFails === 0) {
920
- peg$fail(peg$c37);
1185
+ peg$fail(peg$c48);
921
1186
  }
922
1187
  }
923
1188
  }
924
1189
  if (s2 !== peg$FAILED) {
925
1190
  if (input.charCodeAt(peg$currPos) === 10) {
926
- s3 = peg$c38;
1191
+ s3 = peg$c49;
927
1192
  peg$currPos++;
928
1193
  }
929
1194
  else {
930
1195
  s3 = peg$FAILED;
931
1196
  if (peg$silentFails === 0) {
932
- peg$fail(peg$c39);
1197
+ peg$fail(peg$c50);
933
1198
  }
934
1199
  }
935
1200
  if (s3 !== peg$FAILED) {
936
1201
  peg$savedPos = s0;
937
- s1 = peg$c40();
1202
+ s1 = peg$c51();
938
1203
  s0 = s1;
939
1204
  }
940
1205
  else {
@@ -970,7 +1235,7 @@ function peg$parse(input, options) {
970
1235
  }
971
1236
  if (s2 !== peg$FAILED) {
972
1237
  peg$savedPos = s0;
973
- s1 = peg$c40();
1238
+ s1 = peg$c51();
974
1239
  s0 = s1;
975
1240
  }
976
1241
  else {
@@ -989,38 +1254,38 @@ function peg$parse(input, options) {
989
1254
  peg$silentFails++;
990
1255
  s0 = peg$currPos;
991
1256
  s1 = peg$currPos;
992
- if (peg$c42.test(input.charAt(peg$currPos))) {
1257
+ if (peg$c53.test(input.charAt(peg$currPos))) {
993
1258
  s2 = input.charAt(peg$currPos);
994
1259
  peg$currPos++;
995
1260
  }
996
1261
  else {
997
1262
  s2 = peg$FAILED;
998
1263
  if (peg$silentFails === 0) {
999
- peg$fail(peg$c43);
1264
+ peg$fail(peg$c54);
1000
1265
  }
1001
1266
  }
1002
1267
  if (s2 !== peg$FAILED) {
1003
1268
  s3 = [];
1004
- if (peg$c44.test(input.charAt(peg$currPos))) {
1269
+ if (peg$c55.test(input.charAt(peg$currPos))) {
1005
1270
  s4 = input.charAt(peg$currPos);
1006
1271
  peg$currPos++;
1007
1272
  }
1008
1273
  else {
1009
1274
  s4 = peg$FAILED;
1010
1275
  if (peg$silentFails === 0) {
1011
- peg$fail(peg$c45);
1276
+ peg$fail(peg$c56);
1012
1277
  }
1013
1278
  }
1014
1279
  while (s4 !== peg$FAILED) {
1015
1280
  s3.push(s4);
1016
- if (peg$c44.test(input.charAt(peg$currPos))) {
1281
+ if (peg$c55.test(input.charAt(peg$currPos))) {
1017
1282
  s4 = input.charAt(peg$currPos);
1018
1283
  peg$currPos++;
1019
1284
  }
1020
1285
  else {
1021
1286
  s4 = peg$FAILED;
1022
1287
  if (peg$silentFails === 0) {
1023
- peg$fail(peg$c45);
1288
+ peg$fail(peg$c56);
1024
1289
  }
1025
1290
  }
1026
1291
  }
@@ -1047,7 +1312,7 @@ function peg$parse(input, options) {
1047
1312
  if (s0 === peg$FAILED) {
1048
1313
  s1 = peg$FAILED;
1049
1314
  if (peg$silentFails === 0) {
1050
- peg$fail(peg$c41);
1315
+ peg$fail(peg$c52);
1051
1316
  }
1052
1317
  }
1053
1318
  return s0;
@@ -1056,7 +1321,7 @@ function peg$parse(input, options) {
1056
1321
  var s0, s1;
1057
1322
  peg$silentFails++;
1058
1323
  peg$savedPos = peg$currPos;
1059
- s0 = peg$c47();
1324
+ s0 = peg$c58();
1060
1325
  if (s0) {
1061
1326
  s0 = void 0;
1062
1327
  }
@@ -1067,7 +1332,7 @@ function peg$parse(input, options) {
1067
1332
  if (s0 === peg$FAILED) {
1068
1333
  s1 = peg$FAILED;
1069
1334
  if (peg$silentFails === 0) {
1070
- peg$fail(peg$c46);
1335
+ peg$fail(peg$c57);
1071
1336
  }
1072
1337
  }
1073
1338
  return s0;
@@ -1076,27 +1341,27 @@ function peg$parse(input, options) {
1076
1341
  var s0, s1;
1077
1342
  peg$silentFails++;
1078
1343
  s0 = [];
1079
- if (peg$c36.test(input.charAt(peg$currPos))) {
1344
+ if (peg$c47.test(input.charAt(peg$currPos))) {
1080
1345
  s1 = input.charAt(peg$currPos);
1081
1346
  peg$currPos++;
1082
1347
  }
1083
1348
  else {
1084
1349
  s1 = peg$FAILED;
1085
1350
  if (peg$silentFails === 0) {
1086
- peg$fail(peg$c37);
1351
+ peg$fail(peg$c48);
1087
1352
  }
1088
1353
  }
1089
1354
  if (s1 !== peg$FAILED) {
1090
1355
  while (s1 !== peg$FAILED) {
1091
1356
  s0.push(s1);
1092
- if (peg$c36.test(input.charAt(peg$currPos))) {
1357
+ if (peg$c47.test(input.charAt(peg$currPos))) {
1093
1358
  s1 = input.charAt(peg$currPos);
1094
1359
  peg$currPos++;
1095
1360
  }
1096
1361
  else {
1097
1362
  s1 = peg$FAILED;
1098
1363
  if (peg$silentFails === 0) {
1099
- peg$fail(peg$c37);
1364
+ peg$fail(peg$c48);
1100
1365
  }
1101
1366
  }
1102
1367
  }
@@ -1108,7 +1373,7 @@ function peg$parse(input, options) {
1108
1373
  if (s0 === peg$FAILED) {
1109
1374
  s1 = peg$FAILED;
1110
1375
  if (peg$silentFails === 0) {
1111
- peg$fail(peg$c48);
1376
+ peg$fail(peg$c59);
1112
1377
  }
1113
1378
  }
1114
1379
  return s0;