mdat-plugin-cli-help 1.0.4 → 1.0.5

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.
Files changed (3) hide show
  1. package/dist/index.js +88 -61
  2. package/license.txt +1 -1
  3. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -8988,7 +8988,7 @@ function uniq(array) {
8988
8988
  var uniq_default = uniq;
8989
8989
 
8990
8990
  //#endregion
8991
- //#region node_modules/.pnpm/@chevrotain+utils@11.0.3/node_modules/@chevrotain/utils/lib/src/print.js
8991
+ //#region node_modules/.pnpm/@chevrotain+utils@11.1.0/node_modules/@chevrotain/utils/lib/src/print.js
8992
8992
  function PRINT_ERROR(msg) {
8993
8993
  /* istanbul ignore else - can't override global.console in node.js */
8994
8994
  if (console && console.error) console.error(`Error: ${msg}`);
@@ -8999,7 +8999,7 @@ function PRINT_WARNING(msg) {
8999
8999
  }
9000
9000
 
9001
9001
  //#endregion
9002
- //#region node_modules/.pnpm/@chevrotain+utils@11.0.3/node_modules/@chevrotain/utils/lib/src/timer.js
9002
+ //#region node_modules/.pnpm/@chevrotain+utils@11.1.0/node_modules/@chevrotain/utils/lib/src/timer.js
9003
9003
  function timer(func) {
9004
9004
  const start = (/* @__PURE__ */ new Date()).getTime();
9005
9005
  const val = func();
@@ -9010,7 +9010,7 @@ function timer(func) {
9010
9010
  }
9011
9011
 
9012
9012
  //#endregion
9013
- //#region node_modules/.pnpm/@chevrotain+utils@11.0.3/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js
9013
+ //#region node_modules/.pnpm/@chevrotain+utils@11.1.0/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js
9014
9014
  function toFastProperties(toBecomeFast) {
9015
9015
  function FakeConstructor() {}
9016
9016
  FakeConstructor.prototype = toBecomeFast;
@@ -9024,7 +9024,7 @@ function toFastProperties(toBecomeFast) {
9024
9024
  }
9025
9025
 
9026
9026
  //#endregion
9027
- //#region node_modules/.pnpm/@chevrotain+gast@11.0.3/node_modules/@chevrotain/gast/lib/src/model.js
9027
+ //#region node_modules/.pnpm/@chevrotain+gast@11.1.0/node_modules/@chevrotain/gast/lib/src/model.js
9028
9028
  function tokenLabel$1(tokType) {
9029
9029
  if (hasTokenLabel$1(tokType)) return tokType.LABEL;
9030
9030
  else return tokType.name;
@@ -9210,7 +9210,7 @@ function serializeProduction(node) {
9210
9210
  }
9211
9211
 
9212
9212
  //#endregion
9213
- //#region node_modules/.pnpm/@chevrotain+gast@11.0.3/node_modules/@chevrotain/gast/lib/src/visitor.js
9213
+ //#region node_modules/.pnpm/@chevrotain+gast@11.1.0/node_modules/@chevrotain/gast/lib/src/visitor.js
9214
9214
  var GAstVisitor = class {
9215
9215
  visit(node) {
9216
9216
  const nodeAny = node;
@@ -9251,7 +9251,7 @@ var GAstVisitor = class {
9251
9251
  };
9252
9252
 
9253
9253
  //#endregion
9254
- //#region node_modules/.pnpm/@chevrotain+gast@11.0.3/node_modules/@chevrotain/gast/lib/src/helpers.js
9254
+ //#region node_modules/.pnpm/@chevrotain+gast@11.1.0/node_modules/@chevrotain/gast/lib/src/helpers.js
9255
9255
  function isSequenceProd(prod) {
9256
9256
  return prod instanceof Alternative || prod instanceof Option || prod instanceof Repetition || prod instanceof RepetitionMandatory || prod instanceof RepetitionMandatoryWithSeparator || prod instanceof RepetitionWithSeparator || prod instanceof Terminal || prod instanceof Rule;
9257
9257
  }
@@ -9285,7 +9285,7 @@ function getProductionDslName(prod) {
9285
9285
  }
9286
9286
 
9287
9287
  //#endregion
9288
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/rest.js
9288
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/grammar/rest.js
9289
9289
  /**
9290
9290
  * A Grammar Walker that computes the "remaining" grammar "after" a productions in the grammar.
9291
9291
  */
@@ -9345,7 +9345,7 @@ function restForRepetitionWithSeparator(repSepProd, currRest, prevRest) {
9345
9345
  }
9346
9346
 
9347
9347
  //#endregion
9348
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/first.js
9348
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/grammar/first.js
9349
9349
  function first(prod) {
9350
9350
  /* istanbul ignore else */
9351
9351
  if (prod instanceof NonTerminal) return first(prod.referencedRule);
@@ -9380,11 +9380,11 @@ function firstForTerminal(terminal) {
9380
9380
  }
9381
9381
 
9382
9382
  //#endregion
9383
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/constants.js
9383
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/constants.js
9384
9384
  const IN = "_~IN~_";
9385
9385
 
9386
9386
  //#endregion
9387
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/follow.js
9387
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/grammar/follow.js
9388
9388
  var ResyncFollowsWalker = class extends RestWalker {
9389
9389
  constructor(topProd) {
9390
9390
  super();
@@ -9414,7 +9414,7 @@ function buildBetweenProdsFollowPrefix(inner, occurenceInParent) {
9414
9414
  }
9415
9415
 
9416
9416
  //#endregion
9417
- //#region node_modules/.pnpm/@chevrotain+regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js
9417
+ //#region node_modules/.pnpm/@chevrotain+regexp-to-ast@11.1.0/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js
9418
9418
  function cc(char) {
9419
9419
  return char.charCodeAt(0);
9420
9420
  }
@@ -9443,7 +9443,7 @@ function isCharacter(obj) {
9443
9443
  }
9444
9444
 
9445
9445
  //#endregion
9446
- //#region node_modules/.pnpm/@chevrotain+regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js
9446
+ //#region node_modules/.pnpm/@chevrotain+regexp-to-ast@11.1.0/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js
9447
9447
  const digitsCharCodes = [];
9448
9448
  for (let i = cc("0"); i <= cc("9"); i++) digitsCharCodes.push(i);
9449
9449
  const wordCharCodes = [cc("_")].concat(digitsCharCodes);
@@ -9479,7 +9479,7 @@ const whitespaceCodes = [
9479
9479
  ];
9480
9480
 
9481
9481
  //#endregion
9482
- //#region node_modules/.pnpm/@chevrotain+regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js
9482
+ //#region node_modules/.pnpm/@chevrotain+regexp-to-ast@11.1.0/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js
9483
9483
  const hexDigitPattern = /[0-9a-fA-F]/;
9484
9484
  const decimalPattern = /[0-9]/;
9485
9485
  const decimalPatternNoZero = /[1-9]/;
@@ -9595,7 +9595,7 @@ var RegExpParser = class {
9595
9595
  loc: this.loc(begin)
9596
9596
  };
9597
9597
  }
9598
- // istanbul ignore next
9598
+ /* c8 ignore next */
9599
9599
  throw Error("Invalid Assertion Escape");
9600
9600
  case "(":
9601
9601
  this.consumeChar("?");
@@ -9607,6 +9607,14 @@ var RegExpParser = class {
9607
9607
  case "!":
9608
9608
  type$1 = "NegativeLookahead";
9609
9609
  break;
9610
+ case "<":
9611
+ switch (this.popChar()) {
9612
+ case "=":
9613
+ type$1 = "Lookbehind";
9614
+ break;
9615
+ case "!": type$1 = "NegativeLookbehind";
9616
+ }
9617
+ break;
9610
9618
  }
9611
9619
  ASSERT_EXISTS(type$1);
9612
9620
  const disjunction = this.disjunction();
@@ -10047,7 +10055,7 @@ var RegExpParser = class {
10047
10055
  case "B": return true;
10048
10056
  default: return false;
10049
10057
  }
10050
- case "(": return this.peekChar(1) === "?" && (this.peekChar(2) === "=" || this.peekChar(2) === "!");
10058
+ case "(": return this.peekChar(1) === "?" && (this.peekChar(2) === "=" || this.peekChar(2) === "!" || this.peekChar(2) === "<" && (this.peekChar(3) === "=" || this.peekChar(3) === "!"));
10051
10059
  default: return false;
10052
10060
  }
10053
10061
  }
@@ -10116,7 +10124,7 @@ var RegExpParser = class {
10116
10124
  };
10117
10125
 
10118
10126
  //#endregion
10119
- //#region node_modules/.pnpm/@chevrotain+regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js
10127
+ //#region node_modules/.pnpm/@chevrotain+regexp-to-ast@11.1.0/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js
10120
10128
  var BaseRegExpVisitor = class {
10121
10129
  visitChildren(node) {
10122
10130
  for (const key in node) {
@@ -10162,6 +10170,12 @@ var BaseRegExpVisitor = class {
10162
10170
  case "NegativeLookahead":
10163
10171
  this.visitNegativeLookahead(node);
10164
10172
  break;
10173
+ case "Lookbehind":
10174
+ this.visitLookbehind(node);
10175
+ break;
10176
+ case "NegativeLookbehind":
10177
+ this.visitNegativeLookbehind(node);
10178
+ break;
10165
10179
  case "Character":
10166
10180
  this.visitCharacter(node);
10167
10181
  break;
@@ -10190,6 +10204,8 @@ var BaseRegExpVisitor = class {
10190
10204
  visitNonWordBoundary(node) {}
10191
10205
  visitLookahead(node) {}
10192
10206
  visitNegativeLookahead(node) {}
10207
+ visitLookbehind(node) {}
10208
+ visitNegativeLookbehind(node) {}
10193
10209
  visitCharacter(node) {}
10194
10210
  visitSet(node) {}
10195
10211
  visitGroup(node) {}
@@ -10198,7 +10214,7 @@ var BaseRegExpVisitor = class {
10198
10214
  };
10199
10215
 
10200
10216
  //#endregion
10201
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js
10217
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js
10202
10218
  let regExpAstCache = {};
10203
10219
  const regExpParser = new RegExpParser();
10204
10220
  function getRegExpAst(regExp) {
@@ -10215,7 +10231,7 @@ function clearRegExpParserCache() {
10215
10231
  }
10216
10232
 
10217
10233
  //#endregion
10218
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp.js
10234
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/scan/reg_exp.js
10219
10235
  const complementErrorMessage = "Complement Sets are not supported for first char optimization";
10220
10236
  const failedOptimizationPrefixMsg = "Unable to use \"first char\" lexer optimizations:\n";
10221
10237
  function getOptimizedStartCodesIndices(regExp, ensureOptimizations = false) {
@@ -10250,6 +10266,8 @@ function firstCharOptimizedIndices(ast, result, ignoreCase) {
10250
10266
  case "GroupBackReference":
10251
10267
  case "Lookahead":
10252
10268
  case "NegativeLookahead":
10269
+ case "Lookbehind":
10270
+ case "NegativeLookbehind":
10253
10271
  case "StartAnchor":
10254
10272
  case "WordBoundary":
10255
10273
  case "NonWordBoundary": continue;
@@ -10342,6 +10360,12 @@ var CharCodeFinder = class extends BaseRegExpVisitor {
10342
10360
  case "NegativeLookahead":
10343
10361
  this.visitNegativeLookahead(node);
10344
10362
  return;
10363
+ case "Lookbehind":
10364
+ this.visitLookbehind(node);
10365
+ return;
10366
+ case "NegativeLookbehind":
10367
+ this.visitNegativeLookbehind(node);
10368
+ return;
10345
10369
  }
10346
10370
  super.visitChildren(node);
10347
10371
  }
@@ -10366,7 +10390,7 @@ function canMatchCharCode(charCodes, pattern) {
10366
10390
  }
10367
10391
 
10368
10392
  //#endregion
10369
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer.js
10393
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/scan/lexer.js
10370
10394
  const PATTERN = "PATTERN";
10371
10395
  const DEFAULT_MODE = "defaultMode";
10372
10396
  const MODES = "modes";
@@ -10740,23 +10764,23 @@ function findUnreachablePatterns(tokenTypes) {
10740
10764
  });
10741
10765
  return result;
10742
10766
  }, []);
10743
- forEach_default(tokenTypes, (tokType, testIdx) => {
10744
- forEach_default(canBeTested, ({ str, idx, tokenType }) => {
10745
- if (testIdx < idx && testTokenType(str, tokType.PATTERN)) {
10746
- const msg = `Token: ->${tokenType.name}<- can never be matched.\nBecause it appears AFTER the Token Type ->${tokType.name}<-in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
10767
+ forEach_default(tokenTypes, (aTokType, aIdx) => {
10768
+ forEach_default(canBeTested, ({ str: bStr, idx: bIdx, tokenType: bTokType }) => {
10769
+ if (aIdx < bIdx && tryToMatchStrToPattern(bStr, aTokType.PATTERN)) {
10770
+ const msg = `Token: ->${bTokType.name}<- can never be matched.\nBecause it appears AFTER the Token Type ->${aTokType.name}<-in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
10747
10771
  errors.push({
10748
10772
  message: msg,
10749
10773
  type: LexerDefinitionErrorType.UNREACHABLE_PATTERN,
10750
- tokenTypes: [tokType, tokenType]
10774
+ tokenTypes: [aTokType, bTokType]
10751
10775
  });
10752
10776
  }
10753
10777
  });
10754
10778
  });
10755
10779
  return errors;
10756
10780
  }
10757
- function testTokenType(str, pattern) {
10758
- /* istanbul ignore else */
10781
+ function tryToMatchStrToPattern(str, pattern) {
10759
10782
  if (isRegExp_default(pattern)) {
10783
+ if (usesLookAheadOrBehind(pattern)) return false;
10760
10784
  const regExpArray = pattern.exec(str);
10761
10785
  return regExpArray !== null && regExpArray.index === 0;
10762
10786
  } else if (isFunction_default(pattern)) return pattern(str, 0, [], {});
@@ -10781,6 +10805,9 @@ function noMetaChar(regExp) {
10781
10805
  "{"
10782
10806
  ], (char) => regExp.source.indexOf(char) !== -1) === void 0;
10783
10807
  }
10808
+ function usesLookAheadOrBehind(regExp) {
10809
+ return /(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(regExp.source);
10810
+ }
10784
10811
  function addStartOfInput(pattern) {
10785
10812
  const flags = pattern.ignoreCase ? "i" : "";
10786
10813
  return new RegExp(`^(?:${pattern.source})`, flags);
@@ -10958,7 +10985,7 @@ function initCharCodeToOptimizedIndexMap() {
10958
10985
  }
10959
10986
 
10960
10987
  //#endregion
10961
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens.js
10988
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/scan/tokens.js
10962
10989
  function tokenStructuredMatcher(tokInstance, tokConstructor) {
10963
10990
  const instanceType = tokInstance.tokenTypeIdx;
10964
10991
  if (instanceType === tokConstructor.tokenTypeIdx) return true;
@@ -11042,18 +11069,18 @@ function isTokenType(tokType) {
11042
11069
  }
11043
11070
 
11044
11071
  //#endregion
11045
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js
11072
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js
11046
11073
  const defaultLexerErrorProvider = {
11047
11074
  buildUnableToPopLexerModeMessage(token) {
11048
11075
  return `Unable to pop Lexer Mode after encountering Token ->${token.image}<- The Mode Stack is empty`;
11049
11076
  },
11050
- buildUnexpectedCharactersMessage(fullText, startOffset, length, line, column) {
11077
+ buildUnexpectedCharactersMessage(fullText, startOffset, length, line, column, mode) {
11051
11078
  return `unexpected character: ->${fullText.charAt(startOffset)}<- at offset: ${startOffset}, skipped ${length} characters.`;
11052
11079
  }
11053
11080
  };
11054
11081
 
11055
11082
  //#endregion
11056
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_public.js
11083
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/scan/lexer_public.js
11057
11084
  var LexerDefinitionErrorType;
11058
11085
  (function(LexerDefinitionErrorType$1) {
11059
11086
  LexerDefinitionErrorType$1[LexerDefinitionErrorType$1["MISSING_PATTERN"] = 0] = "MISSING_PATTERN";
@@ -11411,7 +11438,7 @@ var Lexer = class {
11411
11438
  }
11412
11439
  errLength = offset - errorStartOffset;
11413
11440
  column = this.computeNewColumn(column, errLength);
11414
- msg = this.config.errorMessageProvider.buildUnexpectedCharactersMessage(orgText, errorStartOffset, errLength, errorLine, errorColumn);
11441
+ msg = this.config.errorMessageProvider.buildUnexpectedCharactersMessage(orgText, errorStartOffset, errLength, errorLine, errorColumn, last_default(modeStack));
11415
11442
  errors.push({
11416
11443
  offset: errorStartOffset,
11417
11444
  line: errorLine,
@@ -11509,11 +11536,11 @@ var Lexer = class {
11509
11536
  return regExpArray !== null ? regExpArray[0] : null;
11510
11537
  }
11511
11538
  };
11512
- Lexer.SKIPPED = "This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";
11539
+ Lexer.SKIPPED = "This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";
11513
11540
  Lexer.NA = /NOT_APPLICABLE/;
11514
11541
 
11515
11542
  //#endregion
11516
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens_public.js
11543
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/scan/tokens_public.js
11517
11544
  function tokenLabel(tokType) {
11518
11545
  if (hasTokenLabel(tokType)) return tokType.LABEL;
11519
11546
  else return tokType.name;
@@ -11573,7 +11600,7 @@ function tokenMatcher(token, tokType) {
11573
11600
  }
11574
11601
 
11575
11602
  //#endregion
11576
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/errors_public.js
11603
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/errors_public.js
11577
11604
  const defaultParserErrorProvider = {
11578
11605
  buildMismatchTokenMessage({ expected, actual, previous, ruleName }) {
11579
11606
  return `Expecting ${hasTokenLabel(expected) ? `--> ${tokenLabel(expected)} <--` : `token of type --> ${expected.name} <--`} but found --> '${actual.image}' <--`;
@@ -11665,7 +11692,7 @@ const defaultGrammarValidatorErrorProvider = {
11665
11692
  };
11666
11693
 
11667
11694
  //#endregion
11668
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/resolver.js
11695
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/grammar/resolver.js
11669
11696
  function resolveGrammar$1(topLevels, errMsgProvider) {
11670
11697
  const refResolver = new GastRefResolverVisitor(topLevels, errMsgProvider);
11671
11698
  refResolver.resolveRefs();
@@ -11699,7 +11726,7 @@ var GastRefResolverVisitor = class extends GAstVisitor {
11699
11726
  };
11700
11727
 
11701
11728
  //#endregion
11702
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js
11729
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js
11703
11730
  var AbstractNextPossibleTokensWalker = class extends RestWalker {
11704
11731
  constructor(topProd, path$1) {
11705
11732
  super();
@@ -12056,7 +12083,7 @@ function expandTopLevelRule(topRule, currIdx, currRuleStack, currOccurrenceStack
12056
12083
  }
12057
12084
 
12058
12085
  //#endregion
12059
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js
12086
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js
12060
12087
  var PROD_TYPE;
12061
12088
  (function(PROD_TYPE$1) {
12062
12089
  PROD_TYPE$1[PROD_TYPE$1["OPTION"] = 0] = "OPTION";
@@ -12378,7 +12405,7 @@ function areTokenCategoriesNotUsed(lookAheadPaths) {
12378
12405
  }
12379
12406
 
12380
12407
  //#endregion
12381
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/checks.js
12408
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/grammar/checks.js
12382
12409
  function validateLookahead(options) {
12383
12410
  return map_default(options.lookaheadStrategy.validate({
12384
12411
  rules: options.rules,
@@ -12712,7 +12739,7 @@ function checkTerminalAndNoneTerminalsNameSpace(topLevels, tokenTypes, errMsgPro
12712
12739
  }
12713
12740
 
12714
12741
  //#endregion
12715
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js
12742
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js
12716
12743
  function resolveGrammar(options) {
12717
12744
  const actualOptions = defaults_default(options, { errMsgProvider: defaultGrammarResolverErrorProvider });
12718
12745
  const topRulesTable = {};
@@ -12727,7 +12754,7 @@ function validateGrammar(options) {
12727
12754
  }
12728
12755
 
12729
12756
  //#endregion
12730
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/exceptions_public.js
12757
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/exceptions_public.js
12731
12758
  const MISMATCHED_TOKEN_EXCEPTION = "MismatchedTokenException";
12732
12759
  const NO_VIABLE_ALT_EXCEPTION = "NoViableAltException";
12733
12760
  const EARLY_EXIT_EXCEPTION = "EarlyExitException";
@@ -12781,7 +12808,7 @@ var EarlyExitException = class extends RecognitionException {
12781
12808
  };
12782
12809
 
12783
12810
  //#endregion
12784
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js
12811
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js
12785
12812
  const EOF_FOLLOW_KEY = {};
12786
12813
  const IN_RULE_RECOVERY_EXCEPTION = "InRuleRecoveryException";
12787
12814
  var InRuleRecoveryException = class extends Error {
@@ -12975,7 +13002,7 @@ function attemptInRepetitionRecovery(prodFunc, args, lookaheadFunc, dslMethodIdx
12975
13002
  }
12976
13003
 
12977
13004
  //#endregion
12978
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/keys.js
13005
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/grammar/keys.js
12979
13006
  const BITS_FOR_METHOD_TYPE = 4;
12980
13007
  const BITS_FOR_OCCURRENCE_IDX = 8;
12981
13008
  const BITS_FOR_ALT_IDX = 8;
@@ -12991,7 +13018,7 @@ function getKeyForAutomaticLookahead(ruleIdx, dslMethodIdx, occurrence) {
12991
13018
  32 - BITS_FOR_ALT_IDX;
12992
13019
 
12993
13020
  //#endregion
12994
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js
13021
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js
12995
13022
  var LLkLookaheadStrategy = class {
12996
13023
  constructor(options) {
12997
13024
  var _a;
@@ -13033,7 +13060,7 @@ var LLkLookaheadStrategy = class {
13033
13060
  };
13034
13061
 
13035
13062
  //#endregion
13036
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js
13063
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js
13037
13064
  /**
13038
13065
  * Trait responsible for the lookahead related utilities and optimizations.
13039
13066
  */
@@ -13155,7 +13182,7 @@ function collectMethods(rule) {
13155
13182
  }
13156
13183
 
13157
13184
  //#endregion
13158
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst.js
13185
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/cst/cst.js
13159
13186
  /**
13160
13187
  * This nodeLocation tracking is not efficient and should only be used
13161
13188
  * when error recovery is enabled or the Token Vector contains virtual Tokens
@@ -13200,7 +13227,7 @@ function addNoneTerminalToCst(node, ruleName, ruleResult) {
13200
13227
  }
13201
13228
 
13202
13229
  //#endregion
13203
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/lang/lang_extensions.js
13230
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/lang/lang_extensions.js
13204
13231
  const NAME = "name";
13205
13232
  function defineNameProp(obj, nameValue) {
13206
13233
  Object.defineProperty(obj, NAME, {
@@ -13212,7 +13239,7 @@ function defineNameProp(obj, nameValue) {
13212
13239
  }
13213
13240
 
13214
13241
  //#endregion
13215
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js
13242
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js
13216
13243
  function defaultVisit(ctx, param) {
13217
13244
  const childrenNames = keys_default(ctx);
13218
13245
  const childrenNamesLength = childrenNames.length;
@@ -13278,7 +13305,7 @@ function validateMissingCstMethods(visitorInstance, ruleNames) {
13278
13305
  }
13279
13306
 
13280
13307
  //#endregion
13281
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js
13308
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js
13282
13309
  /**
13283
13310
  * This trait is responsible for the CST building logic.
13284
13311
  */
@@ -13431,7 +13458,7 @@ var TreeBuilder = class {
13431
13458
  };
13432
13459
 
13433
13460
  //#endregion
13434
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js
13461
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js
13435
13462
  /**
13436
13463
  * Trait responsible abstracting over the interaction with Lexer output (Token vector).
13437
13464
  *
@@ -13486,7 +13513,7 @@ var LexerAdapter = class {
13486
13513
  };
13487
13514
 
13488
13515
  //#endregion
13489
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js
13516
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js
13490
13517
  /**
13491
13518
  * This trait is responsible for implementing the public API
13492
13519
  * for defining Chevrotain parsers, i.e:
@@ -13806,7 +13833,7 @@ var RecognizerApi = class {
13806
13833
  };
13807
13834
 
13808
13835
  //#endregion
13809
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js
13836
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js
13810
13837
  /**
13811
13838
  * This trait is responsible for the runtime parsing engine
13812
13839
  * Used by the official API (recognizer_api.ts)
@@ -14162,7 +14189,7 @@ var RecognizerEngine = class {
14162
14189
  };
14163
14190
 
14164
14191
  //#endregion
14165
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js
14192
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js
14166
14193
  /**
14167
14194
  * Trait responsible for runtime parsing errors.
14168
14195
  */
@@ -14221,7 +14248,7 @@ var ErrorHandler = class {
14221
14248
  };
14222
14249
 
14223
14250
  //#endregion
14224
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js
14251
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js
14225
14252
  var ContentAssist = class {
14226
14253
  initContentAssist() {}
14227
14254
  computeContentAssist(startRuleName, precedingInput) {
@@ -14237,7 +14264,7 @@ var ContentAssist = class {
14237
14264
  };
14238
14265
 
14239
14266
  //#endregion
14240
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js
14267
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js
14241
14268
  const RECORDING_NULL_OBJECT = { description: "This Object indicates the Parser is during Recording Phase" };
14242
14269
  Object.freeze(RECORDING_NULL_OBJECT);
14243
14270
  const HANDLE_SEPARATOR = true;
@@ -14481,7 +14508,7 @@ function assertMethodIdxIsValid(idx) {
14481
14508
  }
14482
14509
 
14483
14510
  //#endregion
14484
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js
14511
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js
14485
14512
  /**
14486
14513
  * Trait responsible for runtime parsing errors.
14487
14514
  */
@@ -14514,7 +14541,7 @@ var PerformanceTracer = class {
14514
14541
  };
14515
14542
 
14516
14543
  //#endregion
14517
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js
14544
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js
14518
14545
  function applyMixins(derivedCtor, baseCtors) {
14519
14546
  baseCtors.forEach((baseCtor) => {
14520
14547
  const baseProto = baseCtor.prototype;
@@ -14528,7 +14555,7 @@ function applyMixins(derivedCtor, baseCtors) {
14528
14555
  }
14529
14556
 
14530
14557
  //#endregion
14531
- //#region node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/parser.js
14558
+ //#region node_modules/.pnpm/chevrotain@11.1.0/node_modules/chevrotain/lib/src/parse/parser/parser.js
14532
14559
  const END_OF_FILE = createTokenInstance(EOF, "", NaN, NaN, NaN, NaN, NaN, NaN);
14533
14560
  Object.freeze(END_OF_FILE);
14534
14561
  const DEFAULT_PARSER_CONFIG = Object.freeze({
@@ -14876,7 +14903,7 @@ const visitor$1 = new CliHelpToObjectVisitor$1();
14876
14903
  * `meow` CLI library and turn it into a structured POJO describing the
14877
14904
  * command.
14878
14905
  */
14879
- function helpStringToObject$1(helpString) {
14906
+ function helpStringToObject$2(helpString) {
14880
14907
  const lexingResult = lexer$1.tokenize(helpString);
14881
14908
  if (lexingResult.errors.length > 0) throw new Error(`Errors lexing CLI command: ${JSON.stringify(lexingResult.errors, void 0, 2)}`);
14882
14909
  parser$1.input = lexingResult.tokens;
@@ -15192,7 +15219,7 @@ const visitor = new CliHelpToObjectVisitor();
15192
15219
  * `Yargs` CLI library and turn it into a structured POJO describing the
15193
15220
  * command.
15194
15221
  */
15195
- function helpStringToObject$2(helpString) {
15222
+ function helpStringToObject$1(helpString) {
15196
15223
  const lexingResult = lexer.tokenize(helpString);
15197
15224
  if (lexingResult.errors.length > 0) throw new Error(`Errors lexing CLI command: ${JSON.stringify(lexingResult.errors, void 0, 2)}`);
15198
15225
  parser.input = lexingResult.tokens;
@@ -15211,8 +15238,8 @@ function helpStringToObject$2(helpString) {
15211
15238
  //#endregion
15212
15239
  //#region src/utilities/parsers/index.ts
15213
15240
  var parsers_default = {
15214
- yargs: helpStringToObject$2,
15215
- meow: helpStringToObject$1
15241
+ yargs: helpStringToObject$1,
15242
+ meow: helpStringToObject$2
15216
15243
  };
15217
15244
  /**
15218
15245
  * Get the command and subcommand from a command string.
package/license.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Eric Mika
3
+ Copyright (c) 2025-2026 Eric Mika
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdat-plugin-cli-help",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Mdat plugin to generate tabular help documentation for CLI tools in Markdown files.",
5
5
  "keywords": [
6
6
  "markdown",
@@ -37,20 +37,20 @@
37
37
  "@types/which": "^3.0.4",
38
38
  "execa": "^9.6.1",
39
39
  "read-pkg": "^10.0.0",
40
- "type-fest": "^5.3.0",
40
+ "type-fest": "^5.4.1",
41
41
  "which": "^6.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@kitschpatrol/shared-config": "^5.10.0",
45
- "@types/node": "^20.19.25",
46
- "bumpp": "^10.3.2",
47
- "chevrotain": "^11.0.3",
48
- "mdat": "^1.3.2",
44
+ "@kitschpatrol/shared-config": "^5.12.0",
45
+ "@types/node": "^20.19.30",
46
+ "bumpp": "^10.4.0",
47
+ "chevrotain": "^11.1.0",
48
+ "mdat": "^1.3.4",
49
49
  "meow": "^14.0.0",
50
- "remark-mdat": "^1.2.0",
51
- "tsdown": "^0.17.0",
50
+ "remark-mdat": "^1.2.2",
51
+ "tsdown": "^0.19.0",
52
52
  "typescript": "~5.9.3",
53
- "vitest": "^4.0.15",
53
+ "vitest": "^4.0.17",
54
54
  "zod": "^3.25.76"
55
55
  },
56
56
  "peerDependencies": {