@codingame/monaco-editor-wrapper 3.4.1 → 3.5.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/dist/{HTML (Eex).js → HTML (Eex)2.js} +0 -0
- package/dist/JavaScript.tmLanguage.js +13 -7
- package/dist/JavaScriptReact.tmLanguage.js +13 -7
- package/dist/Scala.tmLanguage.js +1 -1
- package/dist/TypeScript.tmLanguage.js +13 -7
- package/dist/TypeScriptReact.tmLanguage.js +13 -7
- package/dist/atd.js +90 -94
- package/dist/atd2.js +94 -90
- package/dist/c.js +8 -0
- package/dist/cpp.js +8 -0
- package/dist/cpp.tmLanguage.js +150 -112
- package/dist/cpptools.js +133 -40
- package/dist/css.worker.js +1 -1
- package/dist/cuda-cpp.js +8 -0
- package/dist/d.js +3157 -84
- package/dist/d2.js +84 -3157
- package/dist/d3.js +4 -2
- package/dist/dart.js +510 -83
- package/dist/dart2.js +83 -510
- package/dist/dart3.js +0 -6
- package/dist/diet.js +740 -82
- package/dist/diet2.js +82 -740
- package/dist/django-html.js +155 -0
- package/dist/django-html.tmLanguage.js +715 -0
- package/dist/django-txt.js +155 -0
- package/dist/django-txt.tmLanguage.js +269 -0
- package/dist/dml.js +155 -76
- package/dist/dml2.js +76 -155
- package/dist/dune-project.js +469 -53
- package/dist/dune-project2.js +53 -469
- package/dist/dune-workspace.js +287 -54
- package/dist/dune-workspace2.js +54 -287
- package/dist/dune.js +2948 -51
- package/dist/dune2.js +51 -2948
- package/dist/elixir.js +2335 -63
- package/dist/elixir2.js +63 -2335
- package/dist/features/cssContribution.js +1 -4
- package/dist/features/extensionConfigurations.js +25 -122
- package/dist/features/htmlContribution.js +4 -18
- package/dist/features/jsonContribution.js +1 -8
- package/dist/features/typescriptContribution.js +4 -8
- package/dist/{html (eex)2.js → html (eex).js} +0 -0
- package/dist/html-html.code-snippets.js +20 -0
- package/dist/html.worker.js +1 -1
- package/dist/index.js +2178 -1355
- package/dist/index2.js +1362 -2186
- package/dist/java2.js +32 -9
- package/dist/json.worker.js +1 -1
- package/dist/lua2.js +35 -0
- package/dist/main.js +322 -1420
- package/dist/ocaml.interface.js +273 -95
- package/dist/ocaml.interface2.js +95 -273
- package/dist/ocaml.js +884 -95
- package/dist/ocaml2.js +95 -884
- package/dist/omnisharp.js +6 -0
- package/dist/php-php.code-snippets.js +2 -0
- package/dist/r.js +657 -81
- package/dist/r2.js +81 -657
- package/dist/scalameta.js +5 -4
- package/dist/sdl.js +150 -78
- package/dist/sdl2.js +78 -150
- package/dist/semanticdb.js +62 -0
- package/dist/solidity.js +1172 -56
- package/dist/solidity2.js +56 -1172
- package/dist/solidity3.js +6 -5
- package/dist/svelte.svelte-vscode-javascript.js +45 -0
- package/dist/svelte.svelte-vscode-typescript.js +43 -0
- package/dist/svelte.svelte-vscode.js +8 -1
- package/dist/svelte.tmLanguage.src.yaml.js +3 -3
- package/dist/theme-defaults~light_vs.js +3 -2
- package/dist/ts.worker.js +1 -1
- package/dist/typescript-basics-typescript.code-snippets.js +1 -0
- package/dist/vim.js +8 -8
- package/dist/vscode-django-filters.js +340 -0
- package/dist/vscode-django.js +37 -0
- package/dist/vscode-python.js +4 -8
- package/dist/vue-sugarss.js +390 -54
- package/dist/vue-sugarss2.js +54 -390
- package/dist/worker.js +1 -3
- package/package.json +29 -26
- package/stats.html +44 -34
package/dist/ocaml.interface.js
CHANGED
|
@@ -1,114 +1,292 @@
|
|
|
1
|
-
var
|
|
1
|
+
var name = "OCaml Interface";
|
|
2
|
+
var scopeName = "source.ocaml.interface";
|
|
3
|
+
var fileTypes = [
|
|
4
|
+
"mli",
|
|
5
|
+
"eliomi"
|
|
6
|
+
];
|
|
7
|
+
var patterns = [
|
|
2
8
|
{
|
|
3
|
-
|
|
4
|
-
close: "}"
|
|
9
|
+
include: "source.ocaml#directives"
|
|
5
10
|
},
|
|
6
11
|
{
|
|
7
|
-
|
|
8
|
-
close: "]"
|
|
12
|
+
include: "source.ocaml#comments"
|
|
9
13
|
},
|
|
10
14
|
{
|
|
11
|
-
|
|
12
|
-
close: ")"
|
|
15
|
+
include: "source.ocaml#attributes"
|
|
13
16
|
},
|
|
14
17
|
{
|
|
15
|
-
|
|
16
|
-
close: "\"",
|
|
17
|
-
notIn: [
|
|
18
|
-
"string"
|
|
19
|
-
]
|
|
18
|
+
include: "source.ocaml#extensions"
|
|
20
19
|
},
|
|
21
20
|
{
|
|
22
|
-
|
|
23
|
-
close: "*",
|
|
24
|
-
notIn: [
|
|
25
|
-
"string"
|
|
26
|
-
]
|
|
21
|
+
include: "#bindings"
|
|
27
22
|
},
|
|
28
23
|
{
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
];
|
|
36
|
-
var brackets = [
|
|
37
|
-
[
|
|
38
|
-
"{",
|
|
39
|
-
"}"
|
|
40
|
-
],
|
|
41
|
-
[
|
|
42
|
-
"[",
|
|
43
|
-
"]"
|
|
44
|
-
],
|
|
45
|
-
[
|
|
46
|
-
"(",
|
|
47
|
-
")"
|
|
48
|
-
],
|
|
49
|
-
[
|
|
50
|
-
"[|",
|
|
51
|
-
"|]"
|
|
52
|
-
]
|
|
53
|
-
];
|
|
54
|
-
var comments = {
|
|
55
|
-
blockComment: [
|
|
56
|
-
"(*",
|
|
57
|
-
"*)"
|
|
58
|
-
]
|
|
59
|
-
};
|
|
60
|
-
var surroundingPairs = [
|
|
61
|
-
[
|
|
62
|
-
"{",
|
|
63
|
-
"}"
|
|
64
|
-
],
|
|
65
|
-
[
|
|
66
|
-
"[",
|
|
67
|
-
"]"
|
|
68
|
-
],
|
|
69
|
-
[
|
|
70
|
-
"(",
|
|
71
|
-
")"
|
|
72
|
-
],
|
|
73
|
-
[
|
|
74
|
-
"'",
|
|
75
|
-
"'"
|
|
76
|
-
],
|
|
77
|
-
[
|
|
78
|
-
"\"",
|
|
79
|
-
"\""
|
|
80
|
-
]
|
|
81
|
-
];
|
|
82
|
-
var indentationRules = {
|
|
83
|
-
decreaseIndentPattern: "^\\s*(end|done|with|in|else)\\b|^\\s*;;",
|
|
84
|
-
increaseIndentPattern: "\\b(begin|object)\\s*$|\\blet [a-zA-Z0-9_-]+( [^ ]+)* =\\s*$|method!?[ \\t]+.*=[ \\t]*$|->[ \\t]*$|\\b(for|while)(_lwt)?[ \\t]+.*[ \\t]+do[ \\t]*$|(\\btry(_lwt)?$|\\bif\\s+.*\\sthen$|\\belse|[:=]\\s*sig|=\\s*struct)\\s*$",
|
|
85
|
-
indentNextLinePattern: "(?!\\bif.*then.*(else.*|(;|[ \\t]in)[ \\t]*$))\\bif|\\bthen[ \\t]*$|\\belse[ \\t]*$$"
|
|
86
|
-
};
|
|
87
|
-
var onEnterRules = [
|
|
24
|
+
include: "source.ocaml#operators"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
include: "#keywords"
|
|
28
|
+
},
|
|
88
29
|
{
|
|
89
|
-
|
|
90
|
-
afterText: "\\*\\)",
|
|
91
|
-
action: {
|
|
92
|
-
indent: "none",
|
|
93
|
-
appendText: " "
|
|
94
|
-
}
|
|
30
|
+
include: "source.ocaml#types"
|
|
95
31
|
},
|
|
96
32
|
{
|
|
97
|
-
|
|
98
|
-
afterText: "\\*\\)",
|
|
99
|
-
action: {
|
|
100
|
-
indent: "none",
|
|
101
|
-
appendText: " "
|
|
102
|
-
}
|
|
33
|
+
include: "source.ocaml#identifiers"
|
|
103
34
|
}
|
|
104
35
|
];
|
|
36
|
+
var repository = {
|
|
37
|
+
bindings: {
|
|
38
|
+
comment: "bindings that are shared between .ml and .mli syntaxes",
|
|
39
|
+
patterns: [
|
|
40
|
+
{
|
|
41
|
+
comment: "optional labeled argument",
|
|
42
|
+
name: "variable.parameter.optional.ocaml",
|
|
43
|
+
match: "\\?([[:lower:]_][[:word:]']*)?"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
comment: "labeled argument",
|
|
47
|
+
name: "variable.parameter.labeled.ocaml",
|
|
48
|
+
match: "~([[:lower:]_][[:word:]']*)?"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
comment: "type declaration",
|
|
52
|
+
match: "\\b(type)[[:space:]]+(nonrec[[:space:]]+)?(_[[:space:]]+|[+-]?'[[:alpha:]][[:word:]']*[[:space:]]+|\\(.*\\)[[:space:]]+)?([[:lower:]_][[:word:]']*)",
|
|
53
|
+
captures: {
|
|
54
|
+
"1": {
|
|
55
|
+
name: "keyword.ocaml"
|
|
56
|
+
},
|
|
57
|
+
"2": {
|
|
58
|
+
name: "keyword.ocaml"
|
|
59
|
+
},
|
|
60
|
+
"3": {
|
|
61
|
+
patterns: [
|
|
62
|
+
{
|
|
63
|
+
include: "$base"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"4": {
|
|
68
|
+
name: "entity.name.function.binding.ocaml"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
comment: "and declaration for let bindings, type declarations, class bindings, class type definitions, or module constraints",
|
|
74
|
+
match: "\\b(and)[[:space:]]+(?!(?:module|type|lazy)\\b(?!'))(virtual[[:space:]]+)?(_[[:space:]]+|'[[:alpha:]][[:word:]']*[[:space:]]+|\\(.*\\)[[:space:]]+)?([[:lower:]_][[:word:]']*)(?![[:word:]'])[[:space:]]*(?!,|::|[[:space:]])",
|
|
75
|
+
captures: {
|
|
76
|
+
"1": {
|
|
77
|
+
name: "keyword.ocaml"
|
|
78
|
+
},
|
|
79
|
+
"2": {
|
|
80
|
+
name: "keyword.ocaml"
|
|
81
|
+
},
|
|
82
|
+
"3": {
|
|
83
|
+
patterns: [
|
|
84
|
+
{
|
|
85
|
+
include: "$base"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"4": {
|
|
90
|
+
name: "entity.name.function.binding.ocaml"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
comment: "external declaration",
|
|
96
|
+
begin: "\\b(external)[[:space:]]+([[:lower:]_][[:word:]']*)?",
|
|
97
|
+
beginCaptures: {
|
|
98
|
+
"1": {
|
|
99
|
+
name: "keyword.ocaml"
|
|
100
|
+
},
|
|
101
|
+
"2": {
|
|
102
|
+
name: "entity.name.function.binding.ocaml"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
end: "(?<=]|\")[[:space:]]*(?:$|(?=]))",
|
|
106
|
+
patterns: [
|
|
107
|
+
{
|
|
108
|
+
comment: "string literal",
|
|
109
|
+
name: "string.quoted.double.ocaml",
|
|
110
|
+
begin: "\"",
|
|
111
|
+
end: "\""
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
include: "$base"
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
comment: "val declaration for class instance variables",
|
|
120
|
+
match: "\\b(val)[[:space:]]+(virtual)[[:space:]]+(mutable)[[:space:]]+([[:lower:]_][[:word:]']*)",
|
|
121
|
+
captures: {
|
|
122
|
+
"1": {
|
|
123
|
+
name: "keyword.ocaml"
|
|
124
|
+
},
|
|
125
|
+
"2": {
|
|
126
|
+
name: "keyword.ocaml"
|
|
127
|
+
},
|
|
128
|
+
"3": {
|
|
129
|
+
name: "keyword.ocaml"
|
|
130
|
+
},
|
|
131
|
+
"4": {
|
|
132
|
+
name: "entity.name.function.binding.ocaml"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
comment: "val declaration for let bindings or class instance variables",
|
|
138
|
+
match: "\\b(val|val!)[[:space:]]+(mutable[[:space:]]+)?(virtual[[:space:]]+)?([[:lower:]_][[:word:]']*)",
|
|
139
|
+
captures: {
|
|
140
|
+
"1": {
|
|
141
|
+
name: "keyword.ocaml"
|
|
142
|
+
},
|
|
143
|
+
"2": {
|
|
144
|
+
name: "keyword.ocaml"
|
|
145
|
+
},
|
|
146
|
+
"3": {
|
|
147
|
+
name: "keyword.ocaml"
|
|
148
|
+
},
|
|
149
|
+
"4": {
|
|
150
|
+
name: "entity.name.function.binding.ocaml"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
comment: "class method declaration",
|
|
156
|
+
match: "\\b(method)[[:space:]]+(virtual)[[:space:]]+(private)[[:space:]]+([[:lower:]_][[:word:]']*)",
|
|
157
|
+
captures: {
|
|
158
|
+
"1": {
|
|
159
|
+
name: "keyword.ocaml"
|
|
160
|
+
},
|
|
161
|
+
"2": {
|
|
162
|
+
name: "keyword.ocaml"
|
|
163
|
+
},
|
|
164
|
+
"3": {
|
|
165
|
+
name: "keyword.ocaml"
|
|
166
|
+
},
|
|
167
|
+
"4": {
|
|
168
|
+
name: "entity.name.function.binding.ocaml"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
comment: "class method declaration",
|
|
174
|
+
match: "\\b(method|method!)[[:space:]]+(private[[:space:]]+)?(virtual[[:space:]]+)?([[:lower:]_][[:word:]']*)",
|
|
175
|
+
captures: {
|
|
176
|
+
"1": {
|
|
177
|
+
name: "keyword.ocaml"
|
|
178
|
+
},
|
|
179
|
+
"2": {
|
|
180
|
+
name: "keyword.ocaml"
|
|
181
|
+
},
|
|
182
|
+
"3": {
|
|
183
|
+
name: "keyword.ocaml"
|
|
184
|
+
},
|
|
185
|
+
"4": {
|
|
186
|
+
name: "entity.name.function.binding.ocaml"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
comment: "class specification or class type definition with type parameters",
|
|
192
|
+
match: "\\b(class)[[:space:]]*([[:space:]]+type)?([[:space:]]+virtual)?[[:space:]]*(\\[.*\\])[[:space:]]*([[:lower:]_][[:word:]']*)",
|
|
193
|
+
captures: {
|
|
194
|
+
"1": {
|
|
195
|
+
name: "keyword.ocaml"
|
|
196
|
+
},
|
|
197
|
+
"2": {
|
|
198
|
+
name: "keyword.ocaml"
|
|
199
|
+
},
|
|
200
|
+
"3": {
|
|
201
|
+
name: "keyword.ocaml"
|
|
202
|
+
},
|
|
203
|
+
"4": {
|
|
204
|
+
patterns: [
|
|
205
|
+
{
|
|
206
|
+
include: "$base"
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
"5": {
|
|
211
|
+
name: "entity.name.function.binding.ocaml"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
comment: "class specification or class type definition",
|
|
217
|
+
match: "\\b(class)[[:space:]]+(type[[:space:]]+)?(virtual[[:space:]]+)?([[:lower:]_][[:word:]']*)",
|
|
218
|
+
captures: {
|
|
219
|
+
"1": {
|
|
220
|
+
name: "keyword.ocaml"
|
|
221
|
+
},
|
|
222
|
+
"2": {
|
|
223
|
+
name: "keyword.ocaml"
|
|
224
|
+
},
|
|
225
|
+
"3": {
|
|
226
|
+
name: "keyword.ocaml"
|
|
227
|
+
},
|
|
228
|
+
"4": {
|
|
229
|
+
name: "entity.name.function.binding.ocaml"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
comment: "named self in object",
|
|
235
|
+
match: "\\b(object)[[:space:]]*\\([[:space:]]*([[:lower:]_][[:word:]']*)",
|
|
236
|
+
captures: {
|
|
237
|
+
"1": {
|
|
238
|
+
name: "keyword.ocaml"
|
|
239
|
+
},
|
|
240
|
+
"2": {
|
|
241
|
+
name: "entity.name.function.binding.ocaml"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
comment: "module type of",
|
|
247
|
+
begin: "\\b(module)[[:space:]]+(type)[[:space:]]+(of)\\b",
|
|
248
|
+
beginCaptures: {
|
|
249
|
+
"1": {
|
|
250
|
+
name: "keyword.ocaml"
|
|
251
|
+
},
|
|
252
|
+
"2": {
|
|
253
|
+
name: "keyword.ocaml"
|
|
254
|
+
},
|
|
255
|
+
"3": {
|
|
256
|
+
name: "keyword.ocaml"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
end: "(?=val|external|type|exception|class|module|open|include|=)",
|
|
260
|
+
patterns: [
|
|
261
|
+
{
|
|
262
|
+
include: "source.ocaml"
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
keywords: {
|
|
269
|
+
patterns: [
|
|
270
|
+
{
|
|
271
|
+
comment: "reserved ocaml keyword (in interfaces)",
|
|
272
|
+
name: "keyword.other.ocaml.interface",
|
|
273
|
+
match: "\\b(and|as|class|constraint|end|exception|external|functor|in|include|inherit|let[[:space:]]+open|method|module|mutable|nonrec|object|of|open|private|rec|sig|type|val|virtual|with)\\b(?!')"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
var information_for_contributors = [
|
|
279
|
+
"This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
|
|
280
|
+
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
|
281
|
+
"Once accepted there, we are happy to receive an update request."
|
|
282
|
+
];
|
|
105
283
|
var ocaml_interface = {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
284
|
+
name: name,
|
|
285
|
+
scopeName: scopeName,
|
|
286
|
+
fileTypes: fileTypes,
|
|
287
|
+
patterns: patterns,
|
|
288
|
+
repository: repository,
|
|
289
|
+
information_for_contributors: information_for_contributors
|
|
112
290
|
};
|
|
113
291
|
|
|
114
|
-
export {
|
|
292
|
+
export { ocaml_interface as default, fileTypes, information_for_contributors, name, patterns, repository, scopeName };
|