@superblocksteam/library-shared 2.0.175-next.0 → 2.0.176-next.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"find-string-interpolation.d.ts","sourceRoot":"","sources":["../../src/pegs/find-string-interpolation.js"],"names":[],"mappings":"AA26BA,8CAEE;AAx6BF;IAwCE,uDAoGC;IA3ID,oEAMC;IAJC,cAAwB;IACxB,WAAkB;IAClB,cAAwB;IAI1B,6BA6BC;CAuGF;AAED,0DAqxBC"}
1
+ {"version":3,"file":"find-string-interpolation.d.ts","sourceRoot":"","sources":["../../src/pegs/find-string-interpolation.js"],"names":[],"mappings":"AA4qCA,8CAEE;AAzqCF;IAwCE,uDA2GC;IAlJD,oEAMC;IAJC,cAAwB;IACxB,WAAkB;IAClB,cAAwB;IAI1B,6BA6BC;CA8GF;AAED,0DA+gCC"}
@@ -1,4 +1,4 @@
1
- // @generated by Peggy 5.1.1.
1
+ // @generated by Peggy 5.0.6.
2
2
  //
3
3
  // https://peggyjs.org/
4
4
  class peg$SyntaxError extends SyntaxError {
@@ -53,9 +53,10 @@ class peg$SyntaxError extends SyntaxError {
53
53
  }
54
54
  return s;
55
55
  }
56
- function escape(s, special) {
56
+ function literalEscape(s) {
57
57
  return unicodeEscape(s
58
- .replace(special, "\\$&")
58
+ .replace(/\\/g, "\\\\")
59
+ .replace(/"/g, "\\\"")
59
60
  .replace(/\0/g, "\\0")
60
61
  .replace(/\t/g, "\\t")
61
62
  .replace(/\n/g, "\\n")
@@ -63,11 +64,18 @@ class peg$SyntaxError extends SyntaxError {
63
64
  .replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
64
65
  .replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
65
66
  }
66
- function literalEscape(s) {
67
- return escape(s, /[\\"]/g);
68
- }
69
67
  function classEscape(s) {
70
- return escape(s, /[\\\]^-]/g);
68
+ return unicodeEscape(s
69
+ .replace(/\\/g, "\\\\")
70
+ .replace(/\]/g, "\\]")
71
+ .replace(/\^/g, "\\^")
72
+ .replace(/-/g, "\\-")
73
+ .replace(/\0/g, "\\0")
74
+ .replace(/\t/g, "\\t")
75
+ .replace(/\n/g, "\\n")
76
+ .replace(/\r/g, "\\r")
77
+ .replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
78
+ .replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
71
79
  }
72
80
  const DESCRIBE_EXPECTATION_FNS = {
73
81
  literal(expectation) {
@@ -136,6 +144,9 @@ function peg$parse(input, options) {
136
144
  const peg$c3 = "`";
137
145
  const peg$c4 = "${";
138
146
  const peg$c5 = "}";
147
+ const peg$r0 = /^["]/;
148
+ const peg$r1 = /^[']/;
149
+ const peg$r2 = /^[`]/;
139
150
  const peg$e0 = peg$literalExpectation("\"", false);
140
151
  const peg$e1 = peg$classExpectation(["\""], false, false, false);
141
152
  const peg$e2 = peg$anyExpectation();
@@ -204,7 +215,6 @@ function peg$parse(input, options) {
204
215
  let peg$maxFailExpected = options.peg$maxFailExpected || [];
205
216
  let peg$silentFails = options.peg$silentFails | 0;
206
217
  let peg$result;
207
- let peg$charCode;
208
218
  if (options.startRule) {
209
219
  if (!(options.startRule in peg$startRuleFunctions)) {
210
220
  throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
@@ -335,7 +345,18 @@ function peg$parse(input, options) {
335
345
  function peg$parsestart() {
336
346
  let s0, s1;
337
347
  s0 = [];
338
- for (;;) {
348
+ s1 = peg$parsequoted_string();
349
+ if (s1 === peg$FAILED) {
350
+ s1 = peg$parsewrapped_template();
351
+ if (s1 === peg$FAILED) {
352
+ s1 = peg$parsebare_template();
353
+ if (s1 === peg$FAILED) {
354
+ s1 = peg$parsetext();
355
+ }
356
+ }
357
+ }
358
+ while (s1 !== peg$FAILED) {
359
+ s0.push(s1);
339
360
  s1 = peg$parsequoted_string();
340
361
  if (s1 === peg$FAILED) {
341
362
  s1 = peg$parsewrapped_template();
@@ -346,10 +367,6 @@ function peg$parse(input, options) {
346
367
  }
347
368
  }
348
369
  }
349
- if (s1 === peg$FAILED) {
350
- break;
351
- }
352
- s0.push(s1);
353
370
  }
354
371
  return s0;
355
372
  }
@@ -370,14 +387,63 @@ function peg$parse(input, options) {
370
387
  if (s2 !== peg$FAILED) {
371
388
  s3 = peg$currPos;
372
389
  s4 = [];
373
- for (;;) {
390
+ s5 = peg$parseescaped_char();
391
+ if (s5 === peg$FAILED) {
392
+ s5 = peg$currPos;
393
+ s6 = peg$currPos;
394
+ peg$silentFails++;
395
+ s7 = input.charAt(peg$currPos);
396
+ if (peg$r0.test(s7)) {
397
+ peg$currPos++;
398
+ }
399
+ else {
400
+ s7 = peg$FAILED;
401
+ if (peg$silentFails === 0) {
402
+ peg$fail(peg$e1);
403
+ }
404
+ }
405
+ peg$silentFails--;
406
+ if (s7 === peg$FAILED) {
407
+ s6 = undefined;
408
+ }
409
+ else {
410
+ peg$currPos = s6;
411
+ s6 = peg$FAILED;
412
+ }
413
+ if (s6 !== peg$FAILED) {
414
+ if (input.length > peg$currPos) {
415
+ s7 = input.charAt(peg$currPos);
416
+ peg$currPos++;
417
+ }
418
+ else {
419
+ s7 = peg$FAILED;
420
+ if (peg$silentFails === 0) {
421
+ peg$fail(peg$e2);
422
+ }
423
+ }
424
+ if (s7 !== peg$FAILED) {
425
+ s6 = [s6, s7];
426
+ s5 = s6;
427
+ }
428
+ else {
429
+ peg$currPos = s5;
430
+ s5 = peg$FAILED;
431
+ }
432
+ }
433
+ else {
434
+ peg$currPos = s5;
435
+ s5 = peg$FAILED;
436
+ }
437
+ }
438
+ while (s5 !== peg$FAILED) {
439
+ s4.push(s5);
374
440
  s5 = peg$parseescaped_char();
375
441
  if (s5 === peg$FAILED) {
376
442
  s5 = peg$currPos;
377
443
  s6 = peg$currPos;
378
444
  peg$silentFails++;
379
445
  s7 = input.charAt(peg$currPos);
380
- if ((peg$charCode = s7.charCodeAt(0), peg$charCode === 34)) {
446
+ if (peg$r0.test(s7)) {
381
447
  peg$currPos++;
382
448
  }
383
449
  else {
@@ -419,10 +485,6 @@ function peg$parse(input, options) {
419
485
  s5 = peg$FAILED;
420
486
  }
421
487
  }
422
- if (s5 === peg$FAILED) {
423
- break;
424
- }
425
- s4.push(s5);
426
488
  }
427
489
  s3 = input.substring(s3, peg$currPos);
428
490
  if (input.charCodeAt(peg$currPos) === 34) {
@@ -463,14 +525,63 @@ function peg$parse(input, options) {
463
525
  if (s2 !== peg$FAILED) {
464
526
  s3 = peg$currPos;
465
527
  s4 = [];
466
- for (;;) {
528
+ s5 = peg$parseescaped_char();
529
+ if (s5 === peg$FAILED) {
530
+ s5 = peg$currPos;
531
+ s6 = peg$currPos;
532
+ peg$silentFails++;
533
+ s7 = input.charAt(peg$currPos);
534
+ if (peg$r1.test(s7)) {
535
+ peg$currPos++;
536
+ }
537
+ else {
538
+ s7 = peg$FAILED;
539
+ if (peg$silentFails === 0) {
540
+ peg$fail(peg$e4);
541
+ }
542
+ }
543
+ peg$silentFails--;
544
+ if (s7 === peg$FAILED) {
545
+ s6 = undefined;
546
+ }
547
+ else {
548
+ peg$currPos = s6;
549
+ s6 = peg$FAILED;
550
+ }
551
+ if (s6 !== peg$FAILED) {
552
+ if (input.length > peg$currPos) {
553
+ s7 = input.charAt(peg$currPos);
554
+ peg$currPos++;
555
+ }
556
+ else {
557
+ s7 = peg$FAILED;
558
+ if (peg$silentFails === 0) {
559
+ peg$fail(peg$e2);
560
+ }
561
+ }
562
+ if (s7 !== peg$FAILED) {
563
+ s6 = [s6, s7];
564
+ s5 = s6;
565
+ }
566
+ else {
567
+ peg$currPos = s5;
568
+ s5 = peg$FAILED;
569
+ }
570
+ }
571
+ else {
572
+ peg$currPos = s5;
573
+ s5 = peg$FAILED;
574
+ }
575
+ }
576
+ while (s5 !== peg$FAILED) {
577
+ s4.push(s5);
467
578
  s5 = peg$parseescaped_char();
468
579
  if (s5 === peg$FAILED) {
469
580
  s5 = peg$currPos;
470
581
  s6 = peg$currPos;
471
582
  peg$silentFails++;
472
583
  s7 = input.charAt(peg$currPos);
473
- if ((peg$charCode = s7.charCodeAt(0), peg$charCode === 39)) {
584
+ if (peg$r1.test(s7)) {
474
585
  peg$currPos++;
475
586
  }
476
587
  else {
@@ -512,10 +623,6 @@ function peg$parse(input, options) {
512
623
  s5 = peg$FAILED;
513
624
  }
514
625
  }
515
- if (s5 === peg$FAILED) {
516
- break;
517
- }
518
- s4.push(s5);
519
626
  }
520
627
  s3 = input.substring(s3, peg$currPos);
521
628
  if (input.charCodeAt(peg$currPos) === 39) {
@@ -604,12 +711,58 @@ function peg$parse(input, options) {
604
711
  if (s1 !== peg$FAILED) {
605
712
  s2 = peg$currPos;
606
713
  s3 = [];
607
- for (;;) {
714
+ s4 = peg$currPos;
715
+ s5 = peg$currPos;
716
+ peg$silentFails++;
717
+ s6 = input.charAt(peg$currPos);
718
+ if (peg$r2.test(s6)) {
719
+ peg$currPos++;
720
+ }
721
+ else {
722
+ s6 = peg$FAILED;
723
+ if (peg$silentFails === 0) {
724
+ peg$fail(peg$e7);
725
+ }
726
+ }
727
+ peg$silentFails--;
728
+ if (s6 === peg$FAILED) {
729
+ s5 = undefined;
730
+ }
731
+ else {
732
+ peg$currPos = s5;
733
+ s5 = peg$FAILED;
734
+ }
735
+ if (s5 !== peg$FAILED) {
736
+ if (input.length > peg$currPos) {
737
+ s6 = input.charAt(peg$currPos);
738
+ peg$currPos++;
739
+ }
740
+ else {
741
+ s6 = peg$FAILED;
742
+ if (peg$silentFails === 0) {
743
+ peg$fail(peg$e2);
744
+ }
745
+ }
746
+ if (s6 !== peg$FAILED) {
747
+ s5 = [s5, s6];
748
+ s4 = s5;
749
+ }
750
+ else {
751
+ peg$currPos = s4;
752
+ s4 = peg$FAILED;
753
+ }
754
+ }
755
+ else {
756
+ peg$currPos = s4;
757
+ s4 = peg$FAILED;
758
+ }
759
+ while (s4 !== peg$FAILED) {
760
+ s3.push(s4);
608
761
  s4 = peg$currPos;
609
762
  s5 = peg$currPos;
610
763
  peg$silentFails++;
611
764
  s6 = input.charAt(peg$currPos);
612
- if ((peg$charCode = s6.charCodeAt(0), peg$charCode === 96)) {
765
+ if (peg$r2.test(s6)) {
613
766
  peg$currPos++;
614
767
  }
615
768
  else {
@@ -650,10 +803,6 @@ function peg$parse(input, options) {
650
803
  peg$currPos = s4;
651
804
  s4 = peg$FAILED;
652
805
  }
653
- if (s4 === peg$FAILED) {
654
- break;
655
- }
656
- s3.push(s4);
657
806
  }
658
807
  s2 = input.substring(s2, peg$currPos);
659
808
  if (input.charCodeAt(peg$currPos) === 96) {
@@ -708,7 +857,53 @@ function peg$parse(input, options) {
708
857
  if (s1 !== peg$FAILED) {
709
858
  s2 = peg$currPos;
710
859
  s3 = [];
711
- for (;;) {
860
+ s4 = peg$currPos;
861
+ s5 = peg$currPos;
862
+ peg$silentFails++;
863
+ if (input.charCodeAt(peg$currPos) === 125) {
864
+ s6 = peg$c5;
865
+ peg$currPos++;
866
+ }
867
+ else {
868
+ s6 = peg$FAILED;
869
+ if (peg$silentFails === 0) {
870
+ peg$fail(peg$e9);
871
+ }
872
+ }
873
+ peg$silentFails--;
874
+ if (s6 === peg$FAILED) {
875
+ s5 = undefined;
876
+ }
877
+ else {
878
+ peg$currPos = s5;
879
+ s5 = peg$FAILED;
880
+ }
881
+ if (s5 !== peg$FAILED) {
882
+ if (input.length > peg$currPos) {
883
+ s6 = input.charAt(peg$currPos);
884
+ peg$currPos++;
885
+ }
886
+ else {
887
+ s6 = peg$FAILED;
888
+ if (peg$silentFails === 0) {
889
+ peg$fail(peg$e2);
890
+ }
891
+ }
892
+ if (s6 !== peg$FAILED) {
893
+ s5 = [s5, s6];
894
+ s4 = s5;
895
+ }
896
+ else {
897
+ peg$currPos = s4;
898
+ s4 = peg$FAILED;
899
+ }
900
+ }
901
+ else {
902
+ peg$currPos = s4;
903
+ s4 = peg$FAILED;
904
+ }
905
+ while (s4 !== peg$FAILED) {
906
+ s3.push(s4);
712
907
  s4 = peg$currPos;
713
908
  s5 = peg$currPos;
714
909
  peg$silentFails++;
@@ -754,10 +949,6 @@ function peg$parse(input, options) {
754
949
  peg$currPos = s4;
755
950
  s4 = peg$FAILED;
756
951
  }
757
- if (s4 === peg$FAILED) {
758
- break;
759
- }
760
- s3.push(s4);
761
952
  }
762
953
  s2 = input.substring(s2, peg$currPos);
763
954
  if (input.charCodeAt(peg$currPos) === 125) {
@@ -790,96 +981,217 @@ function peg$parse(input, options) {
790
981
  s0 = peg$currPos;
791
982
  s1 = peg$currPos;
792
983
  s2 = [];
793
- for (;;) {
794
- s3 = peg$currPos;
795
- s4 = peg$currPos;
984
+ s3 = peg$currPos;
985
+ s4 = peg$currPos;
986
+ peg$silentFails++;
987
+ if (input.charCodeAt(peg$currPos) === 34) {
988
+ s5 = peg$c0;
989
+ peg$currPos++;
990
+ }
991
+ else {
992
+ s5 = peg$FAILED;
993
+ if (peg$silentFails === 0) {
994
+ peg$fail(peg$e0);
995
+ }
996
+ }
997
+ peg$silentFails--;
998
+ if (s5 === peg$FAILED) {
999
+ s4 = undefined;
1000
+ }
1001
+ else {
1002
+ peg$currPos = s4;
1003
+ s4 = peg$FAILED;
1004
+ }
1005
+ if (s4 !== peg$FAILED) {
1006
+ s5 = peg$currPos;
796
1007
  peg$silentFails++;
797
- if (input.charCodeAt(peg$currPos) === 34) {
798
- s5 = peg$c0;
1008
+ if (input.charCodeAt(peg$currPos) === 39) {
1009
+ s6 = peg$c1;
799
1010
  peg$currPos++;
800
1011
  }
801
1012
  else {
802
- s5 = peg$FAILED;
1013
+ s6 = peg$FAILED;
803
1014
  if (peg$silentFails === 0) {
804
- peg$fail(peg$e0);
1015
+ peg$fail(peg$e3);
805
1016
  }
806
1017
  }
807
1018
  peg$silentFails--;
808
- if (s5 === peg$FAILED) {
809
- s4 = undefined;
1019
+ if (s6 === peg$FAILED) {
1020
+ s5 = undefined;
810
1021
  }
811
1022
  else {
812
- peg$currPos = s4;
813
- s4 = peg$FAILED;
1023
+ peg$currPos = s5;
1024
+ s5 = peg$FAILED;
814
1025
  }
815
- if (s4 !== peg$FAILED) {
816
- s5 = peg$currPos;
1026
+ if (s5 !== peg$FAILED) {
1027
+ s6 = peg$currPos;
817
1028
  peg$silentFails++;
818
- if (input.charCodeAt(peg$currPos) === 39) {
819
- s6 = peg$c1;
1029
+ if (input.charCodeAt(peg$currPos) === 96) {
1030
+ s7 = peg$c3;
820
1031
  peg$currPos++;
821
1032
  }
822
1033
  else {
823
- s6 = peg$FAILED;
1034
+ s7 = peg$FAILED;
824
1035
  if (peg$silentFails === 0) {
825
- peg$fail(peg$e3);
1036
+ peg$fail(peg$e6);
826
1037
  }
827
1038
  }
828
1039
  peg$silentFails--;
829
- if (s6 === peg$FAILED) {
830
- s5 = undefined;
1040
+ if (s7 === peg$FAILED) {
1041
+ s6 = undefined;
1042
+ }
1043
+ else {
1044
+ peg$currPos = s6;
1045
+ s6 = peg$FAILED;
1046
+ }
1047
+ if (s6 !== peg$FAILED) {
1048
+ s7 = peg$currPos;
1049
+ peg$silentFails++;
1050
+ s8 = peg$parsetemplate_body();
1051
+ peg$silentFails--;
1052
+ if (s8 === peg$FAILED) {
1053
+ s7 = undefined;
1054
+ }
1055
+ else {
1056
+ peg$currPos = s7;
1057
+ s7 = peg$FAILED;
1058
+ }
1059
+ if (s7 !== peg$FAILED) {
1060
+ if (input.length > peg$currPos) {
1061
+ s8 = input.charAt(peg$currPos);
1062
+ peg$currPos++;
1063
+ }
1064
+ else {
1065
+ s8 = peg$FAILED;
1066
+ if (peg$silentFails === 0) {
1067
+ peg$fail(peg$e2);
1068
+ }
1069
+ }
1070
+ if (s8 !== peg$FAILED) {
1071
+ s4 = [s4, s5, s6, s7, s8];
1072
+ s3 = s4;
1073
+ }
1074
+ else {
1075
+ peg$currPos = s3;
1076
+ s3 = peg$FAILED;
1077
+ }
1078
+ }
1079
+ else {
1080
+ peg$currPos = s3;
1081
+ s3 = peg$FAILED;
1082
+ }
1083
+ }
1084
+ else {
1085
+ peg$currPos = s3;
1086
+ s3 = peg$FAILED;
1087
+ }
1088
+ }
1089
+ else {
1090
+ peg$currPos = s3;
1091
+ s3 = peg$FAILED;
1092
+ }
1093
+ }
1094
+ else {
1095
+ peg$currPos = s3;
1096
+ s3 = peg$FAILED;
1097
+ }
1098
+ if (s3 !== peg$FAILED) {
1099
+ while (s3 !== peg$FAILED) {
1100
+ s2.push(s3);
1101
+ s3 = peg$currPos;
1102
+ s4 = peg$currPos;
1103
+ peg$silentFails++;
1104
+ if (input.charCodeAt(peg$currPos) === 34) {
1105
+ s5 = peg$c0;
1106
+ peg$currPos++;
831
1107
  }
832
1108
  else {
833
- peg$currPos = s5;
834
1109
  s5 = peg$FAILED;
1110
+ if (peg$silentFails === 0) {
1111
+ peg$fail(peg$e0);
1112
+ }
835
1113
  }
836
- if (s5 !== peg$FAILED) {
837
- s6 = peg$currPos;
1114
+ peg$silentFails--;
1115
+ if (s5 === peg$FAILED) {
1116
+ s4 = undefined;
1117
+ }
1118
+ else {
1119
+ peg$currPos = s4;
1120
+ s4 = peg$FAILED;
1121
+ }
1122
+ if (s4 !== peg$FAILED) {
1123
+ s5 = peg$currPos;
838
1124
  peg$silentFails++;
839
- if (input.charCodeAt(peg$currPos) === 96) {
840
- s7 = peg$c3;
1125
+ if (input.charCodeAt(peg$currPos) === 39) {
1126
+ s6 = peg$c1;
841
1127
  peg$currPos++;
842
1128
  }
843
1129
  else {
844
- s7 = peg$FAILED;
1130
+ s6 = peg$FAILED;
845
1131
  if (peg$silentFails === 0) {
846
- peg$fail(peg$e6);
1132
+ peg$fail(peg$e3);
847
1133
  }
848
1134
  }
849
1135
  peg$silentFails--;
850
- if (s7 === peg$FAILED) {
851
- s6 = undefined;
1136
+ if (s6 === peg$FAILED) {
1137
+ s5 = undefined;
852
1138
  }
853
1139
  else {
854
- peg$currPos = s6;
855
- s6 = peg$FAILED;
1140
+ peg$currPos = s5;
1141
+ s5 = peg$FAILED;
856
1142
  }
857
- if (s6 !== peg$FAILED) {
858
- s7 = peg$currPos;
1143
+ if (s5 !== peg$FAILED) {
1144
+ s6 = peg$currPos;
859
1145
  peg$silentFails++;
860
- s8 = peg$parsetemplate_body();
861
- peg$silentFails--;
862
- if (s8 === peg$FAILED) {
863
- s7 = undefined;
1146
+ if (input.charCodeAt(peg$currPos) === 96) {
1147
+ s7 = peg$c3;
1148
+ peg$currPos++;
864
1149
  }
865
1150
  else {
866
- peg$currPos = s7;
867
1151
  s7 = peg$FAILED;
1152
+ if (peg$silentFails === 0) {
1153
+ peg$fail(peg$e6);
1154
+ }
868
1155
  }
869
- if (s7 !== peg$FAILED) {
870
- if (input.length > peg$currPos) {
871
- s8 = input.charAt(peg$currPos);
872
- peg$currPos++;
1156
+ peg$silentFails--;
1157
+ if (s7 === peg$FAILED) {
1158
+ s6 = undefined;
1159
+ }
1160
+ else {
1161
+ peg$currPos = s6;
1162
+ s6 = peg$FAILED;
1163
+ }
1164
+ if (s6 !== peg$FAILED) {
1165
+ s7 = peg$currPos;
1166
+ peg$silentFails++;
1167
+ s8 = peg$parsetemplate_body();
1168
+ peg$silentFails--;
1169
+ if (s8 === peg$FAILED) {
1170
+ s7 = undefined;
873
1171
  }
874
1172
  else {
875
- s8 = peg$FAILED;
876
- if (peg$silentFails === 0) {
877
- peg$fail(peg$e2);
878
- }
1173
+ peg$currPos = s7;
1174
+ s7 = peg$FAILED;
879
1175
  }
880
- if (s8 !== peg$FAILED) {
881
- s4 = [s4, s5, s6, s7, s8];
882
- s3 = s4;
1176
+ if (s7 !== peg$FAILED) {
1177
+ if (input.length > peg$currPos) {
1178
+ s8 = input.charAt(peg$currPos);
1179
+ peg$currPos++;
1180
+ }
1181
+ else {
1182
+ s8 = peg$FAILED;
1183
+ if (peg$silentFails === 0) {
1184
+ peg$fail(peg$e2);
1185
+ }
1186
+ }
1187
+ if (s8 !== peg$FAILED) {
1188
+ s4 = [s4, s5, s6, s7, s8];
1189
+ s3 = s4;
1190
+ }
1191
+ else {
1192
+ peg$currPos = s3;
1193
+ s3 = peg$FAILED;
1194
+ }
883
1195
  }
884
1196
  else {
885
1197
  peg$currPos = s3;
@@ -901,16 +1213,8 @@ function peg$parse(input, options) {
901
1213
  s3 = peg$FAILED;
902
1214
  }
903
1215
  }
904
- else {
905
- peg$currPos = s3;
906
- s3 = peg$FAILED;
907
- }
908
- if (s3 === peg$FAILED) {
909
- break;
910
- }
911
- s2.push(s3);
912
1216
  }
913
- if (s2.length < 1) {
1217
+ else {
914
1218
  s2 = peg$FAILED;
915
1219
  }
916
1220
  if (s2 !== peg$FAILED) {