cspell-grammar 7.3.9 → 8.0.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.
|
@@ -208,6 +208,15 @@ export function extractScope(er, isContent = true) {
|
|
|
208
208
|
return er.grammar.scopePool.parseScope(scope);
|
|
209
209
|
}
|
|
210
210
|
class ImplNGrammar {
|
|
211
|
+
scopeName;
|
|
212
|
+
name;
|
|
213
|
+
comment;
|
|
214
|
+
disabled;
|
|
215
|
+
patterns;
|
|
216
|
+
repository;
|
|
217
|
+
grammarName;
|
|
218
|
+
self;
|
|
219
|
+
scopePool;
|
|
211
220
|
constructor(grammar) {
|
|
212
221
|
this.scopeName = grammar.scopeName;
|
|
213
222
|
this.name = grammar.scopeName;
|
|
@@ -242,6 +251,10 @@ class ImplNGrammar {
|
|
|
242
251
|
}
|
|
243
252
|
}
|
|
244
253
|
class ImplNPatternPatterns {
|
|
254
|
+
name;
|
|
255
|
+
comment;
|
|
256
|
+
disabled;
|
|
257
|
+
patterns;
|
|
245
258
|
constructor(p) {
|
|
246
259
|
const { name, comment, disabled, ...rest } = p;
|
|
247
260
|
this.patterns = normalizePatterns(rest.patterns);
|
package/dist/parser/scope.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import assert from 'assert';
|
|
2
2
|
export class Scope {
|
|
3
|
+
value;
|
|
4
|
+
parent;
|
|
3
5
|
constructor(value, parent) {
|
|
4
6
|
this.value = value;
|
|
5
7
|
this.parent = parent;
|
|
@@ -23,9 +25,7 @@ export class Scope {
|
|
|
23
25
|
* then they will be the same object.
|
|
24
26
|
*/
|
|
25
27
|
export class ScopePool {
|
|
26
|
-
|
|
27
|
-
this.pool = new Map();
|
|
28
|
-
}
|
|
28
|
+
pool = new Map();
|
|
29
29
|
/**
|
|
30
30
|
* Get a Scope that matches the scope. This method is idempotent.
|
|
31
31
|
* @param scopeValue - a single scope value: i.e. `source.ts`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell-grammar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Grammar parsing support for cspell",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cspell",
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
"url": "https://github.com/streetsidesoftware/cspell/labels/cspell-grammar"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
|
79
|
-
"node": ">=
|
|
79
|
+
"node": ">=18"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"jest": "^29.7.0"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@cspell/cspell-pipe": "
|
|
86
|
-
"@cspell/cspell-types": "
|
|
85
|
+
"@cspell/cspell-pipe": "8.0.0",
|
|
86
|
+
"@cspell/cspell-types": "8.0.0"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "67c22bf98baed1c17bbc658fba8656262d17e370"
|
|
89
89
|
}
|