@bhsd/lezer-json 2.1.1 → 2.1.2
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.js +5 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -23,10 +23,13 @@ export const jsonLanguage = LRLanguage.define({
|
|
|
23
23
|
export const jsoncLanguage = LRLanguage.define({
|
|
24
24
|
name: 'jsonc',
|
|
25
25
|
parser: parser.configure({ props, dialect: 'jsonc' }),
|
|
26
|
-
languageData:
|
|
26
|
+
languageData: {
|
|
27
|
+
...languageData,
|
|
28
|
+
commentTokens: {
|
|
27
29
|
line: '//',
|
|
28
30
|
block: { open: '/*', close: '*/' },
|
|
29
|
-
}
|
|
31
|
+
},
|
|
32
|
+
},
|
|
30
33
|
});
|
|
31
34
|
/**
|
|
32
35
|
* Get language support for JSON or JSONC.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhsd/lezer-json",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Lezer-based JSON/JSONC grammar",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codemirror",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@bhsd/common": "^4.0.
|
|
53
|
+
"@bhsd/common": "^4.0.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@bhsd/code-standard": "^
|
|
56
|
+
"@bhsd/code-standard": "^4.1.0",
|
|
57
57
|
"@codemirror/language": "^6.12.4",
|
|
58
58
|
"@codemirror/lint": "^6.9.7",
|
|
59
59
|
"@lezer/generator": "^1.8.0",
|
|
60
|
-
"eslint": "^10.
|
|
61
|
-
"markdownlint-cli2": "^0.23.
|
|
60
|
+
"eslint": "^10.8.1",
|
|
61
|
+
"markdownlint-cli2": "^0.23.2",
|
|
62
62
|
"typescript": "^6.0.3"
|
|
63
63
|
}
|
|
64
64
|
}
|