@codingame/monaco-editor-wrapper 1.15.0 → 2.1.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.
Files changed (58) hide show
  1. package/dist/COBOL.tmLanguage.js +2 -2
  2. package/dist/META.js +100 -0
  3. package/dist/atd.js +114 -0
  4. package/dist/atd2.js +110 -0
  5. package/dist/cobol-snippets.js +2 -2117
  6. package/dist/cobol2.js +46 -0
  7. package/dist/cram.js +257 -0
  8. package/dist/dune-project.js +65 -0
  9. package/dist/dune-project2.js +481 -0
  10. package/dist/dune-workspace.js +65 -0
  11. package/dist/dune-workspace2.js +298 -0
  12. package/dist/dune.js +65 -0
  13. package/dist/dune2.js +2962 -0
  14. package/dist/index.js +31 -1
  15. package/dist/main.js +490 -391
  16. package/dist/menhir-action.js +51 -0
  17. package/dist/menhir.js +597 -0
  18. package/dist/merlin.js +23 -23
  19. package/dist/monaco.d.ts +1 -1
  20. package/dist/oasis.js +99 -0
  21. package/dist/ocaml-dune-project.js +38 -0
  22. package/dist/ocaml-dune.js +53 -0
  23. package/dist/ocaml-markdown-codeblock.js +1 -1
  24. package/dist/ocaml-ocaml.js +88 -0
  25. package/dist/ocaml-ocamllex.js +12 -0
  26. package/dist/ocaml.META.js +29 -0
  27. package/dist/ocaml.interface.js +114 -0
  28. package/dist/ocaml.interface2.js +292 -0
  29. package/dist/ocaml.js +40 -8
  30. package/dist/ocaml.menhir.js +81 -0
  31. package/dist/ocaml.oasis.js +18 -0
  32. package/dist/ocaml.ocamlbuild.js +45 -0
  33. package/dist/ocaml.ocamlformat.js +8 -0
  34. package/dist/ocaml.ocamllex.js +60 -0
  35. package/dist/ocaml.opam-install.js +49 -0
  36. package/dist/ocaml.opam.js +69 -0
  37. package/dist/ocaml2.js +600 -2676
  38. package/dist/ocaml3.js +89 -105
  39. package/dist/ocamlbuild.js +142 -192
  40. package/dist/ocamldoc.js +54 -0
  41. package/dist/ocamlformat.js +206 -0
  42. package/dist/ocamllex.js +133 -0
  43. package/dist/opam-install.js +40 -0
  44. package/dist/opam.js +100 -109
  45. package/dist/reason-markdown-codeblock.js +1 -1
  46. package/dist/reason.js +0 -4
  47. package/dist/scalameta.js +1 -1
  48. package/dist/tools/EditorOpenHandlerRegistry.d.ts +8 -0
  49. package/package.json +47 -3
  50. package/stats.html +1 -1
  51. package/dist/ocaml-hover-info.js +0 -34
  52. package/dist/ocaml-hover-type.js +0 -24
  53. package/dist/ocaml-reason.js +0 -100
  54. package/dist/reason-hover-info.js +0 -34
  55. package/dist/reason-hover-signature.js +0 -21
  56. package/dist/reason-hover-type.js +0 -21
  57. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +0 -9
  58. package/dist/services/TextModelService.d.ts +0 -25
@@ -0,0 +1,481 @@
1
+ var name = "dune-project";
2
+ var scopeName = "source.dune-project";
3
+ var fileTypes = [
4
+ "dune-project"
5
+ ];
6
+ var patterns = [
7
+ {
8
+ include: "#stanzas"
9
+ },
10
+ {
11
+ include: "source.dune#general"
12
+ }
13
+ ];
14
+ var repository = {
15
+ stanzas: {
16
+ patterns: [
17
+ {
18
+ comment: "lang",
19
+ begin: "\\([[:space:]]*(lang)[[:space:]]+(dune)\\b",
20
+ end: "\\)",
21
+ beginCaptures: {
22
+ "1": {
23
+ name: "keyword.language.dune-project"
24
+ },
25
+ "2": {
26
+ name: "keyword.language.dune-project"
27
+ }
28
+ },
29
+ patterns: [
30
+ {
31
+ include: "source.dune#general"
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ comment: "name",
37
+ begin: "\\([[:space:]]*(name)\\b",
38
+ end: "\\)",
39
+ beginCaptures: {
40
+ "1": {
41
+ name: "keyword.language.dune-project"
42
+ }
43
+ },
44
+ contentName: "variable.other.declaration.dune-project",
45
+ patterns: [
46
+ {
47
+ include: "source.dune#general"
48
+ }
49
+ ]
50
+ },
51
+ {
52
+ comment: "version",
53
+ begin: "\\([[:space:]]*(version)\\b",
54
+ end: "\\)",
55
+ beginCaptures: {
56
+ "1": {
57
+ name: "keyword.language.dune-project"
58
+ }
59
+ },
60
+ contentName: "constant.language.dune-project",
61
+ patterns: [
62
+ {
63
+ include: "source.dune#general"
64
+ }
65
+ ]
66
+ },
67
+ {
68
+ comment: "implicit_transitive_deps",
69
+ begin: "\\([[:space:]]*(implicit_transitive_deps)\\b",
70
+ end: "\\)",
71
+ beginCaptures: {
72
+ "1": {
73
+ name: "keyword.language.dune-project"
74
+ }
75
+ },
76
+ patterns: [
77
+ {
78
+ include: "source.dune#general"
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ comment: "wrapped_executables",
84
+ begin: "\\([[:space:]]*(wrapped_executables)\\b",
85
+ end: "\\)",
86
+ beginCaptures: {
87
+ "1": {
88
+ name: "keyword.language.dune-project"
89
+ }
90
+ },
91
+ patterns: [
92
+ {
93
+ include: "source.dune#general"
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ comment: "explicit_js_mode",
99
+ match: "\\([[:space:]]*(explicit_js_mode)[[:space:]]*\\)",
100
+ captures: {
101
+ "1": {
102
+ name: "keyword.language.dune-project"
103
+ }
104
+ }
105
+ },
106
+ {
107
+ comment: "dialect",
108
+ begin: "\\([[:space:]]*(dialect)\\b",
109
+ end: "\\)",
110
+ beginCaptures: {
111
+ "1": {
112
+ name: "keyword.language.dune-project"
113
+ }
114
+ },
115
+ patterns: [
116
+ {
117
+ comment: "name",
118
+ begin: "\\([[:space:]]*(name)\\b",
119
+ end: "\\)",
120
+ beginCaptures: {
121
+ "1": {
122
+ name: "keyword.language.dune-project"
123
+ }
124
+ },
125
+ contentName: "variable.other.declaration.dune-project",
126
+ patterns: [
127
+ {
128
+ include: "source.dune#general"
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ comment: "implementation/interface",
134
+ begin: "\\([[:space:]]*(implementation|interface)\\b",
135
+ end: "\\)",
136
+ beginCaptures: {
137
+ "1": {
138
+ name: "keyword.language.dune-project"
139
+ }
140
+ },
141
+ patterns: [
142
+ {
143
+ comment: "extension/preprocess/format",
144
+ begin: "\\([[:space:]]*(extension|preprocess|format)\\b",
145
+ end: "\\)",
146
+ beginCaptures: {
147
+ "1": {
148
+ name: "keyword.language.dune-project"
149
+ }
150
+ },
151
+ patterns: [
152
+ {
153
+ include: "source.dune#general"
154
+ }
155
+ ]
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ include: "source.dune#general"
161
+ }
162
+ ]
163
+ },
164
+ {
165
+ comment: "formatting",
166
+ begin: "\\([[:space:]]*(formatting)\\b",
167
+ end: "\\)",
168
+ beginCaptures: {
169
+ "1": {
170
+ name: "keyword.language.dune-project"
171
+ }
172
+ },
173
+ patterns: [
174
+ {
175
+ name: "constant.language.dune-project",
176
+ match: "\\b(disabled)\\b"
177
+ },
178
+ {
179
+ begin: "\\([[:space:]]*(enabled_for)\\b",
180
+ end: "\\)",
181
+ beginCaptures: {
182
+ "1": {
183
+ name: "keyword.language.dune-project"
184
+ }
185
+ },
186
+ patterns: [
187
+ {
188
+ include: "source.dune#general"
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ include: "source.dune#general"
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ comment: "generate_opam_files",
199
+ begin: "\\([[:space:]]*(generate_opam_files)\\b",
200
+ end: "\\)",
201
+ beginCaptures: {
202
+ "1": {
203
+ name: "keyword.language.dune-project"
204
+ }
205
+ },
206
+ patterns: [
207
+ {
208
+ include: "source.dune#general"
209
+ }
210
+ ]
211
+ },
212
+ {
213
+ comment: "package",
214
+ begin: "\\([[:space:]]*(package)\\b",
215
+ end: "\\)",
216
+ beginCaptures: {
217
+ "1": {
218
+ name: "keyword.language.dune-project"
219
+ }
220
+ },
221
+ patterns: [
222
+ {
223
+ comment: "name",
224
+ begin: "\\([[:space:]]*(name)\\b",
225
+ end: "\\)",
226
+ beginCaptures: {
227
+ "1": {
228
+ name: "keyword.language.dune-project"
229
+ }
230
+ },
231
+ contentName: "variable.other.declaration.dune-project",
232
+ patterns: [
233
+ {
234
+ include: "source.dune#general"
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ comment: "synopsis/description",
240
+ begin: "\\([[:space:]]*(synopsis|description)\\b",
241
+ end: "\\)",
242
+ beginCaptures: {
243
+ "1": {
244
+ name: "keyword.language.dune-project"
245
+ }
246
+ },
247
+ patterns: [
248
+ {
249
+ include: "source.dune#general"
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ comment: "depends/conflicts/depopts",
255
+ begin: "\\([[:space:]]*(depends|conflicts|depopts)\\b",
256
+ end: "\\)",
257
+ beginCaptures: {
258
+ "1": {
259
+ name: "keyword.language.dune-project"
260
+ }
261
+ },
262
+ patterns: [
263
+ {
264
+ comment: "dependency",
265
+ name: "variable.other.declaration.dune-project",
266
+ match: "\\b([[:alpha:]-]+)\\b"
267
+ },
268
+ {
269
+ comment: "dependency constraint",
270
+ begin: "\\([[:space:]]*([[:alpha:]-]+)\\b",
271
+ end: "\\)",
272
+ beginCaptures: {
273
+ "1": {
274
+ name: "variable.other.declaration.dune-project"
275
+ }
276
+ },
277
+ patterns: [
278
+ {
279
+ include: "source.dune#general"
280
+ }
281
+ ]
282
+ },
283
+ {
284
+ include: "source.dune#general"
285
+ }
286
+ ]
287
+ },
288
+ {
289
+ comment: "tags",
290
+ begin: "\\([[:space:]]*(tags)\\b",
291
+ end: "\\)",
292
+ beginCaptures: {
293
+ "1": {
294
+ name: "keyword.language.dune-project"
295
+ }
296
+ },
297
+ contentName: "variable.other.declaration.dune-project",
298
+ patterns: [
299
+ {
300
+ include: "source.dune#general"
301
+ }
302
+ ]
303
+ },
304
+ {
305
+ comment: "deprecated_package_names",
306
+ begin: "\\([[:space:]]*(deprecated_package_names)\\b",
307
+ end: "\\)",
308
+ beginCaptures: {
309
+ "1": {
310
+ name: "keyword.language.dune-project"
311
+ }
312
+ },
313
+ patterns: [
314
+ {
315
+ include: "source.dune#general"
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ include: "#opam-metadata"
321
+ },
322
+ {
323
+ include: "source.dune#general"
324
+ }
325
+ ]
326
+ },
327
+ {
328
+ comment: "using",
329
+ begin: "\\([[:space:]]*(using)([[:space:]]+menhir)?\\b",
330
+ end: "\\)",
331
+ beginCaptures: {
332
+ "1": {
333
+ name: "keyword.language.dune-project"
334
+ },
335
+ "2": {
336
+ name: "variable.other.declaration.dune-project"
337
+ }
338
+ },
339
+ patterns: [
340
+ {
341
+ include: "source.dune#general"
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ comment: "cram",
347
+ begin: "\\([[:space:]]*(cram)\\b",
348
+ end: "\\)",
349
+ beginCaptures: {
350
+ "1": {
351
+ name: "keyword.language.dune-project"
352
+ }
353
+ },
354
+ contentName: "variable.other.declaration.dune-project",
355
+ patterns: [
356
+ {
357
+ include: "source.dune#general"
358
+ }
359
+ ]
360
+ },
361
+ {
362
+ include: "#opam-metadata"
363
+ }
364
+ ]
365
+ },
366
+ "opam-metadata": {
367
+ patterns: [
368
+ {
369
+ comment: "license",
370
+ begin: "\\([[:space:]]*(license)\\b",
371
+ end: "\\)",
372
+ beginCaptures: {
373
+ "1": {
374
+ name: "keyword.language.dune-project"
375
+ }
376
+ },
377
+ contentName: "constant.language.dune-project",
378
+ patterns: [
379
+ {
380
+ include: "source.dune#general"
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ comment: "authors/maintainers",
386
+ begin: "\\([[:space:]]*(authors|maintainers)\\b",
387
+ end: "\\)",
388
+ beginCaptures: {
389
+ "1": {
390
+ name: "keyword.language.dune-project"
391
+ }
392
+ },
393
+ patterns: [
394
+ {
395
+ include: "source.dune#general"
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ comment: "source",
401
+ begin: "\\([[:space:]]*(source)\\b",
402
+ end: "\\)",
403
+ beginCaptures: {
404
+ "1": {
405
+ name: "keyword.language.dune-project"
406
+ }
407
+ },
408
+ patterns: [
409
+ {
410
+ comment: "github",
411
+ begin: "\\([[:space:]]*(github)\\b",
412
+ end: "\\)",
413
+ beginCaptures: {
414
+ "1": {
415
+ name: "keyword.language.dune-project"
416
+ }
417
+ },
418
+ patterns: [
419
+ {
420
+ name: "keyword.language.dune-project",
421
+ match: "/"
422
+ },
423
+ {
424
+ include: "source.dune#general"
425
+ }
426
+ ],
427
+ contentName: "string.other.line.dune-project"
428
+ },
429
+ {
430
+ comment: "uri",
431
+ begin: "\\([[:space:]]*(uri)\\b",
432
+ end: "\\)",
433
+ beginCaptures: {
434
+ "1": {
435
+ name: "keyword.language.dune-project"
436
+ }
437
+ },
438
+ patterns: [
439
+ {
440
+ include: "source.dune#general"
441
+ }
442
+ ]
443
+ },
444
+ {
445
+ include: "source.dune#general"
446
+ }
447
+ ]
448
+ },
449
+ {
450
+ comment: "bug_reports/homepage/documentation",
451
+ begin: "\\([[:space:]]*(bug_reports|homepage|documentation)\\b",
452
+ end: "\\)",
453
+ beginCaptures: {
454
+ "1": {
455
+ name: "keyword.language.dune-project"
456
+ }
457
+ },
458
+ patterns: [
459
+ {
460
+ include: "source.dune#general"
461
+ }
462
+ ]
463
+ }
464
+ ]
465
+ }
466
+ };
467
+ var information_for_contributors = [
468
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
469
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
470
+ "Once accepted there, we are happy to receive an update request."
471
+ ];
472
+ var duneProject = {
473
+ name: name,
474
+ scopeName: scopeName,
475
+ fileTypes: fileTypes,
476
+ patterns: patterns,
477
+ repository: repository,
478
+ information_for_contributors: information_for_contributors
479
+ };
480
+
481
+ export { duneProject as default, fileTypes, information_for_contributors, name, patterns, repository, scopeName };
@@ -0,0 +1,65 @@
1
+ var comments = {
2
+ lineComment: ";"
3
+ };
4
+ var brackets = [
5
+ [
6
+ "{",
7
+ "}"
8
+ ],
9
+ [
10
+ "[",
11
+ "]"
12
+ ],
13
+ [
14
+ "(",
15
+ ")"
16
+ ]
17
+ ];
18
+ var autoClosingPairs = [
19
+ {
20
+ open: "{",
21
+ close: "}"
22
+ },
23
+ {
24
+ open: "[",
25
+ close: "]"
26
+ },
27
+ {
28
+ open: "(",
29
+ close: ")"
30
+ },
31
+ {
32
+ open: "\"",
33
+ close: "\"",
34
+ notIn: [
35
+ "string",
36
+ "comment"
37
+ ]
38
+ }
39
+ ];
40
+ var surroundingPairs = [
41
+ {
42
+ open: "[",
43
+ close: "]"
44
+ },
45
+ {
46
+ open: "(",
47
+ close: ")"
48
+ },
49
+ {
50
+ open: "\"",
51
+ close: "\""
52
+ }
53
+ ];
54
+ var wordPattern = {
55
+ pattern: "[A-Za-z_'`][A-Za-z_'.0-9]*"
56
+ };
57
+ var duneWorkspace = {
58
+ comments: comments,
59
+ brackets: brackets,
60
+ autoClosingPairs: autoClosingPairs,
61
+ surroundingPairs: surroundingPairs,
62
+ wordPattern: wordPattern
63
+ };
64
+
65
+ export { autoClosingPairs, brackets, comments, duneWorkspace as default, surroundingPairs, wordPattern };