@codingame/monaco-vscode-editor-api 6.0.2 → 7.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.
- package/esm/vs/editor/editor.api.js +15 -11
- package/package.json +2 -2
|
@@ -1671,17 +1671,21 @@ function compile(languageId, json) {
|
|
|
1671
1671
|
if (!json || typeof (json) !== 'object') {
|
|
1672
1672
|
throw ( new Error('Monarch: expecting a language definition object'));
|
|
1673
1673
|
}
|
|
1674
|
-
const lexer = {
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1674
|
+
const lexer = {
|
|
1675
|
+
languageId: languageId,
|
|
1676
|
+
includeLF: bool(json.includeLF, false),
|
|
1677
|
+
noThrow: false,
|
|
1678
|
+
maxStack: 100,
|
|
1679
|
+
start: (typeof json.start === 'string' ? json.start : null),
|
|
1680
|
+
ignoreCase: bool(json.ignoreCase, false),
|
|
1681
|
+
unicode: bool(json.unicode, false),
|
|
1682
|
+
tokenPostfix: string(json.tokenPostfix, '.' + languageId),
|
|
1683
|
+
defaultToken: string(json.defaultToken, 'source'),
|
|
1684
|
+
usesEmbedded: false,
|
|
1685
|
+
stateNames: {},
|
|
1686
|
+
tokenizer: {},
|
|
1687
|
+
brackets: []
|
|
1688
|
+
};
|
|
1685
1689
|
const lexerMin = json;
|
|
1686
1690
|
lexerMin.languageId = languageId;
|
|
1687
1691
|
lexerMin.includeLF = lexer.includeLF;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-editor-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"module": "esm/vs/editor/editor.api.js",
|
|
50
50
|
"types": "esm/vs/editor/editor.api.d.ts",
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
52
|
+
"vscode": "npm:@codingame/monaco-vscode-api@7.0.0"
|
|
53
53
|
}
|
|
54
54
|
}
|