@codingame/monaco-vscode-editor-api 11.1.1 → 12.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/browser/config/tabFocus.d.ts +1 -0
- package/esm/vs/editor/browser/coreCommands.d.ts +1 -0
- package/esm/vs/editor/common/commands/shiftCommand.d.ts +1 -0
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.d.ts +1 -0
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.d.ts +1 -0
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.d.ts +1 -0
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.d.ts +1 -0
- package/esm/vs/editor/contrib/find/browser/findController.d.ts +1 -0
- package/esm/vs/editor/contrib/format/browser/formatActions.d.ts +1 -0
- package/esm/vs/editor/contrib/hover/browser/hoverContribution.d.ts +1 -0
- package/esm/vs/editor/contrib/hover/browser/hoverContribution.js +1 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.d.ts +1 -0
- package/esm/vs/editor/editor.api.d.ts +7 -2
- package/esm/vs/editor/editor.api.js +4 -2311
- package/package.json +14 -9
- package/vscode/src/vs/editor/editor.api.d.ts +9338 -0
- package/vscode/src/vs/editor/editor.api.js +35 -0
- package/vscode/src/vs/editor/standalone/browser/colorizer.d.ts +17 -0
- package/vscode/src/vs/editor/standalone/browser/colorizer.js +178 -0
- package/vscode/src/vs/editor/standalone/browser/standalone-tokens.css.js +6 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneEditor.d.ts +73 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneEditor.js +347 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneLanguages.d.ts +114 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneLanguages.js +444 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneWebWorker.d.ts +15 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneWebWorker.js +66 -0
- package/vscode/src/vs/editor/standalone/common/monarch/monarchCommon.d.ts +72 -0
- package/vscode/src/vs/editor/standalone/common/monarch/monarchCommon.js +111 -0
- package/vscode/src/vs/editor/standalone/common/monarch/monarchCompile.d.ts +3 -0
- package/vscode/src/vs/editor/standalone/common/monarch/monarchCompile.js +476 -0
- package/vscode/src/vs/editor/standalone/common/monarch/monarchLexer.d.ts +33 -0
- package/vscode/src/vs/editor/standalone/common/monarch/monarchLexer.js +707 -0
- package/vscode/src/vs/editor/standalone/common/monarch/monarchTypes.d.ts +46 -0
- package/editor.api.d.ts +0 -7
- package/monaco.d.ts +0 -10
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface IMonarchLanguage {
|
|
2
|
+
tokenizer: {
|
|
3
|
+
[name: string]: IMonarchLanguageRule[];
|
|
4
|
+
};
|
|
5
|
+
ignoreCase?: boolean;
|
|
6
|
+
unicode?: boolean;
|
|
7
|
+
defaultToken?: string;
|
|
8
|
+
brackets?: IMonarchLanguageBracket[];
|
|
9
|
+
start?: string;
|
|
10
|
+
tokenPostfix?: string;
|
|
11
|
+
includeLF?: boolean;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export type IShortMonarchLanguageRule1 = [
|
|
15
|
+
string | RegExp,
|
|
16
|
+
IMonarchLanguageAction
|
|
17
|
+
];
|
|
18
|
+
export type IShortMonarchLanguageRule2 = [
|
|
19
|
+
string | RegExp,
|
|
20
|
+
IMonarchLanguageAction,
|
|
21
|
+
string
|
|
22
|
+
];
|
|
23
|
+
export interface IExpandedMonarchLanguageRule {
|
|
24
|
+
regex?: string | RegExp;
|
|
25
|
+
action?: IMonarchLanguageAction;
|
|
26
|
+
include?: string;
|
|
27
|
+
}
|
|
28
|
+
export type IMonarchLanguageRule = IShortMonarchLanguageRule1 | IShortMonarchLanguageRule2 | IExpandedMonarchLanguageRule;
|
|
29
|
+
export type IShortMonarchLanguageAction = string;
|
|
30
|
+
export interface IExpandedMonarchLanguageAction {
|
|
31
|
+
group?: IMonarchLanguageAction[];
|
|
32
|
+
cases?: Object;
|
|
33
|
+
token?: string;
|
|
34
|
+
next?: string;
|
|
35
|
+
switchTo?: string;
|
|
36
|
+
goBack?: number;
|
|
37
|
+
bracket?: string;
|
|
38
|
+
nextEmbedded?: string;
|
|
39
|
+
log?: string;
|
|
40
|
+
}
|
|
41
|
+
export type IMonarchLanguageAction = IShortMonarchLanguageAction | IExpandedMonarchLanguageAction | (IShortMonarchLanguageAction | IExpandedMonarchLanguageAction)[];
|
|
42
|
+
export interface IMonarchLanguageBracket {
|
|
43
|
+
open: string;
|
|
44
|
+
close: string;
|
|
45
|
+
token: string;
|
|
46
|
+
}
|
package/editor.api.d.ts
DELETED
package/monaco.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IReference } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
2
|
-
export { DisposableStore, IReference } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
|
-
import { ITextFileEditorModel } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles';
|
|
5
|
-
export { ITextFileEditorModel } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles';
|
|
6
|
-
|
|
7
|
-
declare function writeFile(uri: URI, content: string): Promise<void>;
|
|
8
|
-
declare function createModelReference(resource: URI, content?: string): Promise<IReference<ITextFileEditorModel>>;
|
|
9
|
-
|
|
10
|
-
export { createModelReference, writeFile };
|