@codingame/monaco-vscode-editor-api 6.0.3 → 7.0.1

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.
@@ -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
- lexer.languageId = languageId;
1676
- lexer.includeLF = bool(json.includeLF, false);
1677
- lexer.noThrow = false;
1678
- lexer.maxStack = 100;
1679
- lexer.start = (typeof json.start === 'string' ? json.start : null);
1680
- lexer.ignoreCase = bool(json.ignoreCase, false);
1681
- lexer.unicode = bool(json.unicode, false);
1682
- lexer.tokenPostfix = string(json.tokenPostfix, '.' + lexer.languageId);
1683
- lexer.defaultToken = string(json.defaultToken, 'source');
1684
- lexer.usesEmbedded = false;
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": "6.0.3",
3
+ "version": "7.0.1",
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@6.0.3"
52
+ "vscode": "npm:@codingame/monaco-vscode-api@7.0.1"
53
53
  }
54
54
  }