clarity-pattern-parser 10.1.5 → 10.1.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/dist/index.esm.js CHANGED
@@ -849,7 +849,7 @@ class Reference {
849
849
  }
850
850
  const root = this._getRoot();
851
851
  return findPattern(root, (pattern) => {
852
- return pattern.name === this._name && pattern.type !== "reference" && pattern.type !== "context";
852
+ return pattern.name === this._name && pattern.type !== "reference";
853
853
  });
854
854
  }
855
855
  _getRoot() {
@@ -2620,12 +2620,6 @@ class Grammar {
2620
2620
  this._parseContext = new ParseContext(this._params);
2621
2621
  this._autoComplete = new AutoComplete(grammar, {
2622
2622
  greedyPatternNames: ["spaces", "optional-spaces", "whitespace", "new-line"],
2623
- customTokens: {
2624
- "regex-literal": ["[Regular Expression]"],
2625
- "literal": ["[String]"],
2626
- "name": ["[Pattern Name]"],
2627
- "pattern-name": ["[Pattern Name]"]
2628
- }
2629
2623
  });
2630
2624
  }
2631
2625
  import(path) {