@danielx/civet 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -474,6 +474,7 @@ var require_parser = __commonJS({
474
474
  NestedElement,
475
475
  ArrayElementDelimiter,
476
476
  ElementList,
477
+ InlineElementList,
477
478
  ArrayElementExpression,
478
479
  Elision,
479
480
  ObjectLiteral,
@@ -575,6 +576,7 @@ var require_parser = __commonJS({
575
576
  _,
576
577
  __,
577
578
  StatementDelimiter,
579
+ NonIdContinue,
578
580
  JSXElement,
579
581
  JSXSelfClosingElement,
580
582
  JSXOpeningElement,
@@ -772,42 +774,41 @@ var require_parser = __commonJS({
772
774
  var $L131 = $L("[]");
773
775
  var $L132 = $L(" ");
774
776
  var $L133 = $L(" ");
775
- var $R0 = $R(new RegExp("(?!\\p{ID_Continue})", "suy"));
776
- var $R1 = $R(new RegExp("(of)(?!\\p{ID_Continue})", "suy"));
777
- var $R2 = $R(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
778
- var $R3 = $R(new RegExp("\\p{ID_Continue}", "suy"));
779
- var $R4 = $R(new RegExp("[!~+-]", "suy"));
780
- var $R5 = $R(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy"));
781
- var $R6 = $R(new RegExp("\\d+(?:\\.\\d*)?", "suy"));
782
- var $R7 = $R(new RegExp("0[bB][01](?:[01]|_[01])*", "suy"));
783
- var $R8 = $R(new RegExp("0[oO][0-7](?:[0-7]|_[0-7])*", "suy"));
784
- var $R9 = $R(new RegExp("0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*", "suy"));
785
- var $R10 = $R(new RegExp('[^"\\\\]+', "suy"));
786
- var $R11 = $R(new RegExp("[^'\\\\]+", "suy"));
787
- var $R12 = $R(new RegExp('(?:"(?!"")|\\\\.|[^"])+', "suy"));
788
- var $R13 = $R(new RegExp(".", "suy"));
789
- var $R14 = $R(new RegExp("[^*\\/\\r\\n]", "suy"));
790
- var $R15 = $R(new RegExp("[^\\/\\r\\n]+", "suy"));
791
- var $R16 = $R(new RegExp("(:?\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
792
- var $R17 = $R(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy"));
793
- var $R18 = $R(new RegExp("(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|new|null|or|return|super|switch|this|throw|true|try|typeof|unless|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
794
- var $R19 = $R(new RegExp("\\/\\/[^\\r\\n]*", "suy"));
795
- var $R20 = $R(new RegExp("#([^\\r\\n]*)", "suy"));
796
- var $R21 = $R(new RegExp("[^\\r\\n]", "suy"));
797
- var $R22 = $R(new RegExp("[\\t ]+", "suy"));
798
- var $R23 = $R(new RegExp("[\\s]+", "suy"));
799
- var $R24 = $R(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy"));
800
- var $R25 = $R(new RegExp('"[^"]*"', "suy"));
801
- var $R26 = $R(new RegExp("'[^']*'", "suy"));
802
- var $R27 = $R(new RegExp("[^{}<>]+", "suy"));
803
- var $R28 = $R(new RegExp("type(?!\\p{ID_Continue})", "suy"));
804
- var $R29 = $R(new RegExp("interface(?!\\p{ID_Continue})", "suy"));
805
- var $R30 = $R(new RegExp("[+-]?", "suy"));
806
- var $R31 = $R(new RegExp("[+-]", "suy"));
807
- var $R32 = $R(new RegExp("#![^\\r\\n]*", "suy"));
808
- var $R33 = $R(new RegExp("[\\t ]*", "suy"));
809
- var $R34 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
810
- var $R35 = $R(new RegExp("$", "suy"));
777
+ var $R0 = $R(new RegExp("(of)(?!\\p{ID_Continue})", "suy"));
778
+ var $R1 = $R(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
779
+ var $R2 = $R(new RegExp("[!~+-]", "suy"));
780
+ var $R3 = $R(new RegExp("(?:0|[1-9](?:_[0-9]|[0-9])*)n", "suy"));
781
+ var $R4 = $R(new RegExp("\\d+(?:\\.\\d*)?", "suy"));
782
+ var $R5 = $R(new RegExp("0[bB][01](?:[01]|_[01])*", "suy"));
783
+ var $R6 = $R(new RegExp("0[oO][0-7](?:[0-7]|_[0-7])*", "suy"));
784
+ var $R7 = $R(new RegExp("0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*", "suy"));
785
+ var $R8 = $R(new RegExp('[^"\\\\]+', "suy"));
786
+ var $R9 = $R(new RegExp("[^'\\\\]+", "suy"));
787
+ var $R10 = $R(new RegExp('(?:"(?!"")|\\\\.|[^"])+', "suy"));
788
+ var $R11 = $R(new RegExp(".", "suy"));
789
+ var $R12 = $R(new RegExp("[^*\\/\\r\\n]", "suy"));
790
+ var $R13 = $R(new RegExp("[^\\/\\r\\n]+", "suy"));
791
+ var $R14 = $R(new RegExp("(:?\\p{ID_Continue}|[\\u200C\\u200D$])*", "suy"));
792
+ var $R15 = $R(new RegExp("(?:\\$(?!\\{)|\\\\.|[^$`])+", "suy"));
793
+ var $R16 = $R(new RegExp("(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|new|null|or|return|super|switch|this|throw|true|try|typeof|unless|var|void|while|with|yield)(?!\\p{ID_Continue})", "suy"));
794
+ var $R17 = $R(new RegExp("\\/\\/[^\\r\\n]*", "suy"));
795
+ var $R18 = $R(new RegExp("#([^\\r\\n]*)", "suy"));
796
+ var $R19 = $R(new RegExp("[^\\r\\n]", "suy"));
797
+ var $R20 = $R(new RegExp("[\\t ]+", "suy"));
798
+ var $R21 = $R(new RegExp("[\\s]+", "suy"));
799
+ var $R22 = $R(new RegExp("(?!\\p{ID_Continue})", "suy"));
800
+ var $R23 = $R(new RegExp("(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*", "suy"));
801
+ var $R24 = $R(new RegExp('"[^"]*"', "suy"));
802
+ var $R25 = $R(new RegExp("'[^']*'", "suy"));
803
+ var $R26 = $R(new RegExp("[^{}<>]+", "suy"));
804
+ var $R27 = $R(new RegExp("type(?!\\p{ID_Continue})", "suy"));
805
+ var $R28 = $R(new RegExp("interface(?!\\p{ID_Continue})", "suy"));
806
+ var $R29 = $R(new RegExp("[+-]?", "suy"));
807
+ var $R30 = $R(new RegExp("[+-]", "suy"));
808
+ var $R31 = $R(new RegExp("#![^\\r\\n]*", "suy"));
809
+ var $R32 = $R(new RegExp("[\\t ]*", "suy"));
810
+ var $R33 = $R(new RegExp("\\r\\n|\\n|\\r|$", "suy"));
811
+ var $R34 = $R(new RegExp("$", "suy"));
811
812
  var Program$0 = $S(Init, __, $Q(TopLevelStatement), __);
812
813
  function Program(state) {
813
814
  if (state.verbose)
@@ -921,7 +922,7 @@ var require_parser = __commonJS({
921
922
  }
922
923
  }
923
924
  var UnaryPostfix$0 = $EXPECT($L3, fail, 'UnaryPostfix "?"');
924
- var UnaryPostfix$1 = $S(__, $EXPECT($L4, fail, 'UnaryPostfix "as"'), $R$0($EXPECT($R0, fail, "UnaryPostfix /(?!\\p{ID_Continue})/")), Type);
925
+ var UnaryPostfix$1 = $S(__, $EXPECT($L4, fail, 'UnaryPostfix "as"'), NonIdContinue, Type);
925
926
  function UnaryPostfix(state) {
926
927
  if (state.tokenize) {
927
928
  return $TOKEN("UnaryPostfix", state, UnaryPostfix$0(state) || UnaryPostfix$1(state));
@@ -1209,7 +1210,7 @@ var require_parser = __commonJS({
1209
1210
  return ApplicationStart$0(state);
1210
1211
  }
1211
1212
  }
1212
- var AdditionalReservedWords$0 = $R$0($EXPECT($R1, fail, "AdditionalReservedWords /(of)(?!\\p{ID_Continue})/"));
1213
+ var AdditionalReservedWords$0 = $R$0($EXPECT($R0, fail, "AdditionalReservedWords /(of)(?!\\p{ID_Continue})/"));
1213
1214
  function AdditionalReservedWords(state) {
1214
1215
  if (state.verbose)
1215
1216
  console.log("ENTER:", "AdditionalReservedWords");
@@ -1490,7 +1491,7 @@ var require_parser = __commonJS({
1490
1491
  return Identifier$0(state);
1491
1492
  }
1492
1493
  }
1493
- var IdentifierName$0 = $R$0($EXPECT($R2, fail, "IdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
1494
+ var IdentifierName$0 = $R$0($EXPECT($R1, fail, "IdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
1494
1495
  function IdentifierName(state) {
1495
1496
  if (state.verbose)
1496
1497
  console.log("ENTER:", "IdentifierName");
@@ -1534,7 +1535,7 @@ var require_parser = __commonJS({
1534
1535
  return NestedElementList$0(state);
1535
1536
  }
1536
1537
  }
1537
- var NestedElement$0 = $S(Nested, ArrayElementExpression, ArrayElementDelimiter);
1538
+ var NestedElement$0 = $S(Nested, InlineElementList, ArrayElementDelimiter);
1538
1539
  function NestedElement(state) {
1539
1540
  if (state.verbose)
1540
1541
  console.log("ENTER:", "NestedElement");
@@ -1569,7 +1570,17 @@ var require_parser = __commonJS({
1569
1570
  return ElementList$0(state);
1570
1571
  }
1571
1572
  }
1572
- var ArrayElementExpression$0 = $E($S($E($S($EXPECT($L31, fail, 'ArrayElementExpression "..."'), __)), Expression));
1573
+ var InlineElementList$0 = $S(ArrayElementExpression, $Q($S($Q(_), $EXPECT($L0, fail, 'InlineElementList ","'), $Q(_), ArrayElementExpression)));
1574
+ function InlineElementList(state) {
1575
+ if (state.verbose)
1576
+ console.log("ENTER:", "InlineElementList");
1577
+ if (state.tokenize) {
1578
+ return $TOKEN("InlineElementList", state, InlineElementList$0(state));
1579
+ } else {
1580
+ return InlineElementList$0(state);
1581
+ }
1582
+ }
1583
+ var ArrayElementExpression$0 = $E($S($E($S($EXPECT($L31, fail, 'ArrayElementExpression "..."'), __)), AssignmentExpression));
1573
1584
  function ArrayElementExpression(state) {
1574
1585
  if (state.verbose)
1575
1586
  console.log("ENTER:", "ArrayElementExpression");
@@ -1672,8 +1683,8 @@ var require_parser = __commonJS({
1672
1683
  return PropertyName$0(state) || PropertyName$1(state) || PropertyName$2(state) || PropertyName$3(state);
1673
1684
  }
1674
1685
  }
1675
- var MethodDefinition$0 = $S($EXPECT($L38, fail, 'MethodDefinition "get"'), $N($R$0($EXPECT($R3, fail, "MethodDefinition /\\p{ID_Continue}/"))), $Q(TrailingComment), ClassElementName, __, Parameters, BracedBlock);
1676
- var MethodDefinition$1 = $S($EXPECT($L39, fail, 'MethodDefinition "set"'), $N($R$0($EXPECT($R3, fail, "MethodDefinition /\\p{ID_Continue}/"))), $Q(TrailingComment), ClassElementName, __, Parameters, BracedBlock);
1686
+ var MethodDefinition$0 = $S($EXPECT($L38, fail, 'MethodDefinition "get"'), NonIdContinue, $Q(TrailingComment), ClassElementName, __, Parameters, BracedBlock);
1687
+ var MethodDefinition$1 = $S($EXPECT($L39, fail, 'MethodDefinition "set"'), NonIdContinue, $Q(TrailingComment), ClassElementName, __, Parameters, BracedBlock);
1677
1688
  var MethodDefinition$2 = AsyncGeneratorMethod;
1678
1689
  var MethodDefinition$3 = AsyncMethod;
1679
1690
  var MethodDefinition$4 = GeneratorMethod;
@@ -1806,7 +1817,7 @@ var require_parser = __commonJS({
1806
1817
  return "!==";
1807
1818
  return $1;
1808
1819
  });
1809
- var BinaryOp$15 = $T($EXPECT($L69, fail, 'BinaryOp "is"'), function(value) {
1820
+ var BinaryOp$15 = $T($S($EXPECT($L69, fail, 'BinaryOp "is"'), NonIdContinue), function(value) {
1810
1821
  return "===";
1811
1822
  });
1812
1823
  var BinaryOp$16 = $EXPECT($L70, fail, 'BinaryOp "==="');
@@ -1815,17 +1826,17 @@ var require_parser = __commonJS({
1815
1826
  return "===";
1816
1827
  return $1;
1817
1828
  });
1818
- var BinaryOp$18 = $T($EXPECT($L72, fail, 'BinaryOp "and"'), function(value) {
1829
+ var BinaryOp$18 = $T($S($EXPECT($L72, fail, 'BinaryOp "and"'), NonIdContinue), function(value) {
1819
1830
  return "&&";
1820
1831
  });
1821
1832
  var BinaryOp$19 = $EXPECT($L73, fail, 'BinaryOp "&&"');
1822
- var BinaryOp$20 = $T($EXPECT($L74, fail, 'BinaryOp "or"'), function(value) {
1833
+ var BinaryOp$20 = $T($S($EXPECT($L74, fail, 'BinaryOp "or"'), NonIdContinue), function(value) {
1823
1834
  return "||";
1824
1835
  });
1825
1836
  var BinaryOp$21 = $EXPECT($L75, fail, 'BinaryOp "||"');
1826
1837
  var BinaryOp$22 = $EXPECT($L76, fail, 'BinaryOp "??"');
1827
- var BinaryOp$23 = $EXPECT($L77, fail, 'BinaryOp "instanceof"');
1828
- var BinaryOp$24 = $EXPECT($L78, fail, 'BinaryOp "in"');
1838
+ var BinaryOp$23 = $S($EXPECT($L77, fail, 'BinaryOp "instanceof"'), NonIdContinue);
1839
+ var BinaryOp$24 = $S($EXPECT($L78, fail, 'BinaryOp "in"'), NonIdContinue);
1829
1840
  var BinaryOp$25 = $EXPECT($L79, fail, 'BinaryOp "&"');
1830
1841
  var BinaryOp$26 = $EXPECT($L80, fail, 'BinaryOp "^"');
1831
1842
  var BinaryOp$27 = $EXPECT($L81, fail, 'BinaryOp "|"');
@@ -1836,8 +1847,8 @@ var require_parser = __commonJS({
1836
1847
  return BinaryOp$0(state) || BinaryOp$1(state) || BinaryOp$2(state) || BinaryOp$3(state) || BinaryOp$4(state) || BinaryOp$5(state) || BinaryOp$6(state) || BinaryOp$7(state) || BinaryOp$8(state) || BinaryOp$9(state) || BinaryOp$10(state) || BinaryOp$11(state) || BinaryOp$12(state) || BinaryOp$13(state) || BinaryOp$14(state) || BinaryOp$15(state) || BinaryOp$16(state) || BinaryOp$17(state) || BinaryOp$18(state) || BinaryOp$19(state) || BinaryOp$20(state) || BinaryOp$21(state) || BinaryOp$22(state) || BinaryOp$23(state) || BinaryOp$24(state) || BinaryOp$25(state) || BinaryOp$26(state) || BinaryOp$27(state);
1837
1848
  }
1838
1849
  }
1839
- var UnaryOp$0 = $R$0($EXPECT($R4, fail, "UnaryOp /[!~+-]/"));
1840
- var UnaryOp$1 = $S($C($EXPECT($L82, fail, 'UnaryOp "delete"'), $EXPECT($L83, fail, 'UnaryOp "void"'), $EXPECT($L84, fail, 'UnaryOp "typeof"')), $P(_));
1850
+ var UnaryOp$0 = $R$0($EXPECT($R2, fail, "UnaryOp /[!~+-]/"));
1851
+ var UnaryOp$1 = $S($C($EXPECT($L82, fail, 'UnaryOp "delete"'), $EXPECT($L83, fail, 'UnaryOp "void"'), $EXPECT($L84, fail, 'UnaryOp "typeof"')), NonIdContinue, __);
1841
1852
  function UnaryOp(state) {
1842
1853
  if (state.tokenize) {
1843
1854
  return $TOKEN("UnaryOp", state, UnaryOp$0(state) || UnaryOp$1(state));
@@ -2385,7 +2396,7 @@ var require_parser = __commonJS({
2385
2396
  return NumericLiteral$0(state) || NumericLiteral$1(state) || NumericLiteral$2(state) || NumericLiteral$3(state) || NumericLiteral$4(state);
2386
2397
  }
2387
2398
  }
2388
- var DecimalBigIntegerLiteral$0 = $R$0($EXPECT($R5, fail, "DecimalBigIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)n/"));
2399
+ var DecimalBigIntegerLiteral$0 = $R$0($EXPECT($R3, fail, "DecimalBigIntegerLiteral /(?:0|[1-9](?:_[0-9]|[0-9])*)n/"));
2389
2400
  function DecimalBigIntegerLiteral(state) {
2390
2401
  if (state.verbose)
2391
2402
  console.log("ENTER:", "DecimalBigIntegerLiteral");
@@ -2395,7 +2406,7 @@ var require_parser = __commonJS({
2395
2406
  return DecimalBigIntegerLiteral$0(state);
2396
2407
  }
2397
2408
  }
2398
- var DecimalLiteral$0 = $R$0($EXPECT($R6, fail, "DecimalLiteral /\\d+(?:\\.\\d*)?/"));
2409
+ var DecimalLiteral$0 = $R$0($EXPECT($R4, fail, "DecimalLiteral /\\d+(?:\\.\\d*)?/"));
2399
2410
  function DecimalLiteral(state) {
2400
2411
  if (state.verbose)
2401
2412
  console.log("ENTER:", "DecimalLiteral");
@@ -2405,7 +2416,7 @@ var require_parser = __commonJS({
2405
2416
  return DecimalLiteral$0(state);
2406
2417
  }
2407
2418
  }
2408
- var BinaryIntegerLiteral$0 = $R$0($EXPECT($R7, fail, "BinaryIntegerLiteral /0[bB][01](?:[01]|_[01])*/"));
2419
+ var BinaryIntegerLiteral$0 = $R$0($EXPECT($R5, fail, "BinaryIntegerLiteral /0[bB][01](?:[01]|_[01])*/"));
2409
2420
  function BinaryIntegerLiteral(state) {
2410
2421
  if (state.verbose)
2411
2422
  console.log("ENTER:", "BinaryIntegerLiteral");
@@ -2415,7 +2426,7 @@ var require_parser = __commonJS({
2415
2426
  return BinaryIntegerLiteral$0(state);
2416
2427
  }
2417
2428
  }
2418
- var OctalIntegerLiteral$0 = $R$0($EXPECT($R8, fail, "OctalIntegerLiteral /0[oO][0-7](?:[0-7]|_[0-7])*/"));
2429
+ var OctalIntegerLiteral$0 = $R$0($EXPECT($R6, fail, "OctalIntegerLiteral /0[oO][0-7](?:[0-7]|_[0-7])*/"));
2419
2430
  function OctalIntegerLiteral(state) {
2420
2431
  if (state.verbose)
2421
2432
  console.log("ENTER:", "OctalIntegerLiteral");
@@ -2425,7 +2436,7 @@ var require_parser = __commonJS({
2425
2436
  return OctalIntegerLiteral$0(state);
2426
2437
  }
2427
2438
  }
2428
- var HexLiteral$0 = $R$0($EXPECT($R9, fail, "HexLiteral /0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*/"));
2439
+ var HexLiteral$0 = $R$0($EXPECT($R7, fail, "HexLiteral /0[xX][0-9a-fA-F](?:[0-9a-fA-F]|_[0-9a-fA-F])*/"));
2429
2440
  function HexLiteral(state) {
2430
2441
  if (state.verbose)
2431
2442
  console.log("ENTER:", "HexLiteral");
@@ -2447,7 +2458,7 @@ var require_parser = __commonJS({
2447
2458
  return StringLiteral$0(state) || StringLiteral$1(state) || StringLiteral$2(state);
2448
2459
  }
2449
2460
  }
2450
- var DoubleStringCharacter$0 = $R$0($EXPECT($R10, fail, 'DoubleStringCharacter /[^"\\\\]+/'));
2461
+ var DoubleStringCharacter$0 = $R$0($EXPECT($R8, fail, 'DoubleStringCharacter /[^"\\\\]+/'));
2451
2462
  var DoubleStringCharacter$1 = EscapeSequence;
2452
2463
  function DoubleStringCharacter(state) {
2453
2464
  if (state.tokenize) {
@@ -2456,7 +2467,7 @@ var require_parser = __commonJS({
2456
2467
  return DoubleStringCharacter$0(state) || DoubleStringCharacter$1(state);
2457
2468
  }
2458
2469
  }
2459
- var SingleStringCharacter$0 = $R$0($EXPECT($R11, fail, "SingleStringCharacter /[^'\\\\]+/"));
2470
+ var SingleStringCharacter$0 = $R$0($EXPECT($R9, fail, "SingleStringCharacter /[^'\\\\]+/"));
2460
2471
  var SingleStringCharacter$1 = EscapeSequence;
2461
2472
  function SingleStringCharacter(state) {
2462
2473
  if (state.tokenize) {
@@ -2465,7 +2476,7 @@ var require_parser = __commonJS({
2465
2476
  return SingleStringCharacter$0(state) || SingleStringCharacter$1(state);
2466
2477
  }
2467
2478
  }
2468
- var TripleDoubleStringCharacter$0 = $R$0($EXPECT($R12, fail, 'TripleDoubleStringCharacter /(?:"(?!"")|\\\\.|[^"])+/'));
2479
+ var TripleDoubleStringCharacter$0 = $R$0($EXPECT($R10, fail, 'TripleDoubleStringCharacter /(?:"(?!"")|\\\\.|[^"])+/'));
2469
2480
  function TripleDoubleStringCharacter(state) {
2470
2481
  if (state.verbose)
2471
2482
  console.log("ENTER:", "TripleDoubleStringCharacter");
@@ -2475,7 +2486,7 @@ var require_parser = __commonJS({
2475
2486
  return TripleDoubleStringCharacter$0(state);
2476
2487
  }
2477
2488
  }
2478
- var EscapeSequence$0 = $TEXT($S($EXPECT($L117, fail, 'EscapeSequence "\\\\\\\\"'), $EXPECT($R13, fail, "EscapeSequence /./")));
2489
+ var EscapeSequence$0 = $TEXT($S($EXPECT($L117, fail, 'EscapeSequence "\\\\\\\\"'), $EXPECT($R11, fail, "EscapeSequence /./")));
2479
2490
  function EscapeSequence(state) {
2480
2491
  if (state.verbose)
2481
2492
  console.log("ENTER:", "EscapeSequence");
@@ -2495,7 +2506,7 @@ var require_parser = __commonJS({
2495
2506
  return RegularExpressionLiteral$0(state);
2496
2507
  }
2497
2508
  }
2498
- var RegularExpressionBody$0 = $S($R$0($EXPECT($R14, fail, "RegularExpressionBody /[^*\\/\\r\\n]/")), $Q(RegExpCharacter));
2509
+ var RegularExpressionBody$0 = $S($R$0($EXPECT($R12, fail, "RegularExpressionBody /[^*\\/\\r\\n]/")), $Q(RegExpCharacter));
2499
2510
  function RegularExpressionBody(state) {
2500
2511
  if (state.verbose)
2501
2512
  console.log("ENTER:", "RegularExpressionBody");
@@ -2505,7 +2516,7 @@ var require_parser = __commonJS({
2505
2516
  return RegularExpressionBody$0(state);
2506
2517
  }
2507
2518
  }
2508
- var RegExpCharacter$0 = $R$0($EXPECT($R15, fail, "RegExpCharacter /[^\\/\\r\\n]+/"));
2519
+ var RegExpCharacter$0 = $R$0($EXPECT($R13, fail, "RegExpCharacter /[^\\/\\r\\n]+/"));
2509
2520
  var RegExpCharacter$1 = EscapeSequence;
2510
2521
  function RegExpCharacter(state) {
2511
2522
  if (state.tokenize) {
@@ -2514,7 +2525,7 @@ var require_parser = __commonJS({
2514
2525
  return RegExpCharacter$0(state) || RegExpCharacter$1(state);
2515
2526
  }
2516
2527
  }
2517
- var RegularExpressionFlags$0 = $R$0($EXPECT($R16, fail, "RegularExpressionFlags /(:?\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
2528
+ var RegularExpressionFlags$0 = $R$0($EXPECT($R14, fail, "RegularExpressionFlags /(:?\\p{ID_Continue}|[\\u200C\\u200D$])*/"));
2518
2529
  function RegularExpressionFlags(state) {
2519
2530
  if (state.verbose)
2520
2531
  console.log("ENTER:", "RegularExpressionFlags");
@@ -2544,7 +2555,7 @@ var require_parser = __commonJS({
2544
2555
  return TemplateSubstitution$0(state);
2545
2556
  }
2546
2557
  }
2547
- var TemplateCharacters$0 = $R$0($EXPECT($R17, fail, "TemplateCharacters /(?:\\$(?!\\{)|\\\\.|[^$`])+/"));
2558
+ var TemplateCharacters$0 = $R$0($EXPECT($R15, fail, "TemplateCharacters /(?:\\$(?!\\{)|\\\\.|[^$`])+/"));
2548
2559
  function TemplateCharacters(state) {
2549
2560
  if (state.verbose)
2550
2561
  console.log("ENTER:", "TemplateCharacters");
@@ -2554,7 +2565,7 @@ var require_parser = __commonJS({
2554
2565
  return TemplateCharacters$0(state);
2555
2566
  }
2556
2567
  }
2557
- var ReservedWord$0 = $R$0($EXPECT($R18, fail, "ReservedWord /(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|new|null|or|return|super|switch|this|throw|true|try|typeof|unless|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
2568
+ var ReservedWord$0 = $R$0($EXPECT($R16, fail, "ReservedWord /(?:and|as|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|function|if|import|in|instanceof|interface|is|new|null|or|return|super|switch|this|throw|true|try|typeof|unless|var|void|while|with|yield)(?!\\p{ID_Continue})/"));
2558
2569
  function ReservedWord(state) {
2559
2570
  if (state.verbose)
2560
2571
  console.log("ENTER:", "ReservedWord");
@@ -2573,7 +2584,7 @@ var require_parser = __commonJS({
2573
2584
  return Comment$0(state) || Comment$1(state);
2574
2585
  }
2575
2586
  }
2576
- var SingleLineComment$0 = $R$0($EXPECT($R19, fail, "SingleLineComment /\\/\\/[^\\r\\n]*/"));
2587
+ var SingleLineComment$0 = $R$0($EXPECT($R17, fail, "SingleLineComment /\\/\\/[^\\r\\n]*/"));
2577
2588
  var SingleLineComment$1 = CoffeeSingleLineComment;
2578
2589
  function SingleLineComment(state) {
2579
2590
  if (state.tokenize) {
@@ -2591,7 +2602,7 @@ var require_parser = __commonJS({
2591
2602
  return MultiLineComment$0(state) || MultiLineComment$1(state);
2592
2603
  }
2593
2604
  }
2594
- var JSMultiLineComment$0 = $S($EXPECT($L120, fail, 'JSMultiLineComment "/*"'), $TEXT($Q($S($N($EXPECT($L121, fail, 'JSMultiLineComment "*/"')), $EXPECT($R13, fail, "JSMultiLineComment /./")))), $EXPECT($L121, fail, 'JSMultiLineComment "*/"'));
2605
+ var JSMultiLineComment$0 = $S($EXPECT($L120, fail, 'JSMultiLineComment "/*"'), $TEXT($Q($S($N($EXPECT($L121, fail, 'JSMultiLineComment "*/"')), $EXPECT($R11, fail, "JSMultiLineComment /./")))), $EXPECT($L121, fail, 'JSMultiLineComment "*/"'));
2595
2606
  function JSMultiLineComment(state) {
2596
2607
  if (state.verbose)
2597
2608
  console.log("ENTER:", "JSMultiLineComment");
@@ -2601,7 +2612,7 @@ var require_parser = __commonJS({
2601
2612
  return JSMultiLineComment$0(state);
2602
2613
  }
2603
2614
  }
2604
- var CoffeeSingleLineComment$0 = $TR($EXPECT($R20, fail, "CoffeeSingleLineComment /#([^\\r\\n]*)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
2615
+ var CoffeeSingleLineComment$0 = $TR($EXPECT($R18, fail, "CoffeeSingleLineComment /#([^\\r\\n]*)/"), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8, $9) {
2605
2616
  if (!global.coffeeCompat)
2606
2617
  return $skip;
2607
2618
  return ["//", $1];
@@ -2615,7 +2626,7 @@ var require_parser = __commonJS({
2615
2626
  return CoffeeSingleLineComment$0(state);
2616
2627
  }
2617
2628
  }
2618
- var CoffeeMultiLineComment$0 = $T($S($EXPECT($L122, fail, 'CoffeeMultiLineComment "###"'), $TEXT($Q($S($N($EXPECT($L122, fail, 'CoffeeMultiLineComment "###"')), $EXPECT($R13, fail, "CoffeeMultiLineComment /./")))), $EXPECT($L122, fail, 'CoffeeMultiLineComment "###"')), function(value) {
2629
+ var CoffeeMultiLineComment$0 = $T($S($EXPECT($L122, fail, 'CoffeeMultiLineComment "###"'), $TEXT($Q($S($N($EXPECT($L122, fail, 'CoffeeMultiLineComment "###"')), $EXPECT($R11, fail, "CoffeeMultiLineComment /./")))), $EXPECT($L122, fail, 'CoffeeMultiLineComment "###"')), function(value) {
2619
2630
  return ["/*", value[1], "*/"];
2620
2631
  });
2621
2632
  function CoffeeMultiLineComment(state) {
@@ -2627,7 +2638,7 @@ var require_parser = __commonJS({
2627
2638
  return CoffeeMultiLineComment$0(state);
2628
2639
  }
2629
2640
  }
2630
- var InlineComment$0 = $S($EXPECT($L120, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L121, fail, 'InlineComment "*/"')), $EXPECT($R21, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L121, fail, 'InlineComment "*/"'));
2641
+ var InlineComment$0 = $S($EXPECT($L120, fail, 'InlineComment "/*"'), $TEXT($Q($S($N($EXPECT($L121, fail, 'InlineComment "*/"')), $EXPECT($R19, fail, "InlineComment /[^\\r\\n]/")))), $EXPECT($L121, fail, 'InlineComment "*/"'));
2631
2642
  function InlineComment(state) {
2632
2643
  if (state.verbose)
2633
2644
  console.log("ENTER:", "InlineComment");
@@ -2647,7 +2658,7 @@ var require_parser = __commonJS({
2647
2658
  return RestOfLine$0(state);
2648
2659
  }
2649
2660
  }
2650
- var TrailingComment$0 = $R$0($EXPECT($R22, fail, "TrailingComment /[\\t ]+/"));
2661
+ var TrailingComment$0 = $R$0($EXPECT($R20, fail, "TrailingComment /[\\t ]+/"));
2651
2662
  var TrailingComment$1 = InlineComment;
2652
2663
  var TrailingComment$2 = SingleLineComment;
2653
2664
  function TrailingComment(state) {
@@ -2657,7 +2668,7 @@ var require_parser = __commonJS({
2657
2668
  return TrailingComment$0(state) || TrailingComment$1(state) || TrailingComment$2(state);
2658
2669
  }
2659
2670
  }
2660
- var _$0 = $P($C($R$0($EXPECT($R22, fail, "_ /[\\t ]+/")), Comment));
2671
+ var _$0 = $P($C($R$0($EXPECT($R20, fail, "_ /[\\t ]+/")), Comment));
2661
2672
  function _(state) {
2662
2673
  if (state.verbose)
2663
2674
  console.log("ENTER:", "_");
@@ -2667,7 +2678,7 @@ var require_parser = __commonJS({
2667
2678
  return _$0(state);
2668
2679
  }
2669
2680
  }
2670
- var __$0 = $Q($C($R$0($EXPECT($R23, fail, "__ /[\\s]+/")), Comment));
2681
+ var __$0 = $Q($C($R$0($EXPECT($R21, fail, "__ /[\\s]+/")), Comment));
2671
2682
  function __(state) {
2672
2683
  if (state.verbose)
2673
2684
  console.log("ENTER:", "__");
@@ -2688,6 +2699,16 @@ var require_parser = __commonJS({
2688
2699
  return StatementDelimiter$0(state) || StatementDelimiter$1(state);
2689
2700
  }
2690
2701
  }
2702
+ var NonIdContinue$0 = $R$0($EXPECT($R22, fail, "NonIdContinue /(?!\\p{ID_Continue})/"));
2703
+ function NonIdContinue(state) {
2704
+ if (state.verbose)
2705
+ console.log("ENTER:", "NonIdContinue");
2706
+ if (state.tokenize) {
2707
+ return $TOKEN("NonIdContinue", state, NonIdContinue$0(state));
2708
+ } else {
2709
+ return NonIdContinue$0(state);
2710
+ }
2711
+ }
2691
2712
  var JSXElement$0 = JSXSelfClosingElement;
2692
2713
  var JSXElement$1 = $TS($S(JSXOpeningElement, $Q(JSXChildren), __, JSXClosingElement), function($skip, $loc, $0, $1, $2, $3, $4) {
2693
2714
  if ($1[1] !== $4[2]) {
@@ -2752,7 +2773,7 @@ var require_parser = __commonJS({
2752
2773
  return JSXElementName$0(state);
2753
2774
  }
2754
2775
  }
2755
- var JSXIdentifierName$0 = $R$0($EXPECT($R24, fail, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
2776
+ var JSXIdentifierName$0 = $R$0($EXPECT($R23, fail, "JSXIdentifierName /(?:\\p{ID_Start}|[_$])(?:\\p{ID_Continue}|[\\u200C\\u200D$-])*/"));
2756
2777
  function JSXIdentifierName(state) {
2757
2778
  if (state.verbose)
2758
2779
  console.log("ENTER:", "JSXIdentifierName");
@@ -2801,8 +2822,8 @@ var require_parser = __commonJS({
2801
2822
  return JSXAttributeInitializer$0(state);
2802
2823
  }
2803
2824
  }
2804
- var JSXAttributeValue$0 = $R$0($EXPECT($R25, fail, 'JSXAttributeValue /"[^"]*"/'));
2805
- var JSXAttributeValue$1 = $R$0($EXPECT($R26, fail, "JSXAttributeValue /'[^']*'/"));
2825
+ var JSXAttributeValue$0 = $R$0($EXPECT($R24, fail, 'JSXAttributeValue /"[^"]*"/'));
2826
+ var JSXAttributeValue$1 = $R$0($EXPECT($R25, fail, "JSXAttributeValue /'[^']*'/"));
2806
2827
  var JSXAttributeValue$2 = $S($EXPECT($L11, fail, 'JSXAttributeValue "{"'), __, AssignmentExpression, __, $EXPECT($L16, fail, 'JSXAttributeValue "}"'));
2807
2828
  var JSXAttributeValue$3 = JSXElement;
2808
2829
  var JSXAttributeValue$4 = JSXFragment;
@@ -2834,7 +2855,7 @@ var require_parser = __commonJS({
2834
2855
  return JSXChild$0(state) || JSXChild$1(state) || JSXChild$2(state) || JSXChild$3(state);
2835
2856
  }
2836
2857
  }
2837
- var JSXText$0 = $R$0($EXPECT($R27, fail, "JSXText /[^{}<>]+/"));
2858
+ var JSXText$0 = $R$0($EXPECT($R26, fail, "JSXText /[^{}<>]+/"));
2838
2859
  function JSXText(state) {
2839
2860
  if (state.verbose)
2840
2861
  console.log("ENTER:", "JSXText");
@@ -2854,10 +2875,10 @@ var require_parser = __commonJS({
2854
2875
  return JSXChildExpression$0(state);
2855
2876
  }
2856
2877
  }
2857
- var TypeDeclaration$0 = $T($S($EXPECT($R28, fail, "TypeDeclaration /type(?!\\p{ID_Continue})/"), $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, $EXPECT($L55, fail, 'TypeDeclaration "="'), __, Type), function(value) {
2878
+ var TypeDeclaration$0 = $T($S($EXPECT($R27, fail, "TypeDeclaration /type(?!\\p{ID_Continue})/"), $Q(TrailingComment), IdentifierName, $E(TypeParameters), __, $EXPECT($L55, fail, 'TypeDeclaration "="'), __, Type), function(value) {
2858
2879
  return { "ts": true, "children": value };
2859
2880
  });
2860
- var TypeDeclaration$1 = $T($S($EXPECT($R29, fail, "TypeDeclaration /interface(?!\\p{ID_Continue})/"), $Q(TrailingComment), IdentifierName, InterfaceBlock), function(value) {
2881
+ var TypeDeclaration$1 = $T($S($EXPECT($R28, fail, "TypeDeclaration /interface(?!\\p{ID_Continue})/"), $Q(TrailingComment), IdentifierName, InterfaceBlock), function(value) {
2861
2882
  return { "ts": true, "children": value };
2862
2883
  });
2863
2884
  function TypeDeclaration(state) {
@@ -2927,7 +2948,7 @@ var require_parser = __commonJS({
2927
2948
  return InterfacePropertyDelimiter$0(state) || InterfacePropertyDelimiter$1(state) || InterfacePropertyDelimiter$2(state) || InterfacePropertyDelimiter$3(state);
2928
2949
  }
2929
2950
  }
2930
- var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R30, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L127, fail, 'TypeIndexSignature "readonly"'), __)), $EXPECT($L24, fail, 'TypeIndexSignature "["'), TypeIndex, $EXPECT($L25, fail, 'TypeIndexSignature "]"'), $E($S(__, $R$0($EXPECT($R31, fail, "TypeIndexSignature /[+-]/")), $EXPECT($L3, fail, 'TypeIndexSignature "?"'))));
2951
+ var TypeIndexSignature$0 = $S($E($S($R$0($EXPECT($R29, fail, "TypeIndexSignature /[+-]?/")), $EXPECT($L127, fail, 'TypeIndexSignature "readonly"'), __)), $EXPECT($L24, fail, 'TypeIndexSignature "["'), TypeIndex, $EXPECT($L25, fail, 'TypeIndexSignature "]"'), $E($S(__, $R$0($EXPECT($R30, fail, "TypeIndexSignature /[+-]/")), $EXPECT($L3, fail, 'TypeIndexSignature "?"'))));
2931
2952
  function TypeIndexSignature(state) {
2932
2953
  if (state.verbose)
2933
2954
  console.log("ENTER:", "TypeIndexSignature");
@@ -2958,7 +2979,7 @@ var require_parser = __commonJS({
2958
2979
  return TypeSuffix$0(state);
2959
2980
  }
2960
2981
  }
2961
- var ReturnTypeSuffix$0 = $T($S(__, $EXPECT($L12, fail, 'ReturnTypeSuffix ":"'), $E($S(__, $EXPECT($L128, fail, 'ReturnTypeSuffix "asserts"'), $EXPECT($R0, fail, "ReturnTypeSuffix /(?!\\p{ID_Continue})/"))), TypePredicate), function(value) {
2982
+ var ReturnTypeSuffix$0 = $T($S(__, $EXPECT($L12, fail, 'ReturnTypeSuffix ":"'), $E($S(__, $EXPECT($L128, fail, 'ReturnTypeSuffix "asserts"'), NonIdContinue)), TypePredicate), function(value) {
2962
2983
  return { "ts": true, "children": value };
2963
2984
  });
2964
2985
  function ReturnTypeSuffix(state) {
@@ -2970,7 +2991,7 @@ var require_parser = __commonJS({
2970
2991
  return ReturnTypeSuffix$0(state);
2971
2992
  }
2972
2993
  }
2973
- var TypePredicate$0 = $S(Type, $E($S(__, $EXPECT($L69, fail, 'TypePredicate "is"'), $R$0($EXPECT($R0, fail, "TypePredicate /(?!\\p{ID_Continue})/")), Type)));
2994
+ var TypePredicate$0 = $S(Type, $E($S(__, $EXPECT($L69, fail, 'TypePredicate "is"'), NonIdContinue, Type)));
2974
2995
  function TypePredicate(state) {
2975
2996
  if (state.verbose)
2976
2997
  console.log("ENTER:", "TypePredicate");
@@ -3000,7 +3021,7 @@ var require_parser = __commonJS({
3000
3021
  return TypeBinary$0(state);
3001
3022
  }
3002
3023
  }
3003
- var TypeUnary$0 = $S($Q($S(__, TypeUnaryOp, $R$0($EXPECT($R0, fail, "TypeUnary /(?!\\p{ID_Continue})/")))), TypePrimary, $Q(TypeUnarySuffix));
3024
+ var TypeUnary$0 = $S($Q($S(__, TypeUnaryOp, NonIdContinue)), TypePrimary, $Q(TypeUnarySuffix));
3004
3025
  function TypeUnary(state) {
3005
3026
  if (state.verbose)
3006
3027
  console.log("ENTER:", "TypeUnary");
@@ -3146,7 +3167,7 @@ var require_parser = __commonJS({
3146
3167
  return TypeParameterDelimiter$0(state) || TypeParameterDelimiter$1(state) || TypeParameterDelimiter$2(state) || TypeParameterDelimiter$3(state);
3147
3168
  }
3148
3169
  }
3149
- var Shebang$0 = $R$0($EXPECT($R32, fail, "Shebang /#![^\\r\\n]*/"));
3170
+ var Shebang$0 = $R$0($EXPECT($R31, fail, "Shebang /#![^\\r\\n]*/"));
3150
3171
  function Shebang(state) {
3151
3172
  if (state.verbose)
3152
3173
  console.log("ENTER:", "Shebang");
@@ -3156,7 +3177,7 @@ var require_parser = __commonJS({
3156
3177
  return Shebang$0(state);
3157
3178
  }
3158
3179
  }
3159
- var DirectivePrologue$0 = $TV($Q($S($TEXT($EXPECT($R33, fail, "DirectivePrologue /[\\t ]*/")), $TEXT(StringLiteral), $TEXT(StatementDelimiter), $TEXT(EOS))), function($skip, $loc, $0, $1) {
3180
+ var DirectivePrologue$0 = $TV($Q($S($TEXT($EXPECT($R32, fail, "DirectivePrologue /[\\t ]*/")), $TEXT(StringLiteral), $TEXT(StatementDelimiter), $TEXT(EOS))), function($skip, $loc, $0, $1) {
3160
3181
  return $0.map((p) => p.join(""));
3161
3182
  });
3162
3183
  function DirectivePrologue(state) {
@@ -3178,7 +3199,7 @@ var require_parser = __commonJS({
3178
3199
  return EOS$0(state);
3179
3200
  }
3180
3201
  }
3181
- var EOL$0 = $R$0($EXPECT($R34, fail, "EOL /\\r\\n|\\n|\\r|$/"));
3202
+ var EOL$0 = $R$0($EXPECT($R33, fail, "EOL /\\r\\n|\\n|\\r|$/"));
3182
3203
  function EOL(state) {
3183
3204
  if (state.verbose)
3184
3205
  console.log("ENTER:", "EOL");
@@ -3188,7 +3209,7 @@ var require_parser = __commonJS({
3188
3209
  return EOL$0(state);
3189
3210
  }
3190
3211
  }
3191
- var EOF$0 = $R$0($EXPECT($R35, fail, "EOF /$/"));
3212
+ var EOF$0 = $R$0($EXPECT($R34, fail, "EOF /$/"));
3192
3213
  function EOF(state) {
3193
3214
  if (state.verbose)
3194
3215
  console.log("ENTER:", "EOF");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "CoffeeScript style syntax for TypeScript",
5
5
  "main": "dist/main.js",
6
6
  "bin": {
@@ -12,6 +12,7 @@
12
12
  "register.mjs"
13
13
  ],
14
14
  "scripts": {
15
+ "prepublishOnly": "yarn build && yarn test",
15
16
  "build": "bash ./build/build.sh",
16
17
  "test": "mocha"
17
18
  },