cspell-grammar 7.0.2 → 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.js CHANGED
@@ -37,3 +37,4 @@ function emit(pt) {
37
37
  const t = pt.text.replace(/\t/g, '↦').replace(/\r?\n/g, '↩︎').replace(/\r/g, '⇠');
38
38
  console.log(`${pt.range[0]}-${pt.range[1]}\t${t}\t${pt.scope?.toString() || ''}`);
39
39
  }
40
+ //# sourceMappingURL=app.js.map
@@ -1,2 +1,3 @@
1
1
  export * as Markdown from './markdown.js';
2
2
  export * as TypeScript from './typescript.js';
3
+ //# sourceMappingURL=index.js.map
@@ -30,3 +30,4 @@ export const grammar = {
30
30
  patterns: ['#frontMatter', '#block'],
31
31
  repository,
32
32
  };
33
+ //# sourceMappingURL=markdown.js.map
@@ -106,3 +106,4 @@ export const grammar = {
106
106
  patterns: ['#statements'],
107
107
  repository,
108
108
  };
109
+ //# sourceMappingURL=simple.js.map
@@ -159,3 +159,4 @@ export const grammar = {
159
159
  ],
160
160
  repository,
161
161
  };
162
+ //# sourceMappingURL=typescript.js.map
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export { compileGrammar, tokenizeLine, tokenizeText } from './parser/index.js';
2
2
  export { parsers } from './parsers/index.js';
3
+ //# sourceMappingURL=index.js.map
@@ -35,3 +35,4 @@ function joinMaps(aMap, bMap) {
35
35
  }
36
36
  return r;
37
37
  }
38
+ //# sourceMappingURL=appendMappedText.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
@@ -140,3 +140,4 @@ export function mapRawString(text) {
140
140
  map,
141
141
  };
142
142
  }
143
+ //# sourceMappingURL=typescript.js.map
@@ -2,3 +2,4 @@ import { normalizeGrammar } from './grammarNormalizer.js';
2
2
  export function compileGrammar(grammar) {
3
3
  return normalizeGrammar(grammar);
4
4
  }
5
+ //# sourceMappingURL=grammar.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=grammarDefinition.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=grammarNormalized.js.map
@@ -258,3 +258,4 @@ class ImplNPatternPatterns {
258
258
  return rule.findNext?.(line);
259
259
  }
260
260
  }
261
+ //# sourceMappingURL=grammarNormalizer.js.map
@@ -21,3 +21,4 @@ export function isPatternPatterns(p) {
21
21
  export function isGrammar(g) {
22
22
  return g.scopeName !== undefined;
23
23
  }
24
+ //# sourceMappingURL=grammarTypesHelpers.js.map
@@ -1,2 +1,3 @@
1
1
  export { compileGrammar } from './grammar.js';
2
2
  export { tokenizeLine, tokenizeText } from './tokenizeLine.js';
3
+ //# sourceMappingURL=index.js.map
@@ -47,3 +47,4 @@ export function createSimpleMatchResult(match, input, index, lineNumber) {
47
47
  const groups = Object.create(null);
48
48
  return { index, input, match, matches: [match], groups, lineNumber };
49
49
  }
50
+ //# sourceMappingURL=matchResult.js.map
@@ -24,3 +24,4 @@ export function createParser(grammar, name, transform = mapTokenizedLines) {
24
24
  }
25
25
  return { name, parse };
26
26
  }
27
+ //# sourceMappingURL=parser.js.map
@@ -146,3 +146,4 @@ export function applyCaptures(rule, match, captures) {
146
146
  const parsedText = [...emit(merged)];
147
147
  return parsedText;
148
148
  }
149
+ //# sourceMappingURL=procMatchingRule.js.map
@@ -67,3 +67,4 @@ export class ScopePool {
67
67
  function isScopeLike(value) {
68
68
  return typeof value === 'object' && !Array.isArray(value) && value.value !== undefined;
69
69
  }
70
+ //# sourceMappingURL=scope.js.map
@@ -119,3 +119,4 @@ function findNearestWithEnd(ctx) {
119
119
  }
120
120
  return ctx;
121
121
  }
122
+ //# sourceMappingURL=tokenizeLine.js.map
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=types.js.map
@@ -1,3 +1,4 @@
1
1
  export function isDefined(t) {
2
2
  return t !== undefined && t !== null;
3
3
  }
4
+ //# sourceMappingURL=util.js.map
@@ -53,3 +53,4 @@ function isValidPatternName(name) {
53
53
  return false;
54
54
  return /^[-\w.]+$/.test(name);
55
55
  }
56
+ //# sourceMappingURL=validateGrammar.js.map
@@ -1,2 +1,3 @@
1
1
  import { parser as parserTypeScript } from './typescript/index.js';
2
2
  export const parsers = [parserTypeScript];
3
+ //# sourceMappingURL=index.js.map
@@ -87,3 +87,4 @@ function doesScopeMatch(s, match) {
87
87
  return false;
88
88
  return typeof s === 'string' ? s.startsWith(match) : s.value.startsWith(match);
89
89
  }
90
+ //# sourceMappingURL=TypeScriptParser.js.map
@@ -1 +1,2 @@
1
1
  export { parser } from './TypeScriptParser.js';
2
+ //# sourceMappingURL=index.js.map
@@ -37,3 +37,4 @@ function compileEntities(entityMap) {
37
37
  }
38
38
  return result;
39
39
  }
40
+ //# sourceMappingURL=escapeMarkdown.js.map
@@ -2,3 +2,4 @@ import { escapeMarkdown } from './escapeMarkdown.js';
2
2
  export function toInlineCode(text) {
3
3
  return `<code>${escapeMarkdown(text.replace(/\r/g, '↤').replace(/\n/g, '↩'))}</code>`;
4
4
  }
5
+ //# sourceMappingURL=markdownHelper.js.map
@@ -29,3 +29,4 @@ ${rows.join('\n')}
29
29
  export function tokenizedLinesToMarkdown(lines, indentation = '') {
30
30
  return lines.map((line) => tokenizedLineToMarkdown(line, indentation)).join('');
31
31
  }
32
+ //# sourceMappingURL=visualizeAsMD.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cspell-grammar",
3
- "version": "7.0.2",
3
+ "version": "7.2.0",
4
4
  "description": "Grammar parsing support for cspell",
5
5
  "keywords": [
6
6
  "cspell",
@@ -82,8 +82,8 @@
82
82
  "jest": "^29.6.4"
83
83
  },
84
84
  "dependencies": {
85
- "@cspell/cspell-pipe": "7.0.2",
86
- "@cspell/cspell-types": "7.0.2"
85
+ "@cspell/cspell-pipe": "7.2.0",
86
+ "@cspell/cspell-types": "7.2.0"
87
87
  },
88
- "gitHead": "25aa083421fc81e4d5b7cedb4755f9b327120cfc"
88
+ "gitHead": "b08f7ddc3a4aa22cc80c69ca6638b2a943659a31"
89
89
  }