@podlite/markdown 0.0.6 → 0.0.7

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/lib/index.esm.js CHANGED
@@ -6825,6 +6825,12 @@ var require_AstTree = __commonJS({
6825
6825
  {
6826
6826
  $ref: "#/definitions/BlockCode"
6827
6827
  },
6828
+ {
6829
+ $ref: "#/definitions/BlockToc"
6830
+ },
6831
+ {
6832
+ $ref: "#/definitions/BlockMarkdown"
6833
+ },
6828
6834
  {
6829
6835
  $ref: "#/definitions/BlockNested"
6830
6836
  },
@@ -7876,6 +7882,12 @@ var require_AstTree = __commonJS({
7876
7882
  {
7877
7883
  $ref: "#/definitions/BlockCode"
7878
7884
  },
7885
+ {
7886
+ $ref: "#/definitions/BlockToc"
7887
+ },
7888
+ {
7889
+ $ref: "#/definitions/BlockMarkdown"
7890
+ },
7879
7891
  {
7880
7892
  $ref: "#/definitions/BlockNested"
7881
7893
  },
@@ -8553,6 +8565,110 @@ var require_AstTree = __commonJS({
8553
8565
  "type"
8554
8566
  ]
8555
8567
  },
8568
+ BlockToc: {
8569
+ type: "object",
8570
+ properties: {
8571
+ name: {
8572
+ type: "string",
8573
+ enum: [
8574
+ "toc"
8575
+ ]
8576
+ },
8577
+ type: {
8578
+ type: "string",
8579
+ enum: [
8580
+ "block"
8581
+ ]
8582
+ },
8583
+ location: {
8584
+ $ref: "#/definitions/Location"
8585
+ },
8586
+ content: {
8587
+ type: "array",
8588
+ items: {
8589
+ $ref: "#/definitions/PodNode"
8590
+ }
8591
+ },
8592
+ margin: {
8593
+ type: "string"
8594
+ },
8595
+ config: {
8596
+ type: "array",
8597
+ items: {
8598
+ anyOf: [
8599
+ {
8600
+ $ref: "#/definitions/BrokenConfigItem"
8601
+ },
8602
+ {
8603
+ $ref: "#/definitions/ConfigItem"
8604
+ }
8605
+ ]
8606
+ }
8607
+ },
8608
+ id: {
8609
+ type: "string"
8610
+ }
8611
+ },
8612
+ required: [
8613
+ "content",
8614
+ "location",
8615
+ "margin",
8616
+ "name",
8617
+ "type"
8618
+ ]
8619
+ },
8620
+ BlockMarkdown: {
8621
+ type: "object",
8622
+ properties: {
8623
+ name: {
8624
+ type: "string",
8625
+ enum: [
8626
+ "markdown"
8627
+ ]
8628
+ },
8629
+ type: {
8630
+ type: "string",
8631
+ enum: [
8632
+ "block"
8633
+ ]
8634
+ },
8635
+ location: {
8636
+ $ref: "#/definitions/Location"
8637
+ },
8638
+ content: {
8639
+ type: "array",
8640
+ items: {
8641
+ $ref: "#/definitions/PodNode"
8642
+ }
8643
+ },
8644
+ margin: {
8645
+ type: "string"
8646
+ },
8647
+ config: {
8648
+ type: "array",
8649
+ items: {
8650
+ anyOf: [
8651
+ {
8652
+ $ref: "#/definitions/BrokenConfigItem"
8653
+ },
8654
+ {
8655
+ $ref: "#/definitions/ConfigItem"
8656
+ }
8657
+ ]
8658
+ }
8659
+ },
8660
+ id: {
8661
+ type: "string"
8662
+ }
8663
+ },
8664
+ required: [
8665
+ "content",
8666
+ "location",
8667
+ "margin",
8668
+ "name",
8669
+ "type"
8670
+ ]
8671
+ },
8556
8672
  BlockNested: {
8557
8673
  type: "object",
8558
8674
  properties: {
@@ -9141,6 +9257,12 @@ var require_PodliteDocument = __commonJS({
9141
9257
  {
9142
9258
  $ref: "#/definitions/BlockCode"
9143
9259
  },
9260
+ {
9261
+ $ref: "#/definitions/BlockToc"
9262
+ },
9263
+ {
9264
+ $ref: "#/definitions/BlockMarkdown"
9265
+ },
9144
9266
  {
9145
9267
  $ref: "#/definitions/BlockNested"
9146
9268
  },
@@ -10192,6 +10314,12 @@ var require_PodliteDocument = __commonJS({
10192
10314
  {
10193
10315
  $ref: "#/definitions/BlockCode"
10194
10316
  },
10317
+ {
10318
+ $ref: "#/definitions/BlockToc"
10319
+ },
10320
+ {
10321
+ $ref: "#/definitions/BlockMarkdown"
10322
+ },
10195
10323
  {
10196
10324
  $ref: "#/definitions/BlockNested"
10197
10325
  },
@@ -10869,6 +10997,110 @@ var require_PodliteDocument = __commonJS({
10869
10997
  "type"
10870
10998
  ]
10871
10999
  },
11000
+ BlockToc: {
11001
+ type: "object",
11002
+ properties: {
11003
+ name: {
11004
+ type: "string",
11005
+ enum: [
11006
+ "toc"
11007
+ ]
11008
+ },
11009
+ type: {
11010
+ type: "string",
11011
+ enum: [
11012
+ "block"
11013
+ ]
11014
+ },
11015
+ location: {
11016
+ $ref: "#/definitions/Location"
11017
+ },
11018
+ content: {
11019
+ type: "array",
11020
+ items: {
11021
+ $ref: "#/definitions/PodNode"
11022
+ }
11023
+ },
11024
+ margin: {
11025
+ type: "string"
11026
+ },
11027
+ config: {
11028
+ type: "array",
11029
+ items: {
11030
+ anyOf: [
11031
+ {
11032
+ $ref: "#/definitions/BrokenConfigItem"
11033
+ },
11034
+ {
11035
+ $ref: "#/definitions/ConfigItem"
11036
+ }
11037
+ ]
11038
+ }
11039
+ },
11040
+ id: {
11041
+ type: "string"
11042
+ }
11043
+ },
11044
+ required: [
11045
+ "content",
11046
+ "location",
11047
+ "margin",
11048
+ "name",
11049
+ "type"
11050
+ ]
11051
+ },
11052
+ BlockMarkdown: {
11053
+ type: "object",
11054
+ properties: {
11055
+ name: {
11056
+ type: "string",
11057
+ enum: [
11058
+ "markdown"
11059
+ ]
11060
+ },
11061
+ type: {
11062
+ type: "string",
11063
+ enum: [
11064
+ "block"
11065
+ ]
11066
+ },
11067
+ location: {
11068
+ $ref: "#/definitions/Location"
11069
+ },
11070
+ content: {
11071
+ type: "array",
11072
+ items: {
11073
+ $ref: "#/definitions/PodNode"
11074
+ }
11075
+ },
11076
+ margin: {
11077
+ type: "string"
11078
+ },
11079
+ config: {
11080
+ type: "array",
11081
+ items: {
11082
+ anyOf: [
11083
+ {
11084
+ $ref: "#/definitions/BrokenConfigItem"
11085
+ },
11086
+ {
11087
+ $ref: "#/definitions/ConfigItem"
11088
+ }
11089
+ ]
11090
+ }
11091
+ },
11092
+ id: {
11093
+ type: "string"
11094
+ }
11095
+ },
11096
+ required: [
11097
+ "content",
11098
+ "location",
11099
+ "margin",
11100
+ "name",
11101
+ "type"
11102
+ ]
11103
+ },
10872
11104
  BlockNested: {
10873
11105
  type: "object",
10874
11106
  properties: {
@@ -11809,7 +12041,7 @@ var require_grammar = __commonJS({
11809
12041
  }, peg$c117 = function(number) {
11810
12042
  return parseInt(number, 10);
11811
12043
  }, peg$c118 = function(vmargin, name, config) {
11812
- return name.match(/code|comment|output|input|data/) || isNamedBlock2(name);
12044
+ return name.match(/code|comment|output|input|markdown|toc|data/) || isNamedBlock2(name);
11813
12045
  }, peg$c119 = function(vmargin, name, config, margins, ename) {
11814
12046
  return vmargin.length === margins.length && name === ename;
11815
12047
  }, peg$c120 = function(vmargin, name, config, margins, line) {
@@ -11958,7 +12190,7 @@ var require_grammar = __commonJS({
11958
12190
  }, peg$c151 = /^[s]/, peg$c152 = peg$classExpectation(["s"], false, false), peg$c153 = function(line) {
11959
12191
  return { text: text4(), type: "ambient1" };
11960
12192
  }, peg$c154 = function(vmargin, name) {
11961
- return name.match(/code|comment|output|input|data/) || isNamedBlock2(name);
12193
+ return name.match(/code|comment|output|input|markdown|toc|data/) || isNamedBlock2(name);
11962
12194
  }, peg$c155 = function(vmargin, name, content4) {
11963
12195
  return {
11964
12196
  margin: vmargin,
@@ -12018,7 +12250,7 @@ var require_grammar = __commonJS({
12018
12250
  margin: vmargin
12019
12251
  };
12020
12252
  }, peg$c168 = function(vmargin, marker, name, config) {
12021
- return name.match(/code|comment|output|input|data/) || isNamedBlock2(name);
12253
+ return name.match(/code|comment|output|input|markdown|toc|data/) || isNamedBlock2(name);
12022
12254
  }, peg$c169 = function(vmargin, marker, name, config, content4) {
12023
12255
  return {
12024
12256
  type: "block",
@@ -12821,23 +13053,29 @@ var require_grammar = __commonJS({
12821
13053
  s2 = peg$currPos;
12822
13054
  s3 = peg$parse_();
12823
13055
  if (s3 !== peg$FAILED) {
12824
- s4 = peg$currPos;
12825
- s5 = peg$parsemarkers();
12826
- if (s5 !== peg$FAILED) {
12827
- s6 = peg$parsestrictIdentifier();
12828
- if (s6 !== peg$FAILED) {
12829
- s5 = [s5, s6];
12830
- s4 = s5;
12831
- } else {
12832
- peg$currPos = s4;
12833
- s4 = peg$FAILED;
12834
- }
12835
- } else {
12836
- peg$currPos = s4;
12837
- s4 = peg$FAILED;
12838
- }
13056
+ s4 = peg$parsemarkerConfig();
12839
13057
  if (s4 === peg$FAILED) {
12840
- s4 = peg$parsemarkerAbbreviatedBlock();
13058
+ s4 = peg$parsemarkerAlias();
13059
+ if (s4 === peg$FAILED) {
13060
+ s4 = peg$currPos;
13061
+ s5 = peg$parsemarkers();
13062
+ if (s5 !== peg$FAILED) {
13063
+ s6 = peg$parsestrictIdentifier();
13064
+ if (s6 !== peg$FAILED) {
13065
+ s5 = [s5, s6];
13066
+ s4 = s5;
13067
+ } else {
13068
+ peg$currPos = s4;
13069
+ s4 = peg$FAILED;
13070
+ }
13071
+ } else {
13072
+ peg$currPos = s4;
13073
+ s4 = peg$FAILED;
13074
+ }
13075
+ if (s4 === peg$FAILED) {
13076
+ s4 = peg$parsemarkerAbbreviatedBlock();
13077
+ }
13078
+ }
12841
13079
  }
12842
13080
  if (s4 !== peg$FAILED) {
12843
13081
  s3 = [s3, s4];
@@ -17454,11 +17692,13 @@ var require_grammar = __commonJS({
17454
17692
  "head",
17455
17693
  "input",
17456
17694
  "item",
17695
+ "markdown",
17457
17696
  "nested",
17458
17697
  "output",
17459
17698
  "para",
17460
17699
  "pod",
17461
- "table"
17700
+ "table",
17701
+ "toc"
17462
17702
  ].includes(name) || isSemanticBlock2(name) || name.match(/^(head|item)\d+$/) || isNamedBlock2(name);
17463
17703
  }
17464
17704
  function exludeVMargin(vmargin, string3) {
@@ -17618,64 +17858,80 @@ var require_grammarfc = __commonJS({
17618
17858
  };
17619
17859
  }, peg$c48 = "<", peg$c49 = peg$literalExpectation("<", false), peg$c50 = ">", peg$c51 = peg$literalExpectation(">", false), peg$c52 = function() {
17620
17860
  return text4();
17621
- }, peg$c53 = function(text5) {
17861
+ }, peg$c53 = "\xAB", peg$c54 = peg$literalExpectation("\xAB", false), peg$c55 = "\xBB", peg$c56 = peg$literalExpectation("\xBB", false), peg$c57 = function(text5) {
17862
+ return text5;
17863
+ }, peg$c58 = function(name) {
17864
+ return name.code === "C";
17865
+ }, peg$c59 = function(name, content4, end_tag) {
17866
+ return end_tag === name.end_tag;
17867
+ }, peg$c60 = function(name, content4, end_tag) {
17868
+ return {
17869
+ content: content4,
17870
+ "type": "fcode",
17871
+ name: name.code
17872
+ };
17873
+ }, peg$c61 = "|", peg$c62 = peg$literalExpectation("|", false), peg$c63 = function(text5) {
17622
17874
  return text5;
17623
- }, peg$c54 = function(name) {
17624
- return name === "C";
17625
- }, peg$c55 = "|", peg$c56 = peg$literalExpectation("|", false), peg$c57 = function(name) {
17626
- return name === "L";
17627
- }, peg$c58 = function(name, content4, t) {
17875
+ }, peg$c64 = function(name) {
17876
+ return name.code === "L";
17877
+ }, peg$c65 = function(name, content4, t) {
17628
17878
  return t;
17629
- }, peg$c59 = function(name, content4, meta) {
17879
+ }, peg$c66 = function(name, content4, meta, end_tag) {
17880
+ return end_tag === name.end_tag;
17881
+ }, peg$c67 = function(name, content4, meta, end_tag) {
17630
17882
  return {
17631
17883
  content: content4,
17632
17884
  "type": "fcode",
17633
- name,
17885
+ name: name.code,
17634
17886
  meta
17635
17887
  };
17636
- }, peg$c60 = ";", peg$c61 = peg$literalExpectation(";", false), peg$c62 = /^[ \xA0\u2001\t\f\u2008]/, peg$c63 = peg$classExpectation([" ", "\xA0", "\u2001", " ", "\f", "\u2008"], false, false), peg$c64 = function(code2, codes) {
17888
+ }, peg$c68 = ";", peg$c69 = peg$literalExpectation(";", false), peg$c70 = /^[ \xA0\u2001\t\f\u2008]/, peg$c71 = peg$classExpectation([" ", "\xA0", "\u2001", " ", "\f", "\u2008"], false, false), peg$c72 = function(code2, codes) {
17637
17889
  return flattenDeep4([code2, codes]);
17638
- }, peg$c65 = function(code2) {
17890
+ }, peg$c73 = function(code2) {
17639
17891
  return [code2];
17640
- }, peg$c66 = function(name) {
17892
+ }, peg$c74 = function(name) {
17641
17893
  return name === "X";
17642
- }, peg$c67 = function(name, content4, entry) {
17894
+ }, peg$c75 = function(name, content4, entry) {
17643
17895
  return {
17644
17896
  content: content4,
17645
17897
  "type": "fcode",
17646
17898
  name,
17647
17899
  entry
17648
17900
  };
17649
- }, peg$c68 = function(name) {
17901
+ }, peg$c76 = function(name) {
17650
17902
  return name === "S";
17651
- }, peg$c69 = function(name) {
17903
+ }, peg$c77 = function(name) {
17652
17904
  return name === "Z";
17653
- }, peg$c70 = /^[0-9]/, peg$c71 = peg$classExpectation([["0", "9"]], false, false), peg$c72 = "0d", peg$c73 = peg$literalExpectation("0d", false), peg$c74 = function(number) {
17905
+ }, peg$c78 = /^[0-9]/, peg$c79 = peg$classExpectation([["0", "9"]], false, false), peg$c80 = "0d", peg$c81 = peg$literalExpectation("0d", false), peg$c82 = function(number) {
17654
17906
  return parseInt(number, 10);
17655
- }, peg$c75 = "0o", peg$c76 = peg$literalExpectation("0o", false), peg$c77 = function(number) {
17907
+ }, peg$c83 = "0o", peg$c84 = peg$literalExpectation("0o", false), peg$c85 = function(number) {
17656
17908
  return parseInt(number, 8);
17657
- }, peg$c78 = "0b", peg$c79 = peg$literalExpectation("0b", false), peg$c80 = function(number) {
17909
+ }, peg$c86 = "0b", peg$c87 = peg$literalExpectation("0b", false), peg$c88 = function(number) {
17658
17910
  return parseInt(number, 2);
17659
- }, peg$c81 = "0x", peg$c82 = peg$literalExpectation("0x", false), peg$c83 = /^[0-9A-Fa-f]/, peg$c84 = peg$classExpectation([["0", "9"], ["A", "F"], ["a", "f"]], false, false), peg$c85 = function() {
17911
+ }, peg$c89 = "0x", peg$c90 = peg$literalExpectation("0x", false), peg$c91 = /^[0-9A-Fa-f]/, peg$c92 = peg$classExpectation([["0", "9"], ["A", "F"], ["a", "f"]], false, false), peg$c93 = function() {
17660
17912
  return parseInt(text4());
17661
- }, peg$c86 = function(number) {
17913
+ }, peg$c94 = function(number) {
17662
17914
  return { type: "number", value: parseInt(number, 10) };
17663
- }, peg$c87 = function(name) {
17915
+ }, peg$c95 = function(name) {
17664
17916
  return name === "E";
17665
- }, peg$c88 = function(name, t) {
17917
+ }, peg$c96 = function(name, t) {
17666
17918
  return flattenDeep4(t);
17667
- }, peg$c89 = function(name, content4) {
17919
+ }, peg$c97 = function(name, content4) {
17668
17920
  return {
17669
17921
  content: content4 ? content4 : [],
17670
17922
  "type": "fcode",
17671
17923
  name
17672
17924
  };
17673
- }, peg$c90 = function(name) {
17925
+ }, peg$c98 = function(name) {
17674
17926
  return name;
17675
- }, peg$c91 = function(name) {
17676
- return name !== "C";
17677
- }, peg$c92 = function(name, content4) {
17678
- return { content: content4, type: "fcode", name };
17927
+ }, peg$c99 = function(name, begin_tag) {
17928
+ return { code: name, begin_tag, end_tag: get_pair_tag(begin_tag) };
17929
+ }, peg$c100 = function(name) {
17930
+ return name.code !== "C";
17931
+ }, peg$c101 = function(name, content4, end_tag) {
17932
+ return end_tag === name.end_tag;
17933
+ }, peg$c102 = function(name, content4, end_tag) {
17934
+ return { content: content4, type: "fcode", name: name.code };
17679
17935
  }, peg$currPos = 0, peg$savedPos = 0, peg$posDetailsCache = [{ line: 1, column: 1 }], peg$maxFailPos = 0, peg$maxFailExpected = [], peg$silentFails = 0, peg$result;
17680
17936
  if ("startRule" in options) {
17681
17937
  if (!(options.startRule in peg$startRuleFunctions)) {
@@ -17784,7 +18040,7 @@ var require_grammarfc = __commonJS({
17784
18040
  s0 = [];
17785
18041
  s1 = peg$parseallowed_rules();
17786
18042
  if (s1 === peg$FAILED) {
17787
- s1 = peg$parsecode();
18043
+ s1 = peg$parsecode_2();
17788
18044
  if (s1 === peg$FAILED) {
17789
18045
  s1 = peg$parsetext();
17790
18046
  if (s1 === peg$FAILED) {
@@ -17796,7 +18052,7 @@ var require_grammarfc = __commonJS({
17796
18052
  s0.push(s1);
17797
18053
  s1 = peg$parseallowed_rules();
17798
18054
  if (s1 === peg$FAILED) {
17799
- s1 = peg$parsecode();
18055
+ s1 = peg$parsecode_2();
17800
18056
  if (s1 === peg$FAILED) {
17801
18057
  s1 = peg$parsetext();
17802
18058
  if (s1 === peg$FAILED) {
@@ -18452,7 +18708,84 @@ var require_grammarfc = __commonJS({
18452
18708
  peg$currPos = s0;
18453
18709
  s0 = peg$FAILED;
18454
18710
  }
18455
- return s0;
18711
+ if (s0 === peg$FAILED) {
18712
+ s0 = peg$currPos;
18713
+ s1 = peg$currPos;
18714
+ s2 = peg$currPos;
18715
+ peg$silentFails++;
18716
+ s3 = peg$parseallowed_code_C();
18717
+ peg$silentFails--;
18718
+ if (s3 === peg$FAILED) {
18719
+ s2 = void 0;
18720
+ } else {
18721
+ peg$currPos = s2;
18722
+ s2 = peg$FAILED;
18723
+ }
18724
+ if (s2 !== peg$FAILED) {
18725
+ if (input.length > peg$currPos) {
18726
+ s3 = input.charAt(peg$currPos);
18727
+ peg$currPos++;
18728
+ } else {
18729
+ s3 = peg$FAILED;
18730
+ if (peg$silentFails === 0) {
18731
+ peg$fail(peg$c39);
18732
+ }
18733
+ }
18734
+ if (s3 !== peg$FAILED) {
18735
+ s2 = [s2, s3];
18736
+ s1 = s2;
18737
+ } else {
18738
+ peg$currPos = s1;
18739
+ s1 = peg$FAILED;
18740
+ }
18741
+ } else {
18742
+ peg$currPos = s1;
18743
+ s1 = peg$FAILED;
18744
+ }
18745
+ if (s1 !== peg$FAILED) {
18746
+ if (input.charCodeAt(peg$currPos) === 171) {
18747
+ s2 = peg$c53;
18748
+ peg$currPos++;
18749
+ } else {
18750
+ s2 = peg$FAILED;
18751
+ if (peg$silentFails === 0) {
18752
+ peg$fail(peg$c54);
18753
+ }
18754
+ }
18755
+ if (s2 !== peg$FAILED) {
18756
+ s3 = peg$parsenot_code();
18757
+ if (s3 !== peg$FAILED) {
18758
+ if (input.charCodeAt(peg$currPos) === 187) {
18759
+ s4 = peg$c55;
18760
+ peg$currPos++;
18761
+ } else {
18762
+ s4 = peg$FAILED;
18763
+ if (peg$silentFails === 0) {
18764
+ peg$fail(peg$c56);
18765
+ }
18766
+ }
18767
+ if (s4 !== peg$FAILED) {
18768
+ peg$savedPos = s0;
18769
+ s1 = peg$c52();
18770
+ s0 = s1;
18771
+ } else {
18772
+ peg$currPos = s0;
18773
+ s0 = peg$FAILED;
18774
+ }
18775
+ } else {
18776
+ peg$currPos = s0;
18777
+ s0 = peg$FAILED;
18778
+ }
18779
+ } else {
18780
+ peg$currPos = s0;
18781
+ s0 = peg$FAILED;
18782
+ }
18783
+ } else {
18784
+ peg$currPos = s0;
18785
+ s0 = peg$FAILED;
18786
+ }
18787
+ }
18788
+ return s0;
18456
18789
  }
18457
18790
  function peg$parsetext_C() {
18458
18791
  var s0, s1, s2, s3, s4, s5, s6, s7;
@@ -18548,9 +18881,99 @@ var require_grammarfc = __commonJS({
18548
18881
  s3 = peg$FAILED;
18549
18882
  }
18550
18883
  if (s3 === peg$FAILED) {
18551
- s3 = peg$parselooks_like_code_C();
18884
+ s3 = peg$currPos;
18885
+ s4 = peg$currPos;
18886
+ s5 = peg$currPos;
18887
+ peg$silentFails++;
18888
+ if (input.charCodeAt(peg$currPos) === 171) {
18889
+ s6 = peg$c53;
18890
+ peg$currPos++;
18891
+ } else {
18892
+ s6 = peg$FAILED;
18893
+ if (peg$silentFails === 0) {
18894
+ peg$fail(peg$c54);
18895
+ }
18896
+ }
18897
+ peg$silentFails--;
18898
+ if (s6 === peg$FAILED) {
18899
+ s5 = void 0;
18900
+ } else {
18901
+ peg$currPos = s5;
18902
+ s5 = peg$FAILED;
18903
+ }
18904
+ if (s5 !== peg$FAILED) {
18905
+ if (input.length > peg$currPos) {
18906
+ s6 = input.charAt(peg$currPos);
18907
+ peg$currPos++;
18908
+ } else {
18909
+ s6 = peg$FAILED;
18910
+ if (peg$silentFails === 0) {
18911
+ peg$fail(peg$c39);
18912
+ }
18913
+ }
18914
+ if (s6 !== peg$FAILED) {
18915
+ s5 = [s5, s6];
18916
+ s4 = s5;
18917
+ } else {
18918
+ peg$currPos = s4;
18919
+ s4 = peg$FAILED;
18920
+ }
18921
+ } else {
18922
+ peg$currPos = s4;
18923
+ s4 = peg$FAILED;
18924
+ }
18925
+ if (s4 === peg$FAILED) {
18926
+ s4 = null;
18927
+ }
18928
+ if (s4 !== peg$FAILED) {
18929
+ if (input.charCodeAt(peg$currPos) === 171) {
18930
+ s5 = peg$c53;
18931
+ peg$currPos++;
18932
+ } else {
18933
+ s5 = peg$FAILED;
18934
+ if (peg$silentFails === 0) {
18935
+ peg$fail(peg$c54);
18936
+ }
18937
+ }
18938
+ if (s5 !== peg$FAILED) {
18939
+ s6 = peg$parsetext_C();
18940
+ if (s6 === peg$FAILED) {
18941
+ s6 = null;
18942
+ }
18943
+ if (s6 !== peg$FAILED) {
18944
+ if (input.charCodeAt(peg$currPos) === 187) {
18945
+ s7 = peg$c55;
18946
+ peg$currPos++;
18947
+ } else {
18948
+ s7 = peg$FAILED;
18949
+ if (peg$silentFails === 0) {
18950
+ peg$fail(peg$c56);
18951
+ }
18952
+ }
18953
+ if (s7 !== peg$FAILED) {
18954
+ s4 = [s4, s5, s6, s7];
18955
+ s3 = s4;
18956
+ } else {
18957
+ peg$currPos = s3;
18958
+ s3 = peg$FAILED;
18959
+ }
18960
+ } else {
18961
+ peg$currPos = s3;
18962
+ s3 = peg$FAILED;
18963
+ }
18964
+ } else {
18965
+ peg$currPos = s3;
18966
+ s3 = peg$FAILED;
18967
+ }
18968
+ } else {
18969
+ peg$currPos = s3;
18970
+ s3 = peg$FAILED;
18971
+ }
18552
18972
  if (s3 === peg$FAILED) {
18553
- s3 = peg$parsenot_code();
18973
+ s3 = peg$parselooks_like_code_C();
18974
+ if (s3 === peg$FAILED) {
18975
+ s3 = peg$parsenot_code();
18976
+ }
18554
18977
  }
18555
18978
  }
18556
18979
  if (s3 !== peg$FAILED) {
@@ -18645,9 +19068,99 @@ var require_grammarfc = __commonJS({
18645
19068
  s3 = peg$FAILED;
18646
19069
  }
18647
19070
  if (s3 === peg$FAILED) {
18648
- s3 = peg$parselooks_like_code_C();
19071
+ s3 = peg$currPos;
19072
+ s4 = peg$currPos;
19073
+ s5 = peg$currPos;
19074
+ peg$silentFails++;
19075
+ if (input.charCodeAt(peg$currPos) === 171) {
19076
+ s6 = peg$c53;
19077
+ peg$currPos++;
19078
+ } else {
19079
+ s6 = peg$FAILED;
19080
+ if (peg$silentFails === 0) {
19081
+ peg$fail(peg$c54);
19082
+ }
19083
+ }
19084
+ peg$silentFails--;
19085
+ if (s6 === peg$FAILED) {
19086
+ s5 = void 0;
19087
+ } else {
19088
+ peg$currPos = s5;
19089
+ s5 = peg$FAILED;
19090
+ }
19091
+ if (s5 !== peg$FAILED) {
19092
+ if (input.length > peg$currPos) {
19093
+ s6 = input.charAt(peg$currPos);
19094
+ peg$currPos++;
19095
+ } else {
19096
+ s6 = peg$FAILED;
19097
+ if (peg$silentFails === 0) {
19098
+ peg$fail(peg$c39);
19099
+ }
19100
+ }
19101
+ if (s6 !== peg$FAILED) {
19102
+ s5 = [s5, s6];
19103
+ s4 = s5;
19104
+ } else {
19105
+ peg$currPos = s4;
19106
+ s4 = peg$FAILED;
19107
+ }
19108
+ } else {
19109
+ peg$currPos = s4;
19110
+ s4 = peg$FAILED;
19111
+ }
19112
+ if (s4 === peg$FAILED) {
19113
+ s4 = null;
19114
+ }
19115
+ if (s4 !== peg$FAILED) {
19116
+ if (input.charCodeAt(peg$currPos) === 171) {
19117
+ s5 = peg$c53;
19118
+ peg$currPos++;
19119
+ } else {
19120
+ s5 = peg$FAILED;
19121
+ if (peg$silentFails === 0) {
19122
+ peg$fail(peg$c54);
19123
+ }
19124
+ }
19125
+ if (s5 !== peg$FAILED) {
19126
+ s6 = peg$parsetext_C();
19127
+ if (s6 === peg$FAILED) {
19128
+ s6 = null;
19129
+ }
19130
+ if (s6 !== peg$FAILED) {
19131
+ if (input.charCodeAt(peg$currPos) === 187) {
19132
+ s7 = peg$c55;
19133
+ peg$currPos++;
19134
+ } else {
19135
+ s7 = peg$FAILED;
19136
+ if (peg$silentFails === 0) {
19137
+ peg$fail(peg$c56);
19138
+ }
19139
+ }
19140
+ if (s7 !== peg$FAILED) {
19141
+ s4 = [s4, s5, s6, s7];
19142
+ s3 = s4;
19143
+ } else {
19144
+ peg$currPos = s3;
19145
+ s3 = peg$FAILED;
19146
+ }
19147
+ } else {
19148
+ peg$currPos = s3;
19149
+ s3 = peg$FAILED;
19150
+ }
19151
+ } else {
19152
+ peg$currPos = s3;
19153
+ s3 = peg$FAILED;
19154
+ }
19155
+ } else {
19156
+ peg$currPos = s3;
19157
+ s3 = peg$FAILED;
19158
+ }
18649
19159
  if (s3 === peg$FAILED) {
18650
- s3 = peg$parsenot_code();
19160
+ s3 = peg$parselooks_like_code_C();
19161
+ if (s3 === peg$FAILED) {
19162
+ s3 = peg$parsenot_code();
19163
+ }
18651
19164
  }
18652
19165
  }
18653
19166
  }
@@ -18661,18 +19174,18 @@ var require_grammarfc = __commonJS({
18661
19174
  }
18662
19175
  if (s1 !== peg$FAILED) {
18663
19176
  peg$savedPos = s0;
18664
- s1 = peg$c53(s1);
19177
+ s1 = peg$c57(s1);
18665
19178
  }
18666
19179
  s0 = s1;
18667
19180
  return s0;
18668
19181
  }
18669
19182
  function peg$parsecode_C() {
18670
- var s0, s1, s2, s3, s4;
19183
+ var s0, s1, s2, s3, s4, s5;
18671
19184
  s0 = peg$currPos;
18672
- s1 = peg$parsestart_code();
19185
+ s1 = peg$parsestart_code_2();
18673
19186
  if (s1 !== peg$FAILED) {
18674
19187
  peg$savedPos = peg$currPos;
18675
- s2 = peg$c54(s1);
19188
+ s2 = peg$c58(s1);
18676
19189
  if (s2) {
18677
19190
  s2 = void 0;
18678
19191
  } else {
@@ -18692,9 +19205,21 @@ var require_grammarfc = __commonJS({
18692
19205
  if (s3 !== peg$FAILED) {
18693
19206
  s4 = peg$parseend_code();
18694
19207
  if (s4 !== peg$FAILED) {
18695
- peg$savedPos = s0;
18696
- s1 = peg$c42(s1, s3);
18697
- s0 = s1;
19208
+ peg$savedPos = peg$currPos;
19209
+ s5 = peg$c59(s1, s3, s4);
19210
+ if (s5) {
19211
+ s5 = void 0;
19212
+ } else {
19213
+ s5 = peg$FAILED;
19214
+ }
19215
+ if (s5 !== peg$FAILED) {
19216
+ peg$savedPos = s0;
19217
+ s1 = peg$c60(s1, s3, s4);
19218
+ s0 = s1;
19219
+ } else {
19220
+ peg$currPos = s0;
19221
+ s0 = peg$FAILED;
19222
+ }
18698
19223
  } else {
18699
19224
  peg$currPos = s0;
18700
19225
  s0 = peg$FAILED;
@@ -18716,53 +19241,110 @@ var require_grammarfc = __commonJS({
18716
19241
  function peg$parseseparator() {
18717
19242
  var s0;
18718
19243
  if (input.charCodeAt(peg$currPos) === 124) {
18719
- s0 = peg$c55;
19244
+ s0 = peg$c61;
18720
19245
  peg$currPos++;
18721
19246
  } else {
18722
19247
  s0 = peg$FAILED;
18723
19248
  if (peg$silentFails === 0) {
18724
- peg$fail(peg$c56);
19249
+ peg$fail(peg$c62);
18725
19250
  }
18726
19251
  }
18727
19252
  return s0;
18728
19253
  }
18729
19254
  function peg$parsetext_L() {
18730
- var s0, s1, s2, s3, s4, s5, s6, s7;
19255
+ var s0, s1, s2, s3, s4, s5, s6, s7, s8;
18731
19256
  s0 = peg$currPos;
18732
- s1 = [];
18733
- s2 = peg$currPos;
19257
+ s1 = peg$currPos;
19258
+ s2 = [];
18734
19259
  s3 = peg$currPos;
18735
19260
  s4 = peg$currPos;
19261
+ s5 = peg$currPos;
18736
19262
  peg$silentFails++;
18737
19263
  if (input.charCodeAt(peg$currPos) === 60) {
18738
- s5 = peg$c48;
19264
+ s6 = peg$c48;
18739
19265
  peg$currPos++;
18740
19266
  } else {
18741
- s5 = peg$FAILED;
19267
+ s6 = peg$FAILED;
18742
19268
  if (peg$silentFails === 0) {
18743
19269
  peg$fail(peg$c49);
18744
19270
  }
18745
19271
  }
18746
19272
  peg$silentFails--;
18747
- if (s5 === peg$FAILED) {
18748
- s4 = void 0;
19273
+ if (s6 === peg$FAILED) {
19274
+ s5 = void 0;
18749
19275
  } else {
18750
- peg$currPos = s4;
18751
- s4 = peg$FAILED;
19276
+ peg$currPos = s5;
19277
+ s5 = peg$FAILED;
19278
+ }
19279
+ if (s5 !== peg$FAILED) {
19280
+ s6 = peg$currPos;
19281
+ peg$silentFails++;
19282
+ s7 = peg$parseallowed_code();
19283
+ peg$silentFails--;
19284
+ if (s7 === peg$FAILED) {
19285
+ s6 = void 0;
19286
+ } else {
19287
+ peg$currPos = s6;
19288
+ s6 = peg$FAILED;
19289
+ }
19290
+ if (s6 !== peg$FAILED) {
19291
+ if (input.length > peg$currPos) {
19292
+ s7 = input.charAt(peg$currPos);
19293
+ peg$currPos++;
19294
+ } else {
19295
+ s7 = peg$FAILED;
19296
+ if (peg$silentFails === 0) {
19297
+ peg$fail(peg$c39);
19298
+ }
19299
+ }
19300
+ if (s7 !== peg$FAILED) {
19301
+ s5 = [s5, s6, s7];
19302
+ s4 = s5;
19303
+ } else {
19304
+ peg$currPos = s4;
19305
+ s4 = peg$FAILED;
19306
+ }
19307
+ } else {
19308
+ peg$currPos = s4;
19309
+ s4 = peg$FAILED;
19310
+ }
19311
+ } else {
19312
+ peg$currPos = s4;
19313
+ s4 = peg$FAILED;
18752
19314
  }
18753
19315
  if (s4 !== peg$FAILED) {
18754
- if (input.length > peg$currPos) {
18755
- s5 = input.charAt(peg$currPos);
19316
+ if (input.charCodeAt(peg$currPos) === 60) {
19317
+ s5 = peg$c48;
18756
19318
  peg$currPos++;
18757
19319
  } else {
18758
19320
  s5 = peg$FAILED;
18759
19321
  if (peg$silentFails === 0) {
18760
- peg$fail(peg$c39);
19322
+ peg$fail(peg$c49);
18761
19323
  }
18762
19324
  }
18763
19325
  if (s5 !== peg$FAILED) {
18764
- s4 = [s4, s5];
18765
- s3 = s4;
19326
+ s6 = peg$parsetext_L();
19327
+ if (s6 !== peg$FAILED) {
19328
+ if (input.charCodeAt(peg$currPos) === 62) {
19329
+ s7 = peg$c50;
19330
+ peg$currPos++;
19331
+ } else {
19332
+ s7 = peg$FAILED;
19333
+ if (peg$silentFails === 0) {
19334
+ peg$fail(peg$c51);
19335
+ }
19336
+ }
19337
+ if (s7 !== peg$FAILED) {
19338
+ s4 = [s4, s5, s6, s7];
19339
+ s3 = s4;
19340
+ } else {
19341
+ peg$currPos = s3;
19342
+ s3 = peg$FAILED;
19343
+ }
19344
+ } else {
19345
+ peg$currPos = s3;
19346
+ s3 = peg$FAILED;
19347
+ }
18766
19348
  } else {
18767
19349
  peg$currPos = s3;
18768
19350
  s3 = peg$FAILED;
@@ -18771,63 +19353,112 @@ var require_grammarfc = __commonJS({
18771
19353
  peg$currPos = s3;
18772
19354
  s3 = peg$FAILED;
18773
19355
  }
18774
- if (s3 !== peg$FAILED) {
18775
- if (input.charCodeAt(peg$currPos) === 60) {
18776
- s4 = peg$c48;
19356
+ if (s3 === peg$FAILED) {
19357
+ s3 = peg$currPos;
19358
+ s4 = peg$currPos;
19359
+ s5 = peg$currPos;
19360
+ peg$silentFails++;
19361
+ if (input.charCodeAt(peg$currPos) === 171) {
19362
+ s6 = peg$c53;
18777
19363
  peg$currPos++;
18778
19364
  } else {
18779
- s4 = peg$FAILED;
19365
+ s6 = peg$FAILED;
18780
19366
  if (peg$silentFails === 0) {
18781
- peg$fail(peg$c49);
19367
+ peg$fail(peg$c54);
18782
19368
  }
18783
19369
  }
18784
- if (s4 !== peg$FAILED) {
18785
- s5 = peg$parsetext_L();
18786
- if (s5 !== peg$FAILED) {
18787
- if (input.charCodeAt(peg$currPos) === 62) {
18788
- s6 = peg$c50;
19370
+ peg$silentFails--;
19371
+ if (s6 === peg$FAILED) {
19372
+ s5 = void 0;
19373
+ } else {
19374
+ peg$currPos = s5;
19375
+ s5 = peg$FAILED;
19376
+ }
19377
+ if (s5 !== peg$FAILED) {
19378
+ s6 = peg$currPos;
19379
+ peg$silentFails++;
19380
+ s7 = peg$parseallowed_code();
19381
+ peg$silentFails--;
19382
+ if (s7 === peg$FAILED) {
19383
+ s6 = void 0;
19384
+ } else {
19385
+ peg$currPos = s6;
19386
+ s6 = peg$FAILED;
19387
+ }
19388
+ if (s6 !== peg$FAILED) {
19389
+ if (input.length > peg$currPos) {
19390
+ s7 = input.charAt(peg$currPos);
18789
19391
  peg$currPos++;
18790
19392
  } else {
18791
- s6 = peg$FAILED;
19393
+ s7 = peg$FAILED;
18792
19394
  if (peg$silentFails === 0) {
18793
- peg$fail(peg$c51);
19395
+ peg$fail(peg$c39);
18794
19396
  }
18795
19397
  }
18796
- if (s6 !== peg$FAILED) {
18797
- s3 = [s3, s4, s5, s6];
18798
- s2 = s3;
19398
+ if (s7 !== peg$FAILED) {
19399
+ s5 = [s5, s6, s7];
19400
+ s4 = s5;
18799
19401
  } else {
18800
- peg$currPos = s2;
18801
- s2 = peg$FAILED;
19402
+ peg$currPos = s4;
19403
+ s4 = peg$FAILED;
18802
19404
  }
18803
19405
  } else {
18804
- peg$currPos = s2;
18805
- s2 = peg$FAILED;
19406
+ peg$currPos = s4;
19407
+ s4 = peg$FAILED;
18806
19408
  }
18807
19409
  } else {
18808
- peg$currPos = s2;
18809
- s2 = peg$FAILED;
19410
+ peg$currPos = s4;
19411
+ s4 = peg$FAILED;
18810
19412
  }
18811
- } else {
18812
- peg$currPos = s2;
18813
- s2 = peg$FAILED;
18814
- }
18815
- if (s2 === peg$FAILED) {
18816
- s2 = peg$currPos;
18817
- s3 = peg$currPos;
18818
- peg$silentFails++;
18819
- s4 = peg$parseseparator();
18820
- peg$silentFails--;
18821
- if (s4 === peg$FAILED) {
18822
- s3 = void 0;
19413
+ if (s4 !== peg$FAILED) {
19414
+ if (input.charCodeAt(peg$currPos) === 171) {
19415
+ s5 = peg$c53;
19416
+ peg$currPos++;
19417
+ } else {
19418
+ s5 = peg$FAILED;
19419
+ if (peg$silentFails === 0) {
19420
+ peg$fail(peg$c54);
19421
+ }
19422
+ }
19423
+ if (s5 !== peg$FAILED) {
19424
+ s6 = peg$parsetext_L();
19425
+ if (s6 === peg$FAILED) {
19426
+ s6 = null;
19427
+ }
19428
+ if (s6 !== peg$FAILED) {
19429
+ if (input.charCodeAt(peg$currPos) === 187) {
19430
+ s7 = peg$c55;
19431
+ peg$currPos++;
19432
+ } else {
19433
+ s7 = peg$FAILED;
19434
+ if (peg$silentFails === 0) {
19435
+ peg$fail(peg$c56);
19436
+ }
19437
+ }
19438
+ if (s7 !== peg$FAILED) {
19439
+ s4 = [s4, s5, s6, s7];
19440
+ s3 = s4;
19441
+ } else {
19442
+ peg$currPos = s3;
19443
+ s3 = peg$FAILED;
19444
+ }
19445
+ } else {
19446
+ peg$currPos = s3;
19447
+ s3 = peg$FAILED;
19448
+ }
19449
+ } else {
19450
+ peg$currPos = s3;
19451
+ s3 = peg$FAILED;
19452
+ }
18823
19453
  } else {
18824
19454
  peg$currPos = s3;
18825
19455
  s3 = peg$FAILED;
18826
19456
  }
18827
- if (s3 !== peg$FAILED) {
19457
+ if (s3 === peg$FAILED) {
19458
+ s3 = peg$currPos;
18828
19459
  s4 = peg$currPos;
18829
19460
  peg$silentFails++;
18830
- s5 = peg$parseend_code();
19461
+ s5 = peg$parseseparator();
18831
19462
  peg$silentFails--;
18832
19463
  if (s5 === peg$FAILED) {
18833
19464
  s4 = void 0;
@@ -18838,7 +19469,7 @@ var require_grammarfc = __commonJS({
18838
19469
  if (s4 !== peg$FAILED) {
18839
19470
  s5 = peg$currPos;
18840
19471
  peg$silentFails++;
18841
- s6 = peg$parsestart_code();
19472
+ s6 = peg$parseend_code();
18842
19473
  peg$silentFails--;
18843
19474
  if (s6 === peg$FAILED) {
18844
19475
  s5 = void 0;
@@ -18849,7 +19480,7 @@ var require_grammarfc = __commonJS({
18849
19480
  if (s5 !== peg$FAILED) {
18850
19481
  s6 = peg$currPos;
18851
19482
  peg$silentFails++;
18852
- s7 = peg$parselooks_like_code();
19483
+ s7 = peg$parsestart_code();
18853
19484
  peg$silentFails--;
18854
19485
  if (s7 === peg$FAILED) {
18855
19486
  s6 = void 0;
@@ -18858,75 +19489,143 @@ var require_grammarfc = __commonJS({
18858
19489
  s6 = peg$FAILED;
18859
19490
  }
18860
19491
  if (s6 !== peg$FAILED) {
18861
- if (input.length > peg$currPos) {
18862
- s7 = input.charAt(peg$currPos);
18863
- peg$currPos++;
19492
+ s7 = peg$currPos;
19493
+ peg$silentFails++;
19494
+ s8 = peg$parselooks_like_code();
19495
+ peg$silentFails--;
19496
+ if (s8 === peg$FAILED) {
19497
+ s7 = void 0;
18864
19498
  } else {
19499
+ peg$currPos = s7;
18865
19500
  s7 = peg$FAILED;
18866
- if (peg$silentFails === 0) {
18867
- peg$fail(peg$c39);
18868
- }
18869
19501
  }
18870
19502
  if (s7 !== peg$FAILED) {
18871
- s3 = [s3, s4, s5, s6, s7];
18872
- s2 = s3;
19503
+ if (input.length > peg$currPos) {
19504
+ s8 = input.charAt(peg$currPos);
19505
+ peg$currPos++;
19506
+ } else {
19507
+ s8 = peg$FAILED;
19508
+ if (peg$silentFails === 0) {
19509
+ peg$fail(peg$c39);
19510
+ }
19511
+ }
19512
+ if (s8 !== peg$FAILED) {
19513
+ s4 = [s4, s5, s6, s7, s8];
19514
+ s3 = s4;
19515
+ } else {
19516
+ peg$currPos = s3;
19517
+ s3 = peg$FAILED;
19518
+ }
18873
19519
  } else {
18874
- peg$currPos = s2;
18875
- s2 = peg$FAILED;
19520
+ peg$currPos = s3;
19521
+ s3 = peg$FAILED;
18876
19522
  }
18877
19523
  } else {
18878
- peg$currPos = s2;
18879
- s2 = peg$FAILED;
19524
+ peg$currPos = s3;
19525
+ s3 = peg$FAILED;
18880
19526
  }
18881
19527
  } else {
18882
- peg$currPos = s2;
18883
- s2 = peg$FAILED;
19528
+ peg$currPos = s3;
19529
+ s3 = peg$FAILED;
18884
19530
  }
18885
19531
  } else {
18886
- peg$currPos = s2;
18887
- s2 = peg$FAILED;
19532
+ peg$currPos = s3;
19533
+ s3 = peg$FAILED;
18888
19534
  }
18889
- } else {
18890
- peg$currPos = s2;
18891
- s2 = peg$FAILED;
18892
19535
  }
18893
19536
  }
18894
- if (s2 !== peg$FAILED) {
18895
- while (s2 !== peg$FAILED) {
18896
- s1.push(s2);
18897
- s2 = peg$currPos;
19537
+ if (s3 !== peg$FAILED) {
19538
+ while (s3 !== peg$FAILED) {
19539
+ s2.push(s3);
18898
19540
  s3 = peg$currPos;
18899
19541
  s4 = peg$currPos;
19542
+ s5 = peg$currPos;
18900
19543
  peg$silentFails++;
18901
19544
  if (input.charCodeAt(peg$currPos) === 60) {
18902
- s5 = peg$c48;
19545
+ s6 = peg$c48;
18903
19546
  peg$currPos++;
18904
19547
  } else {
18905
- s5 = peg$FAILED;
19548
+ s6 = peg$FAILED;
18906
19549
  if (peg$silentFails === 0) {
18907
19550
  peg$fail(peg$c49);
18908
19551
  }
18909
19552
  }
18910
19553
  peg$silentFails--;
18911
- if (s5 === peg$FAILED) {
18912
- s4 = void 0;
19554
+ if (s6 === peg$FAILED) {
19555
+ s5 = void 0;
19556
+ } else {
19557
+ peg$currPos = s5;
19558
+ s5 = peg$FAILED;
19559
+ }
19560
+ if (s5 !== peg$FAILED) {
19561
+ s6 = peg$currPos;
19562
+ peg$silentFails++;
19563
+ s7 = peg$parseallowed_code();
19564
+ peg$silentFails--;
19565
+ if (s7 === peg$FAILED) {
19566
+ s6 = void 0;
19567
+ } else {
19568
+ peg$currPos = s6;
19569
+ s6 = peg$FAILED;
19570
+ }
19571
+ if (s6 !== peg$FAILED) {
19572
+ if (input.length > peg$currPos) {
19573
+ s7 = input.charAt(peg$currPos);
19574
+ peg$currPos++;
19575
+ } else {
19576
+ s7 = peg$FAILED;
19577
+ if (peg$silentFails === 0) {
19578
+ peg$fail(peg$c39);
19579
+ }
19580
+ }
19581
+ if (s7 !== peg$FAILED) {
19582
+ s5 = [s5, s6, s7];
19583
+ s4 = s5;
19584
+ } else {
19585
+ peg$currPos = s4;
19586
+ s4 = peg$FAILED;
19587
+ }
19588
+ } else {
19589
+ peg$currPos = s4;
19590
+ s4 = peg$FAILED;
19591
+ }
18913
19592
  } else {
18914
19593
  peg$currPos = s4;
18915
19594
  s4 = peg$FAILED;
18916
19595
  }
18917
19596
  if (s4 !== peg$FAILED) {
18918
- if (input.length > peg$currPos) {
18919
- s5 = input.charAt(peg$currPos);
19597
+ if (input.charCodeAt(peg$currPos) === 60) {
19598
+ s5 = peg$c48;
18920
19599
  peg$currPos++;
18921
19600
  } else {
18922
19601
  s5 = peg$FAILED;
18923
19602
  if (peg$silentFails === 0) {
18924
- peg$fail(peg$c39);
19603
+ peg$fail(peg$c49);
18925
19604
  }
18926
19605
  }
18927
19606
  if (s5 !== peg$FAILED) {
18928
- s4 = [s4, s5];
18929
- s3 = s4;
19607
+ s6 = peg$parsetext_L();
19608
+ if (s6 !== peg$FAILED) {
19609
+ if (input.charCodeAt(peg$currPos) === 62) {
19610
+ s7 = peg$c50;
19611
+ peg$currPos++;
19612
+ } else {
19613
+ s7 = peg$FAILED;
19614
+ if (peg$silentFails === 0) {
19615
+ peg$fail(peg$c51);
19616
+ }
19617
+ }
19618
+ if (s7 !== peg$FAILED) {
19619
+ s4 = [s4, s5, s6, s7];
19620
+ s3 = s4;
19621
+ } else {
19622
+ peg$currPos = s3;
19623
+ s3 = peg$FAILED;
19624
+ }
19625
+ } else {
19626
+ peg$currPos = s3;
19627
+ s3 = peg$FAILED;
19628
+ }
18930
19629
  } else {
18931
19630
  peg$currPos = s3;
18932
19631
  s3 = peg$FAILED;
@@ -18935,63 +19634,112 @@ var require_grammarfc = __commonJS({
18935
19634
  peg$currPos = s3;
18936
19635
  s3 = peg$FAILED;
18937
19636
  }
18938
- if (s3 !== peg$FAILED) {
18939
- if (input.charCodeAt(peg$currPos) === 60) {
18940
- s4 = peg$c48;
19637
+ if (s3 === peg$FAILED) {
19638
+ s3 = peg$currPos;
19639
+ s4 = peg$currPos;
19640
+ s5 = peg$currPos;
19641
+ peg$silentFails++;
19642
+ if (input.charCodeAt(peg$currPos) === 171) {
19643
+ s6 = peg$c53;
18941
19644
  peg$currPos++;
18942
19645
  } else {
18943
- s4 = peg$FAILED;
19646
+ s6 = peg$FAILED;
18944
19647
  if (peg$silentFails === 0) {
18945
- peg$fail(peg$c49);
19648
+ peg$fail(peg$c54);
18946
19649
  }
18947
19650
  }
18948
- if (s4 !== peg$FAILED) {
18949
- s5 = peg$parsetext_L();
18950
- if (s5 !== peg$FAILED) {
18951
- if (input.charCodeAt(peg$currPos) === 62) {
18952
- s6 = peg$c50;
19651
+ peg$silentFails--;
19652
+ if (s6 === peg$FAILED) {
19653
+ s5 = void 0;
19654
+ } else {
19655
+ peg$currPos = s5;
19656
+ s5 = peg$FAILED;
19657
+ }
19658
+ if (s5 !== peg$FAILED) {
19659
+ s6 = peg$currPos;
19660
+ peg$silentFails++;
19661
+ s7 = peg$parseallowed_code();
19662
+ peg$silentFails--;
19663
+ if (s7 === peg$FAILED) {
19664
+ s6 = void 0;
19665
+ } else {
19666
+ peg$currPos = s6;
19667
+ s6 = peg$FAILED;
19668
+ }
19669
+ if (s6 !== peg$FAILED) {
19670
+ if (input.length > peg$currPos) {
19671
+ s7 = input.charAt(peg$currPos);
18953
19672
  peg$currPos++;
18954
19673
  } else {
18955
- s6 = peg$FAILED;
19674
+ s7 = peg$FAILED;
18956
19675
  if (peg$silentFails === 0) {
18957
- peg$fail(peg$c51);
19676
+ peg$fail(peg$c39);
18958
19677
  }
18959
19678
  }
18960
- if (s6 !== peg$FAILED) {
18961
- s3 = [s3, s4, s5, s6];
18962
- s2 = s3;
19679
+ if (s7 !== peg$FAILED) {
19680
+ s5 = [s5, s6, s7];
19681
+ s4 = s5;
18963
19682
  } else {
18964
- peg$currPos = s2;
18965
- s2 = peg$FAILED;
19683
+ peg$currPos = s4;
19684
+ s4 = peg$FAILED;
18966
19685
  }
18967
19686
  } else {
18968
- peg$currPos = s2;
18969
- s2 = peg$FAILED;
19687
+ peg$currPos = s4;
19688
+ s4 = peg$FAILED;
18970
19689
  }
18971
19690
  } else {
18972
- peg$currPos = s2;
18973
- s2 = peg$FAILED;
19691
+ peg$currPos = s4;
19692
+ s4 = peg$FAILED;
18974
19693
  }
18975
- } else {
18976
- peg$currPos = s2;
18977
- s2 = peg$FAILED;
18978
- }
18979
- if (s2 === peg$FAILED) {
18980
- s2 = peg$currPos;
18981
- s3 = peg$currPos;
18982
- peg$silentFails++;
18983
- s4 = peg$parseseparator();
18984
- peg$silentFails--;
18985
- if (s4 === peg$FAILED) {
18986
- s3 = void 0;
19694
+ if (s4 !== peg$FAILED) {
19695
+ if (input.charCodeAt(peg$currPos) === 171) {
19696
+ s5 = peg$c53;
19697
+ peg$currPos++;
19698
+ } else {
19699
+ s5 = peg$FAILED;
19700
+ if (peg$silentFails === 0) {
19701
+ peg$fail(peg$c54);
19702
+ }
19703
+ }
19704
+ if (s5 !== peg$FAILED) {
19705
+ s6 = peg$parsetext_L();
19706
+ if (s6 === peg$FAILED) {
19707
+ s6 = null;
19708
+ }
19709
+ if (s6 !== peg$FAILED) {
19710
+ if (input.charCodeAt(peg$currPos) === 187) {
19711
+ s7 = peg$c55;
19712
+ peg$currPos++;
19713
+ } else {
19714
+ s7 = peg$FAILED;
19715
+ if (peg$silentFails === 0) {
19716
+ peg$fail(peg$c56);
19717
+ }
19718
+ }
19719
+ if (s7 !== peg$FAILED) {
19720
+ s4 = [s4, s5, s6, s7];
19721
+ s3 = s4;
19722
+ } else {
19723
+ peg$currPos = s3;
19724
+ s3 = peg$FAILED;
19725
+ }
19726
+ } else {
19727
+ peg$currPos = s3;
19728
+ s3 = peg$FAILED;
19729
+ }
19730
+ } else {
19731
+ peg$currPos = s3;
19732
+ s3 = peg$FAILED;
19733
+ }
18987
19734
  } else {
18988
19735
  peg$currPos = s3;
18989
19736
  s3 = peg$FAILED;
18990
19737
  }
18991
- if (s3 !== peg$FAILED) {
19738
+ if (s3 === peg$FAILED) {
19739
+ s3 = peg$currPos;
18992
19740
  s4 = peg$currPos;
18993
19741
  peg$silentFails++;
18994
- s5 = peg$parseend_code();
19742
+ s5 = peg$parseseparator();
18995
19743
  peg$silentFails--;
18996
19744
  if (s5 === peg$FAILED) {
18997
19745
  s4 = void 0;
@@ -19002,7 +19750,7 @@ var require_grammarfc = __commonJS({
19002
19750
  if (s4 !== peg$FAILED) {
19003
19751
  s5 = peg$currPos;
19004
19752
  peg$silentFails++;
19005
- s6 = peg$parsestart_code();
19753
+ s6 = peg$parseend_code();
19006
19754
  peg$silentFails--;
19007
19755
  if (s6 === peg$FAILED) {
19008
19756
  s5 = void 0;
@@ -19013,7 +19761,7 @@ var require_grammarfc = __commonJS({
19013
19761
  if (s5 !== peg$FAILED) {
19014
19762
  s6 = peg$currPos;
19015
19763
  peg$silentFails++;
19016
- s7 = peg$parselooks_like_code();
19764
+ s7 = peg$parsestart_code();
19017
19765
  peg$silentFails--;
19018
19766
  if (s7 === peg$FAILED) {
19019
19767
  s6 = void 0;
@@ -19022,57 +19770,74 @@ var require_grammarfc = __commonJS({
19022
19770
  s6 = peg$FAILED;
19023
19771
  }
19024
19772
  if (s6 !== peg$FAILED) {
19025
- if (input.length > peg$currPos) {
19026
- s7 = input.charAt(peg$currPos);
19027
- peg$currPos++;
19773
+ s7 = peg$currPos;
19774
+ peg$silentFails++;
19775
+ s8 = peg$parselooks_like_code();
19776
+ peg$silentFails--;
19777
+ if (s8 === peg$FAILED) {
19778
+ s7 = void 0;
19028
19779
  } else {
19780
+ peg$currPos = s7;
19029
19781
  s7 = peg$FAILED;
19030
- if (peg$silentFails === 0) {
19031
- peg$fail(peg$c39);
19032
- }
19033
19782
  }
19034
19783
  if (s7 !== peg$FAILED) {
19035
- s3 = [s3, s4, s5, s6, s7];
19036
- s2 = s3;
19784
+ if (input.length > peg$currPos) {
19785
+ s8 = input.charAt(peg$currPos);
19786
+ peg$currPos++;
19787
+ } else {
19788
+ s8 = peg$FAILED;
19789
+ if (peg$silentFails === 0) {
19790
+ peg$fail(peg$c39);
19791
+ }
19792
+ }
19793
+ if (s8 !== peg$FAILED) {
19794
+ s4 = [s4, s5, s6, s7, s8];
19795
+ s3 = s4;
19796
+ } else {
19797
+ peg$currPos = s3;
19798
+ s3 = peg$FAILED;
19799
+ }
19037
19800
  } else {
19038
- peg$currPos = s2;
19039
- s2 = peg$FAILED;
19801
+ peg$currPos = s3;
19802
+ s3 = peg$FAILED;
19040
19803
  }
19041
19804
  } else {
19042
- peg$currPos = s2;
19043
- s2 = peg$FAILED;
19805
+ peg$currPos = s3;
19806
+ s3 = peg$FAILED;
19044
19807
  }
19045
19808
  } else {
19046
- peg$currPos = s2;
19047
- s2 = peg$FAILED;
19809
+ peg$currPos = s3;
19810
+ s3 = peg$FAILED;
19048
19811
  }
19049
19812
  } else {
19050
- peg$currPos = s2;
19051
- s2 = peg$FAILED;
19813
+ peg$currPos = s3;
19814
+ s3 = peg$FAILED;
19052
19815
  }
19053
- } else {
19054
- peg$currPos = s2;
19055
- s2 = peg$FAILED;
19056
19816
  }
19057
19817
  }
19058
19818
  }
19059
19819
  } else {
19060
- s1 = peg$FAILED;
19820
+ s2 = peg$FAILED;
19061
19821
  }
19062
- if (s1 !== peg$FAILED) {
19063
- s0 = input.substring(s0, peg$currPos);
19822
+ if (s2 !== peg$FAILED) {
19823
+ s1 = input.substring(s1, peg$currPos);
19064
19824
  } else {
19065
- s0 = s1;
19825
+ s1 = s2;
19826
+ }
19827
+ if (s1 !== peg$FAILED) {
19828
+ peg$savedPos = s0;
19829
+ s1 = peg$c63(s1);
19066
19830
  }
19831
+ s0 = s1;
19067
19832
  return s0;
19068
19833
  }
19069
19834
  function peg$parsecode_L() {
19070
19835
  var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
19071
19836
  s0 = peg$currPos;
19072
- s1 = peg$parsestart_code();
19837
+ s1 = peg$parsestart_code_2();
19073
19838
  if (s1 !== peg$FAILED) {
19074
19839
  peg$savedPos = peg$currPos;
19075
- s2 = peg$c57(s1);
19840
+ s2 = peg$c64(s1);
19076
19841
  if (s2) {
19077
19842
  s2 = void 0;
19078
19843
  } else {
@@ -19175,7 +19940,7 @@ var require_grammarfc = __commonJS({
19175
19940
  }
19176
19941
  if (s6 !== peg$FAILED) {
19177
19942
  peg$savedPos = s4;
19178
- s5 = peg$c58(s1, s3, s6);
19943
+ s5 = peg$c65(s1, s3, s6);
19179
19944
  s4 = s5;
19180
19945
  } else {
19181
19946
  peg$currPos = s4;
@@ -19191,9 +19956,21 @@ var require_grammarfc = __commonJS({
19191
19956
  if (s4 !== peg$FAILED) {
19192
19957
  s5 = peg$parseend_code();
19193
19958
  if (s5 !== peg$FAILED) {
19194
- peg$savedPos = s0;
19195
- s1 = peg$c59(s1, s3, s4);
19196
- s0 = s1;
19959
+ peg$savedPos = peg$currPos;
19960
+ s6 = peg$c66(s1, s3, s4, s5);
19961
+ if (s6) {
19962
+ s6 = void 0;
19963
+ } else {
19964
+ s6 = peg$FAILED;
19965
+ }
19966
+ if (s6 !== peg$FAILED) {
19967
+ peg$savedPos = s0;
19968
+ s1 = peg$c67(s1, s3, s4, s5);
19969
+ s0 = s1;
19970
+ } else {
19971
+ peg$currPos = s0;
19972
+ s0 = peg$FAILED;
19973
+ }
19197
19974
  } else {
19198
19975
  peg$currPos = s0;
19199
19976
  s0 = peg$FAILED;
@@ -19224,12 +20001,12 @@ var require_grammarfc = __commonJS({
19224
20001
  s3 = peg$currPos;
19225
20002
  peg$silentFails++;
19226
20003
  if (input.charCodeAt(peg$currPos) === 59) {
19227
- s4 = peg$c60;
20004
+ s4 = peg$c68;
19228
20005
  peg$currPos++;
19229
20006
  } else {
19230
20007
  s4 = peg$FAILED;
19231
20008
  if (peg$silentFails === 0) {
19232
- peg$fail(peg$c61);
20009
+ peg$fail(peg$c69);
19233
20010
  }
19234
20011
  }
19235
20012
  peg$silentFails--;
@@ -19282,12 +20059,12 @@ var require_grammarfc = __commonJS({
19282
20059
  s3 = peg$currPos;
19283
20060
  peg$silentFails++;
19284
20061
  if (input.charCodeAt(peg$currPos) === 59) {
19285
- s4 = peg$c60;
20062
+ s4 = peg$c68;
19286
20063
  peg$currPos++;
19287
20064
  } else {
19288
20065
  s4 = peg$FAILED;
19289
20066
  if (peg$silentFails === 0) {
19290
- peg$fail(peg$c61);
20067
+ peg$fail(peg$c69);
19291
20068
  }
19292
20069
  }
19293
20070
  peg$silentFails--;
@@ -19346,13 +20123,13 @@ var require_grammarfc = __commonJS({
19346
20123
  }
19347
20124
  function peg$parsehs() {
19348
20125
  var s0;
19349
- if (peg$c62.test(input.charAt(peg$currPos))) {
20126
+ if (peg$c70.test(input.charAt(peg$currPos))) {
19350
20127
  s0 = input.charAt(peg$currPos);
19351
20128
  peg$currPos++;
19352
20129
  } else {
19353
20130
  s0 = peg$FAILED;
19354
20131
  if (peg$silentFails === 0) {
19355
- peg$fail(peg$c63);
20132
+ peg$fail(peg$c71);
19356
20133
  }
19357
20134
  }
19358
20135
  return s0;
@@ -19370,12 +20147,12 @@ var require_grammarfc = __commonJS({
19370
20147
  }
19371
20148
  if (s2 !== peg$FAILED) {
19372
20149
  if (input.charCodeAt(peg$currPos) === 59) {
19373
- s3 = peg$c60;
20150
+ s3 = peg$c68;
19374
20151
  peg$currPos++;
19375
20152
  } else {
19376
20153
  s3 = peg$FAILED;
19377
20154
  if (peg$silentFails === 0) {
19378
- peg$fail(peg$c61);
20155
+ peg$fail(peg$c69);
19379
20156
  }
19380
20157
  }
19381
20158
  if (s3 !== peg$FAILED) {
@@ -19389,7 +20166,7 @@ var require_grammarfc = __commonJS({
19389
20166
  s5 = peg$parsearray_items();
19390
20167
  if (s5 !== peg$FAILED) {
19391
20168
  peg$savedPos = s0;
19392
- s1 = peg$c64(s1, s5);
20169
+ s1 = peg$c72(s1, s5);
19393
20170
  s0 = s1;
19394
20171
  } else {
19395
20172
  peg$currPos = s0;
@@ -19416,7 +20193,7 @@ var require_grammarfc = __commonJS({
19416
20193
  s1 = peg$parseitem();
19417
20194
  if (s1 !== peg$FAILED) {
19418
20195
  peg$savedPos = s0;
19419
- s1 = peg$c65(s1);
20196
+ s1 = peg$c73(s1);
19420
20197
  }
19421
20198
  s0 = s1;
19422
20199
  }
@@ -19428,7 +20205,7 @@ var require_grammarfc = __commonJS({
19428
20205
  s1 = peg$parsestart_code();
19429
20206
  if (s1 !== peg$FAILED) {
19430
20207
  peg$savedPos = peg$currPos;
19431
- s2 = peg$c66(s1);
20208
+ s2 = peg$c74(s1);
19432
20209
  if (s2) {
19433
20210
  s2 = void 0;
19434
20211
  } else {
@@ -19470,7 +20247,7 @@ var require_grammarfc = __commonJS({
19470
20247
  s5 = peg$parseend_code();
19471
20248
  if (s5 !== peg$FAILED) {
19472
20249
  peg$savedPos = s0;
19473
- s1 = peg$c67(s1, s3, s4);
20250
+ s1 = peg$c75(s1, s3, s4);
19474
20251
  s0 = s1;
19475
20252
  } else {
19476
20253
  peg$currPos = s0;
@@ -19500,7 +20277,7 @@ var require_grammarfc = __commonJS({
19500
20277
  s1 = peg$parsestart_code();
19501
20278
  if (s1 !== peg$FAILED) {
19502
20279
  peg$savedPos = peg$currPos;
19503
- s2 = peg$c68(s1);
20280
+ s2 = peg$c76(s1);
19504
20281
  if (s2) {
19505
20282
  s2 = void 0;
19506
20283
  } else {
@@ -19611,7 +20388,7 @@ var require_grammarfc = __commonJS({
19611
20388
  s1 = peg$parsestart_code();
19612
20389
  if (s1 !== peg$FAILED) {
19613
20390
  peg$savedPos = peg$currPos;
19614
- s2 = peg$c69(s1);
20391
+ s2 = peg$c77(s1);
19615
20392
  if (s2) {
19616
20393
  s2 = void 0;
19617
20394
  } else {
@@ -19720,25 +20497,25 @@ var require_grammarfc = __commonJS({
19720
20497
  var s0, s1, s2;
19721
20498
  s0 = peg$currPos;
19722
20499
  s1 = [];
19723
- if (peg$c70.test(input.charAt(peg$currPos))) {
20500
+ if (peg$c78.test(input.charAt(peg$currPos))) {
19724
20501
  s2 = input.charAt(peg$currPos);
19725
20502
  peg$currPos++;
19726
20503
  } else {
19727
20504
  s2 = peg$FAILED;
19728
20505
  if (peg$silentFails === 0) {
19729
- peg$fail(peg$c71);
20506
+ peg$fail(peg$c79);
19730
20507
  }
19731
20508
  }
19732
20509
  if (s2 !== peg$FAILED) {
19733
20510
  while (s2 !== peg$FAILED) {
19734
20511
  s1.push(s2);
19735
- if (peg$c70.test(input.charAt(peg$currPos))) {
20512
+ if (peg$c78.test(input.charAt(peg$currPos))) {
19736
20513
  s2 = input.charAt(peg$currPos);
19737
20514
  peg$currPos++;
19738
20515
  } else {
19739
20516
  s2 = peg$FAILED;
19740
20517
  if (peg$silentFails === 0) {
19741
- peg$fail(peg$c71);
20518
+ peg$fail(peg$c79);
19742
20519
  }
19743
20520
  }
19744
20521
  }
@@ -19755,20 +20532,20 @@ var require_grammarfc = __commonJS({
19755
20532
  function peg$parsedecimalNumber() {
19756
20533
  var s0, s1, s2;
19757
20534
  s0 = peg$currPos;
19758
- if (input.substr(peg$currPos, 2) === peg$c72) {
19759
- s1 = peg$c72;
20535
+ if (input.substr(peg$currPos, 2) === peg$c80) {
20536
+ s1 = peg$c80;
19760
20537
  peg$currPos += 2;
19761
20538
  } else {
19762
20539
  s1 = peg$FAILED;
19763
20540
  if (peg$silentFails === 0) {
19764
- peg$fail(peg$c73);
20541
+ peg$fail(peg$c81);
19765
20542
  }
19766
20543
  }
19767
20544
  if (s1 !== peg$FAILED) {
19768
20545
  s2 = peg$parsenumber();
19769
20546
  if (s2 !== peg$FAILED) {
19770
20547
  peg$savedPos = s0;
19771
- s1 = peg$c74(s2);
20548
+ s1 = peg$c82(s2);
19772
20549
  s0 = s1;
19773
20550
  } else {
19774
20551
  peg$currPos = s0;
@@ -19783,20 +20560,20 @@ var require_grammarfc = __commonJS({
19783
20560
  function peg$parseoctalNumber() {
19784
20561
  var s0, s1, s2;
19785
20562
  s0 = peg$currPos;
19786
- if (input.substr(peg$currPos, 2) === peg$c75) {
19787
- s1 = peg$c75;
20563
+ if (input.substr(peg$currPos, 2) === peg$c83) {
20564
+ s1 = peg$c83;
19788
20565
  peg$currPos += 2;
19789
20566
  } else {
19790
20567
  s1 = peg$FAILED;
19791
20568
  if (peg$silentFails === 0) {
19792
- peg$fail(peg$c76);
20569
+ peg$fail(peg$c84);
19793
20570
  }
19794
20571
  }
19795
20572
  if (s1 !== peg$FAILED) {
19796
20573
  s2 = peg$parsenumber();
19797
20574
  if (s2 !== peg$FAILED) {
19798
20575
  peg$savedPos = s0;
19799
- s1 = peg$c77(s2);
20576
+ s1 = peg$c85(s2);
19800
20577
  s0 = s1;
19801
20578
  } else {
19802
20579
  peg$currPos = s0;
@@ -19811,20 +20588,20 @@ var require_grammarfc = __commonJS({
19811
20588
  function peg$parsebinaryNumber() {
19812
20589
  var s0, s1, s2;
19813
20590
  s0 = peg$currPos;
19814
- if (input.substr(peg$currPos, 2) === peg$c78) {
19815
- s1 = peg$c78;
20591
+ if (input.substr(peg$currPos, 2) === peg$c86) {
20592
+ s1 = peg$c86;
19816
20593
  peg$currPos += 2;
19817
20594
  } else {
19818
20595
  s1 = peg$FAILED;
19819
20596
  if (peg$silentFails === 0) {
19820
- peg$fail(peg$c79);
20597
+ peg$fail(peg$c87);
19821
20598
  }
19822
20599
  }
19823
20600
  if (s1 !== peg$FAILED) {
19824
20601
  s2 = peg$parsenumber();
19825
20602
  if (s2 !== peg$FAILED) {
19826
20603
  peg$savedPos = s0;
19827
- s1 = peg$c80(s2);
20604
+ s1 = peg$c88(s2);
19828
20605
  s0 = s1;
19829
20606
  } else {
19830
20607
  peg$currPos = s0;
@@ -19841,36 +20618,36 @@ var require_grammarfc = __commonJS({
19841
20618
  s0 = peg$currPos;
19842
20619
  s1 = peg$currPos;
19843
20620
  s2 = peg$currPos;
19844
- if (input.substr(peg$currPos, 2) === peg$c81) {
19845
- s3 = peg$c81;
20621
+ if (input.substr(peg$currPos, 2) === peg$c89) {
20622
+ s3 = peg$c89;
19846
20623
  peg$currPos += 2;
19847
20624
  } else {
19848
20625
  s3 = peg$FAILED;
19849
20626
  if (peg$silentFails === 0) {
19850
- peg$fail(peg$c82);
20627
+ peg$fail(peg$c90);
19851
20628
  }
19852
20629
  }
19853
20630
  if (s3 !== peg$FAILED) {
19854
20631
  s4 = [];
19855
- if (peg$c83.test(input.charAt(peg$currPos))) {
20632
+ if (peg$c91.test(input.charAt(peg$currPos))) {
19856
20633
  s5 = input.charAt(peg$currPos);
19857
20634
  peg$currPos++;
19858
20635
  } else {
19859
20636
  s5 = peg$FAILED;
19860
20637
  if (peg$silentFails === 0) {
19861
- peg$fail(peg$c84);
20638
+ peg$fail(peg$c92);
19862
20639
  }
19863
20640
  }
19864
20641
  if (s5 !== peg$FAILED) {
19865
20642
  while (s5 !== peg$FAILED) {
19866
20643
  s4.push(s5);
19867
- if (peg$c83.test(input.charAt(peg$currPos))) {
20644
+ if (peg$c91.test(input.charAt(peg$currPos))) {
19868
20645
  s5 = input.charAt(peg$currPos);
19869
20646
  peg$currPos++;
19870
20647
  } else {
19871
20648
  s5 = peg$FAILED;
19872
20649
  if (peg$silentFails === 0) {
19873
- peg$fail(peg$c84);
20650
+ peg$fail(peg$c92);
19874
20651
  }
19875
20652
  }
19876
20653
  }
@@ -19895,7 +20672,7 @@ var require_grammarfc = __commonJS({
19895
20672
  }
19896
20673
  if (s1 !== peg$FAILED) {
19897
20674
  peg$savedPos = s0;
19898
- s1 = peg$c85();
20675
+ s1 = peg$c93();
19899
20676
  }
19900
20677
  s0 = s1;
19901
20678
  return s0;
@@ -19920,7 +20697,7 @@ var require_grammarfc = __commonJS({
19920
20697
  }
19921
20698
  if (s2 !== peg$FAILED) {
19922
20699
  peg$savedPos = s0;
19923
- s1 = peg$c86(s2);
20700
+ s1 = peg$c94(s2);
19924
20701
  s0 = s1;
19925
20702
  } else {
19926
20703
  peg$currPos = s0;
@@ -19945,12 +20722,12 @@ var require_grammarfc = __commonJS({
19945
20722
  }
19946
20723
  if (s2 !== peg$FAILED) {
19947
20724
  if (input.charCodeAt(peg$currPos) === 59) {
19948
- s3 = peg$c60;
20725
+ s3 = peg$c68;
19949
20726
  peg$currPos++;
19950
20727
  } else {
19951
20728
  s3 = peg$FAILED;
19952
20729
  if (peg$silentFails === 0) {
19953
- peg$fail(peg$c61);
20730
+ peg$fail(peg$c69);
19954
20731
  }
19955
20732
  }
19956
20733
  if (s3 !== peg$FAILED) {
@@ -19964,7 +20741,7 @@ var require_grammarfc = __commonJS({
19964
20741
  s5 = peg$parsearray_E_items();
19965
20742
  if (s5 !== peg$FAILED) {
19966
20743
  peg$savedPos = s0;
19967
- s1 = peg$c64(s1, s5);
20744
+ s1 = peg$c72(s1, s5);
19968
20745
  s0 = s1;
19969
20746
  } else {
19970
20747
  peg$currPos = s0;
@@ -19991,7 +20768,7 @@ var require_grammarfc = __commonJS({
19991
20768
  s1 = peg$parseitem_E();
19992
20769
  if (s1 !== peg$FAILED) {
19993
20770
  peg$savedPos = s0;
19994
- s1 = peg$c65(s1);
20771
+ s1 = peg$c73(s1);
19995
20772
  }
19996
20773
  s0 = s1;
19997
20774
  }
@@ -20003,7 +20780,7 @@ var require_grammarfc = __commonJS({
20003
20780
  s1 = peg$parsestart_code();
20004
20781
  if (s1 !== peg$FAILED) {
20005
20782
  peg$savedPos = peg$currPos;
20006
- s2 = peg$c87(s1);
20783
+ s2 = peg$c95(s1);
20007
20784
  if (s2) {
20008
20785
  s2 = void 0;
20009
20786
  } else {
@@ -20014,7 +20791,7 @@ var require_grammarfc = __commonJS({
20014
20791
  s4 = peg$parsearray_E_items();
20015
20792
  if (s4 !== peg$FAILED) {
20016
20793
  peg$savedPos = s3;
20017
- s4 = peg$c88(s1, s4);
20794
+ s4 = peg$c96(s1, s4);
20018
20795
  }
20019
20796
  s3 = s4;
20020
20797
  if (s3 === peg$FAILED) {
@@ -20024,7 +20801,7 @@ var require_grammarfc = __commonJS({
20024
20801
  s4 = peg$parseend_code();
20025
20802
  if (s4 !== peg$FAILED) {
20026
20803
  peg$savedPos = s0;
20027
- s1 = peg$c89(s1, s3);
20804
+ s1 = peg$c97(s1, s3);
20028
20805
  s0 = s1;
20029
20806
  } else {
20030
20807
  peg$currPos = s0;
@@ -20066,7 +20843,58 @@ var require_grammarfc = __commonJS({
20066
20843
  }
20067
20844
  if (s2 !== peg$FAILED) {
20068
20845
  peg$savedPos = s0;
20069
- s1 = peg$c90(s1);
20846
+ s1 = peg$c98(s1);
20847
+ s0 = s1;
20848
+ } else {
20849
+ peg$currPos = s0;
20850
+ s0 = peg$FAILED;
20851
+ }
20852
+ } else {
20853
+ peg$currPos = s0;
20854
+ s0 = peg$FAILED;
20855
+ }
20856
+ return s0;
20857
+ }
20858
+ function peg$parsestart_code_2() {
20859
+ var s0, s1, s2, s3;
20860
+ s0 = peg$currPos;
20861
+ s1 = peg$currPos;
20862
+ s2 = peg$parseallowed_code();
20863
+ if (s2 !== peg$FAILED) {
20864
+ s1 = input.substring(s1, peg$currPos);
20865
+ } else {
20866
+ s1 = s2;
20867
+ }
20868
+ if (s1 !== peg$FAILED) {
20869
+ s2 = peg$currPos;
20870
+ if (input.charCodeAt(peg$currPos) === 60) {
20871
+ s3 = peg$c48;
20872
+ peg$currPos++;
20873
+ } else {
20874
+ s3 = peg$FAILED;
20875
+ if (peg$silentFails === 0) {
20876
+ peg$fail(peg$c49);
20877
+ }
20878
+ }
20879
+ if (s3 === peg$FAILED) {
20880
+ if (input.charCodeAt(peg$currPos) === 171) {
20881
+ s3 = peg$c53;
20882
+ peg$currPos++;
20883
+ } else {
20884
+ s3 = peg$FAILED;
20885
+ if (peg$silentFails === 0) {
20886
+ peg$fail(peg$c54);
20887
+ }
20888
+ }
20889
+ }
20890
+ if (s3 !== peg$FAILED) {
20891
+ s2 = input.substring(s2, peg$currPos);
20892
+ } else {
20893
+ s2 = s3;
20894
+ }
20895
+ if (s2 !== peg$FAILED) {
20896
+ peg$savedPos = s0;
20897
+ s1 = peg$c99(s1, s2);
20070
20898
  s0 = s1;
20071
20899
  } else {
20072
20900
  peg$currPos = s0;
@@ -20089,15 +20917,26 @@ var require_grammarfc = __commonJS({
20089
20917
  peg$fail(peg$c51);
20090
20918
  }
20091
20919
  }
20920
+ if (s0 === peg$FAILED) {
20921
+ if (input.charCodeAt(peg$currPos) === 187) {
20922
+ s0 = peg$c55;
20923
+ peg$currPos++;
20924
+ } else {
20925
+ s0 = peg$FAILED;
20926
+ if (peg$silentFails === 0) {
20927
+ peg$fail(peg$c56);
20928
+ }
20929
+ }
20930
+ }
20092
20931
  return s0;
20093
20932
  }
20094
- function peg$parsecode() {
20095
- var s0, s1, s2, s3, s4;
20933
+ function peg$parsecode_2() {
20934
+ var s0, s1, s2, s3, s4, s5;
20096
20935
  s0 = peg$currPos;
20097
- s1 = peg$parsestart_code();
20936
+ s1 = peg$parsestart_code_2();
20098
20937
  if (s1 !== peg$FAILED) {
20099
20938
  peg$savedPos = peg$currPos;
20100
- s2 = peg$c91(s1);
20939
+ s2 = peg$c100(s1);
20101
20940
  if (s2) {
20102
20941
  s2 = void 0;
20103
20942
  } else {
@@ -20107,7 +20946,7 @@ var require_grammarfc = __commonJS({
20107
20946
  s3 = [];
20108
20947
  s4 = peg$parseallowed_rules();
20109
20948
  if (s4 === peg$FAILED) {
20110
- s4 = peg$parsecode();
20949
+ s4 = peg$parsecode_2();
20111
20950
  if (s4 === peg$FAILED) {
20112
20951
  s4 = peg$parsetext();
20113
20952
  }
@@ -20116,7 +20955,7 @@ var require_grammarfc = __commonJS({
20116
20955
  s3.push(s4);
20117
20956
  s4 = peg$parseallowed_rules();
20118
20957
  if (s4 === peg$FAILED) {
20119
- s4 = peg$parsecode();
20958
+ s4 = peg$parsecode_2();
20120
20959
  if (s4 === peg$FAILED) {
20121
20960
  s4 = peg$parsetext();
20122
20961
  }
@@ -20125,9 +20964,21 @@ var require_grammarfc = __commonJS({
20125
20964
  if (s3 !== peg$FAILED) {
20126
20965
  s4 = peg$parseend_code();
20127
20966
  if (s4 !== peg$FAILED) {
20128
- peg$savedPos = s0;
20129
- s1 = peg$c92(s1, s3);
20130
- s0 = s1;
20967
+ peg$savedPos = peg$currPos;
20968
+ s5 = peg$c101(s1, s3, s4);
20969
+ if (s5) {
20970
+ s5 = void 0;
20971
+ } else {
20972
+ s5 = peg$FAILED;
20973
+ }
20974
+ if (s5 !== peg$FAILED) {
20975
+ peg$savedPos = s0;
20976
+ s1 = peg$c102(s1, s3, s4);
20977
+ s0 = s1;
20978
+ } else {
20979
+ peg$currPos = s0;
20980
+ s0 = peg$FAILED;
20981
+ }
20131
20982
  } else {
20132
20983
  peg$currPos = s0;
20133
20984
  s0 = peg$FAILED;
@@ -20267,9 +21118,48 @@ var require_grammarfc = __commonJS({
20267
21118
  s3 = peg$FAILED;
20268
21119
  }
20269
21120
  if (s3 === peg$FAILED) {
20270
- s3 = peg$parselooks_like_code();
21121
+ s3 = peg$currPos;
21122
+ if (input.charCodeAt(peg$currPos) === 171) {
21123
+ s4 = peg$c53;
21124
+ peg$currPos++;
21125
+ } else {
21126
+ s4 = peg$FAILED;
21127
+ if (peg$silentFails === 0) {
21128
+ peg$fail(peg$c54);
21129
+ }
21130
+ }
21131
+ if (s4 !== peg$FAILED) {
21132
+ s5 = peg$parsetext();
21133
+ if (s5 !== peg$FAILED) {
21134
+ if (input.charCodeAt(peg$currPos) === 187) {
21135
+ s6 = peg$c55;
21136
+ peg$currPos++;
21137
+ } else {
21138
+ s6 = peg$FAILED;
21139
+ if (peg$silentFails === 0) {
21140
+ peg$fail(peg$c56);
21141
+ }
21142
+ }
21143
+ if (s6 !== peg$FAILED) {
21144
+ s4 = [s4, s5, s6];
21145
+ s3 = s4;
21146
+ } else {
21147
+ peg$currPos = s3;
21148
+ s3 = peg$FAILED;
21149
+ }
21150
+ } else {
21151
+ peg$currPos = s3;
21152
+ s3 = peg$FAILED;
21153
+ }
21154
+ } else {
21155
+ peg$currPos = s3;
21156
+ s3 = peg$FAILED;
21157
+ }
20271
21158
  if (s3 === peg$FAILED) {
20272
- s3 = peg$parsenot_code();
21159
+ s3 = peg$parselooks_like_code();
21160
+ if (s3 === peg$FAILED) {
21161
+ s3 = peg$parsenot_code();
21162
+ }
20273
21163
  }
20274
21164
  }
20275
21165
  if (s3 !== peg$FAILED) {
@@ -20313,9 +21203,48 @@ var require_grammarfc = __commonJS({
20313
21203
  s3 = peg$FAILED;
20314
21204
  }
20315
21205
  if (s3 === peg$FAILED) {
20316
- s3 = peg$parselooks_like_code();
21206
+ s3 = peg$currPos;
21207
+ if (input.charCodeAt(peg$currPos) === 171) {
21208
+ s4 = peg$c53;
21209
+ peg$currPos++;
21210
+ } else {
21211
+ s4 = peg$FAILED;
21212
+ if (peg$silentFails === 0) {
21213
+ peg$fail(peg$c54);
21214
+ }
21215
+ }
21216
+ if (s4 !== peg$FAILED) {
21217
+ s5 = peg$parsetext();
21218
+ if (s5 !== peg$FAILED) {
21219
+ if (input.charCodeAt(peg$currPos) === 187) {
21220
+ s6 = peg$c55;
21221
+ peg$currPos++;
21222
+ } else {
21223
+ s6 = peg$FAILED;
21224
+ if (peg$silentFails === 0) {
21225
+ peg$fail(peg$c56);
21226
+ }
21227
+ }
21228
+ if (s6 !== peg$FAILED) {
21229
+ s4 = [s4, s5, s6];
21230
+ s3 = s4;
21231
+ } else {
21232
+ peg$currPos = s3;
21233
+ s3 = peg$FAILED;
21234
+ }
21235
+ } else {
21236
+ peg$currPos = s3;
21237
+ s3 = peg$FAILED;
21238
+ }
21239
+ } else {
21240
+ peg$currPos = s3;
21241
+ s3 = peg$FAILED;
21242
+ }
20317
21243
  if (s3 === peg$FAILED) {
20318
- s3 = peg$parsenot_code();
21244
+ s3 = peg$parselooks_like_code();
21245
+ if (s3 === peg$FAILED) {
21246
+ s3 = peg$parsenot_code();
21247
+ }
20319
21248
  }
20320
21249
  }
20321
21250
  }
@@ -20329,7 +21258,7 @@ var require_grammarfc = __commonJS({
20329
21258
  }
20330
21259
  if (s1 !== peg$FAILED) {
20331
21260
  peg$savedPos = s0;
20332
- s1 = peg$c53(s1);
21261
+ s1 = peg$c57(s1);
20333
21262
  }
20334
21263
  s0 = s1;
20335
21264
  return s0;
@@ -20353,7 +21282,7 @@ var require_grammarfc = __commonJS({
20353
21282
  if (s4 !== peg$FAILED) {
20354
21283
  s5 = peg$currPos;
20355
21284
  peg$silentFails++;
20356
- s6 = peg$parsestart_code();
21285
+ s6 = peg$parsestart_code_2();
20357
21286
  peg$silentFails--;
20358
21287
  if (s6 === peg$FAILED) {
20359
21288
  s5 = void 0;
@@ -20418,7 +21347,7 @@ var require_grammarfc = __commonJS({
20418
21347
  if (s4 !== peg$FAILED) {
20419
21348
  s5 = peg$currPos;
20420
21349
  peg$silentFails++;
20421
- s6 = peg$parsestart_code();
21350
+ s6 = peg$parsestart_code_2();
20422
21351
  peg$silentFails--;
20423
21352
  if (s6 === peg$FAILED) {
20424
21353
  s5 = void 0;
@@ -20477,7 +21406,7 @@ var require_grammarfc = __commonJS({
20477
21406
  }
20478
21407
  if (s1 !== peg$FAILED) {
20479
21408
  peg$savedPos = s0;
20480
- s1 = peg$c53(s1);
21409
+ s1 = peg$c57(s1);
20481
21410
  }
20482
21411
  s0 = s1;
20483
21412
  return s0;
@@ -20559,11 +21488,92 @@ var require_grammarfc = __commonJS({
20559
21488
  peg$currPos = s0;
20560
21489
  s0 = peg$FAILED;
20561
21490
  }
21491
+ if (s0 === peg$FAILED) {
21492
+ s0 = peg$currPos;
21493
+ s1 = peg$currPos;
21494
+ s2 = peg$currPos;
21495
+ peg$silentFails++;
21496
+ s3 = peg$parseallowed_code();
21497
+ peg$silentFails--;
21498
+ if (s3 === peg$FAILED) {
21499
+ s2 = void 0;
21500
+ } else {
21501
+ peg$currPos = s2;
21502
+ s2 = peg$FAILED;
21503
+ }
21504
+ if (s2 !== peg$FAILED) {
21505
+ if (input.length > peg$currPos) {
21506
+ s3 = input.charAt(peg$currPos);
21507
+ peg$currPos++;
21508
+ } else {
21509
+ s3 = peg$FAILED;
21510
+ if (peg$silentFails === 0) {
21511
+ peg$fail(peg$c39);
21512
+ }
21513
+ }
21514
+ if (s3 !== peg$FAILED) {
21515
+ s2 = [s2, s3];
21516
+ s1 = s2;
21517
+ } else {
21518
+ peg$currPos = s1;
21519
+ s1 = peg$FAILED;
21520
+ }
21521
+ } else {
21522
+ peg$currPos = s1;
21523
+ s1 = peg$FAILED;
21524
+ }
21525
+ if (s1 !== peg$FAILED) {
21526
+ if (input.charCodeAt(peg$currPos) === 171) {
21527
+ s2 = peg$c53;
21528
+ peg$currPos++;
21529
+ } else {
21530
+ s2 = peg$FAILED;
21531
+ if (peg$silentFails === 0) {
21532
+ peg$fail(peg$c54);
21533
+ }
21534
+ }
21535
+ if (s2 !== peg$FAILED) {
21536
+ s3 = peg$parsenot_code();
21537
+ if (s3 !== peg$FAILED) {
21538
+ if (input.charCodeAt(peg$currPos) === 187) {
21539
+ s4 = peg$c55;
21540
+ peg$currPos++;
21541
+ } else {
21542
+ s4 = peg$FAILED;
21543
+ if (peg$silentFails === 0) {
21544
+ peg$fail(peg$c56);
21545
+ }
21546
+ }
21547
+ if (s4 !== peg$FAILED) {
21548
+ peg$savedPos = s0;
21549
+ s1 = peg$c52();
21550
+ s0 = s1;
21551
+ } else {
21552
+ peg$currPos = s0;
21553
+ s0 = peg$FAILED;
21554
+ }
21555
+ } else {
21556
+ peg$currPos = s0;
21557
+ s0 = peg$FAILED;
21558
+ }
21559
+ } else {
21560
+ peg$currPos = s0;
21561
+ s0 = peg$FAILED;
21562
+ }
21563
+ } else {
21564
+ peg$currPos = s0;
21565
+ s0 = peg$FAILED;
21566
+ }
21567
+ }
20562
21568
  return s0;
20563
21569
  }
20564
21570
  function flattenDeep4(arr) {
20565
21571
  return arr.reduce((acc, val) => Array.isArray(val) ? acc.concat(flattenDeep4(val)) : acc.concat(val), []);
20566
21572
  }
21573
+ function get_pair_tag(tag) {
21574
+ const map = { "<": ">", "\xAB": "\xBB", ">": "<", "\xBB": "\xAB" };
21575
+ return map[tag];
21576
+ }
20567
21577
  peg$result = peg$startRuleFunction();
20568
21578
  if (peg$result !== peg$FAILED && peg$currPos === input.length) {
20569
21579
  return peg$result;
@@ -20590,9 +21600,9 @@ var require_package = __commonJS({
20590
21600
  "../podlite-schema/package.json"(exports, module) {
20591
21601
  module.exports = {
20592
21602
  name: "@podlite/schema",
20593
- version: "0.0.13",
20594
- description: "podlite schema",
20595
- main: "src/index.ts",
21603
+ version: "0.0.14",
21604
+ description: "AST tools for Podlite markup language",
21605
+ main: "./src/index.ts",
20596
21606
  types: "./lib/index.d.ts",
20597
21607
  license: "MIT",
20598
21608
  files: [
@@ -20619,6 +21629,7 @@ var require_package = __commonJS({
20619
21629
  "build:esm": "yarn g:tsctest -p tsconfig.esm.json",
20620
21630
  "build:pegjs": "pegjs -o src/grammar.js src/grammar.pegjs && pegjs -o src/grammarfc.js src/grammarfc.pegjs",
20621
21631
  watch: "npx nodemon -e js,ts --exec 'yarn' build",
21632
+ "watch:pegjs": "npx nodemon -e pegjs --exec 'yarn' build:pegjs",
20622
21633
  test: "yarn g:jest --passWithNoTests"
20623
21634
  },
20624
21635
  keywords: [
@@ -21317,8 +22328,9 @@ var middle2 = () => (tree) => {
21317
22328
  const conf = config_default(n, ctx);
21318
22329
  const isCodeBlock = "name" in n && n.name === "code";
21319
22330
  const isDataBlock = "name" in n && n.name === "data";
22331
+ const isMarkdownBlock = "name" in n && n.name === "markdown";
21320
22332
  const allowValues = conf.getAllValues("allow");
21321
- if ((isCodeBlock || isDataBlock) && allowValues.length == 0)
22333
+ if ((isCodeBlock || isDataBlock || isMarkdownBlock) && allowValues.length == 0)
21322
22334
  return n;
21323
22335
  const allowed = allowValues.sort();
21324
22336
  const transformer = makeTransformer_default({
@@ -30152,7 +31164,8 @@ var plugin = {
30152
31164
  }
30153
31165
  };
30154
31166
  var PluginRegister = {
30155
- Markdown: plugin
31167
+ Markdown: plugin,
31168
+ markdown: plugin
30156
31169
  };
30157
31170
  var src_default = plugin;
30158
31171
  export {