@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,51 @@
1
+ var scopeName = "source.action.menhir";
2
+ var injectionSelector = "L:source.embedded-action.menhir";
3
+ var patterns = [
4
+ {
5
+ begin: "(\\$(?:startpos|endpos|startofs|endofs|loc))[[:space:]]*\\(",
6
+ beginCaptures: {
7
+ "1": {
8
+ name: "keyword.other.menhir"
9
+ }
10
+ },
11
+ end: "\\)",
12
+ patterns: [
13
+ {
14
+ include: "#anon-capture"
15
+ },
16
+ {
17
+ include: "source.ocaml.menhir#token-name"
18
+ },
19
+ {
20
+ include: "source.ocaml.menhir#production-name"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ match: "\\$(?:startpos|endpos|symbolstartpos|startofs|endofs|symbolstartofs|loc|sloc)\\b",
26
+ name: "keyword.other.menhir"
27
+ },
28
+ {
29
+ include: "#anon-capture"
30
+ }
31
+ ];
32
+ var repository = {
33
+ "anon-capture": {
34
+ match: "\\$[[:digit:]]+\\b",
35
+ name: "keyword.other.menhir"
36
+ }
37
+ };
38
+ var information_for_contributors = [
39
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
40
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
41
+ "Once accepted there, we are happy to receive an update request."
42
+ ];
43
+ var menhirAction = {
44
+ scopeName: scopeName,
45
+ injectionSelector: injectionSelector,
46
+ patterns: patterns,
47
+ repository: repository,
48
+ information_for_contributors: information_for_contributors
49
+ };
50
+
51
+ export { menhirAction as default, information_for_contributors, injectionSelector, patterns, repository, scopeName };
package/dist/menhir.js ADDED
@@ -0,0 +1,597 @@
1
+ var name = "Menhir";
2
+ var scopeName = "source.ocaml.menhir";
3
+ var fileTypes = [
4
+ "mly"
5
+ ];
6
+ var patterns = [
7
+ {
8
+ include: "#comments"
9
+ },
10
+ {
11
+ comment: "sequence of declarations",
12
+ begin: "(?=%[^%])",
13
+ end: "(?=%%)",
14
+ patterns: [
15
+ {
16
+ include: "#comments"
17
+ },
18
+ {
19
+ include: "#declarations"
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ comment: "sequence of rules",
25
+ begin: "%%",
26
+ beginCaptures: [
27
+ {
28
+ name: "keyword.other.menhir"
29
+ }
30
+ ],
31
+ end: "%%",
32
+ endCaptures: [
33
+ {
34
+ name: "keyword.other.menhir"
35
+ }
36
+ ],
37
+ patterns: [
38
+ {
39
+ include: "#comments"
40
+ },
41
+ {
42
+ include: "#rules"
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ include: "source.ocaml"
48
+ }
49
+ ];
50
+ var repository = {
51
+ comments: {
52
+ patterns: [
53
+ {
54
+ include: "source.ocaml#comments"
55
+ },
56
+ {
57
+ comment: "c-style block comment",
58
+ name: "comment.block.menhir",
59
+ begin: "/\\*",
60
+ end: "\\*/"
61
+ },
62
+ {
63
+ comment: "c-style line comment",
64
+ name: "comment.line.menhir",
65
+ begin: "//",
66
+ end: "$"
67
+ }
68
+ ]
69
+ },
70
+ declarations: {
71
+ patterns: [
72
+ {
73
+ comment: "ocaml header",
74
+ begin: "%{",
75
+ beginCaptures: [
76
+ {
77
+ name: "keyword.other.menhir"
78
+ }
79
+ ],
80
+ end: "%}",
81
+ endCaptures: [
82
+ {
83
+ name: "keyword.other.menhir"
84
+ }
85
+ ],
86
+ patterns: [
87
+ {
88
+ include: "source.ocaml"
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ comment: "token declaration",
94
+ begin: "%token\\b",
95
+ beginCaptures: [
96
+ {
97
+ name: "keyword.other.menhir"
98
+ }
99
+ ],
100
+ end: "(?=%)",
101
+ patterns: [
102
+ {
103
+ include: "#type-annotation"
104
+ },
105
+ {
106
+ include: "#token-name"
107
+ },
108
+ {
109
+ include: "source.ocaml#strings"
110
+ },
111
+ {
112
+ include: "source.ocaml#attributes"
113
+ },
114
+ {
115
+ include: "#comments"
116
+ }
117
+ ]
118
+ },
119
+ {
120
+ comment: "associativity declaration",
121
+ begin: "%(?:nonassoc|left|right)\\b",
122
+ beginCaptures: [
123
+ {
124
+ name: "keyword.other.menhir"
125
+ }
126
+ ],
127
+ end: "(?=%)",
128
+ patterns: [
129
+ {
130
+ include: "#token-name"
131
+ },
132
+ {
133
+ include: "#production-name"
134
+ },
135
+ {
136
+ include: "source.ocaml#strings"
137
+ },
138
+ {
139
+ include: "source.ocaml#attributes"
140
+ },
141
+ {
142
+ include: "#comments"
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ comment: "type/start/on_error_reduce declaration",
148
+ begin: "%(?:type|start|on_error_reduce)\\b",
149
+ beginCaptures: [
150
+ {
151
+ name: "keyword.other.menhir"
152
+ }
153
+ ],
154
+ end: "(?=%)",
155
+ patterns: [
156
+ {
157
+ include: "#type-annotation"
158
+ },
159
+ {
160
+ include: "#production-name"
161
+ },
162
+ {
163
+ include: "source.ocaml#strings"
164
+ },
165
+ {
166
+ include: "source.ocaml#attributes"
167
+ },
168
+ {
169
+ include: "#comments"
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ comment: "parameter declaration",
175
+ name: "keyword.other.menhir",
176
+ match: "%parameter\\b"
177
+ },
178
+ {
179
+ comment: "attribute declaration",
180
+ begin: "%(?:attribute\\b|(?=\\[))",
181
+ beginCaptures: [
182
+ {
183
+ name: "keyword.other.menhir"
184
+ }
185
+ ],
186
+ end: "(?=%)",
187
+ patterns: [
188
+ {
189
+ include: "source.ocaml#attributes"
190
+ },
191
+ {
192
+ include: "#token-name"
193
+ },
194
+ {
195
+ include: "#production-name"
196
+ },
197
+ {
198
+ include: "#comments"
199
+ }
200
+ ]
201
+ },
202
+ {
203
+ include: "#type-annotation"
204
+ },
205
+ {
206
+ include: "source.ocaml#strings"
207
+ }
208
+ ],
209
+ repository: {
210
+ "type-annotation": {
211
+ comment: "ocaml type annotation for token",
212
+ begin: "<",
213
+ end: ">",
214
+ beginCaptures: [
215
+ {
216
+ name: "keyword.other.menhir"
217
+ }
218
+ ],
219
+ endCaptures: [
220
+ {
221
+ name: "keyword.other.menhir"
222
+ }
223
+ ],
224
+ patterns: [
225
+ {
226
+ include: "source.ocaml"
227
+ }
228
+ ]
229
+ }
230
+ }
231
+ },
232
+ rules: {
233
+ patterns: [
234
+ {
235
+ include: "#old-rules"
236
+ },
237
+ {
238
+ include: "#new-rules"
239
+ },
240
+ {
241
+ comment: "declaration for public or inline rule",
242
+ name: "keyword.other.directive.menhir",
243
+ match: "%(?:public|inline)\\b"
244
+ },
245
+ {
246
+ comment: "reserved keywords/operators for new syntax",
247
+ name: "keyword.other.menhir",
248
+ match: "\\blet\\b|:=|=="
249
+ }
250
+ ]
251
+ },
252
+ "old-rules": {
253
+ comment: "rule name with optional parameter list",
254
+ begin: "([[:lower:]_][[:word:]]*)[[:space:]]*(?:\\(([^)]+)\\))?(?=[[:space:]]*:)",
255
+ beginCaptures: {
256
+ "1": {
257
+ comment: "rule name",
258
+ name: "entity.name.function.rule.menhir"
259
+ },
260
+ "2": {
261
+ patterns: [
262
+ {
263
+ comment: "rule parameter",
264
+ name: "variable.parameter.rule.menhir",
265
+ match: "[[:alpha:]_][[:word:]]*"
266
+ }
267
+ ]
268
+ }
269
+ },
270
+ end: "(?=let\\b|[[:lower:]_][[:word:]]*[[:space:]]*(?:\\([^)]+\\)[[:space:]]*)?:|%(?!prec\\b))",
271
+ patterns: [
272
+ {
273
+ include: "#comments"
274
+ },
275
+ {
276
+ include: "#old-variables"
277
+ },
278
+ {
279
+ include: "#references"
280
+ },
281
+ {
282
+ include: "#prec"
283
+ },
284
+ {
285
+ include: "#operators"
286
+ },
287
+ {
288
+ include: "source.ocaml#strings"
289
+ },
290
+ {
291
+ include: "source.ocaml#attributes"
292
+ },
293
+ {
294
+ include: "#old-actions"
295
+ },
296
+ {
297
+ comment: "production",
298
+ begin: "[:|]",
299
+ beginCaptures: [
300
+ {
301
+ name: "keyword.other.menhir"
302
+ }
303
+ ],
304
+ end: "(?=[{<|]|let\\b|[[:lower:]_][[:word:]]*[[:space:]]*(?:\\([^)]+\\)[[:space:]]*)?:|%(?!prec\\b))",
305
+ patterns: [
306
+ {
307
+ include: "#comments"
308
+ },
309
+ {
310
+ include: "#old-variables"
311
+ },
312
+ {
313
+ include: "#references"
314
+ },
315
+ {
316
+ include: "#prec"
317
+ },
318
+ {
319
+ include: "#operators"
320
+ },
321
+ {
322
+ include: "source.ocaml#strings"
323
+ },
324
+ {
325
+ include: "source.ocaml#attributes"
326
+ }
327
+ ]
328
+ }
329
+ ]
330
+ },
331
+ "new-rules": {
332
+ comment: "new rule syntax with optional parameter list",
333
+ begin: "(let)[[:space:]]+([[:lower:]_][[:word:]]*)[[:space:]]*(?:\\(([^)]+)\\)[[:space:]]*)?(:=|==)",
334
+ end: "(?=let\\b|[[:lower:]_][[:word:]]*[[:space:]]*(?:\\([^)]+\\)[[:space:]]*)?:|%(?!prec\\b))",
335
+ beginCaptures: {
336
+ "1": {
337
+ name: "keyword.other.menhir"
338
+ },
339
+ "2": {
340
+ comment: "rule name",
341
+ name: "entity.name.function.rule.menhir"
342
+ },
343
+ "3": {
344
+ patterns: [
345
+ {
346
+ comment: "rule parameter",
347
+ name: "variable.parameter.rule.menhir",
348
+ match: "[[:alpha:]_][[:word:]]*"
349
+ }
350
+ ]
351
+ },
352
+ "4": {
353
+ name: "keyword.other.menhir"
354
+ }
355
+ },
356
+ patterns: [
357
+ {
358
+ include: "#comments"
359
+ },
360
+ {
361
+ include: "#new-variables"
362
+ },
363
+ {
364
+ include: "#references"
365
+ },
366
+ {
367
+ include: "#prec"
368
+ },
369
+ {
370
+ include: "#operators"
371
+ },
372
+ {
373
+ include: "source.ocaml#strings"
374
+ },
375
+ {
376
+ include: "source.ocaml#attributes"
377
+ },
378
+ {
379
+ include: "#new-actions"
380
+ },
381
+ {
382
+ comment: "production",
383
+ begin: "[:|]",
384
+ beginCaptures: [
385
+ {
386
+ name: "keyword.other.menhir"
387
+ }
388
+ ],
389
+ end: "(?=[{<|]|let\\b|[[:lower:]_][[:word:]]*[[:space:]]*(?:\\([^)]+\\)[[:space:]]*)?:|%(?!prec\\b))",
390
+ patterns: [
391
+ {
392
+ include: "#comments"
393
+ },
394
+ {
395
+ include: "#new-variables"
396
+ },
397
+ {
398
+ include: "#references"
399
+ },
400
+ {
401
+ include: "#prec"
402
+ },
403
+ {
404
+ include: "#operators"
405
+ },
406
+ {
407
+ include: "source.ocaml#strings"
408
+ },
409
+ {
410
+ include: "source.ocaml#attributes"
411
+ }
412
+ ]
413
+ }
414
+ ]
415
+ },
416
+ prec: {
417
+ match: "%prec\\b",
418
+ name: "keyword.other.menhir"
419
+ },
420
+ "old-actions": {
421
+ comment: "ocaml semantic action",
422
+ contentName: "source.embedded-action.menhir",
423
+ begin: "{",
424
+ beginCaptures: [
425
+ {
426
+ name: "keyword.other.menhir"
427
+ }
428
+ ],
429
+ end: "}",
430
+ endCaptures: [
431
+ {
432
+ name: "keyword.other.menhir"
433
+ }
434
+ ],
435
+ patterns: [
436
+ {
437
+ include: "source.ocaml"
438
+ }
439
+ ]
440
+ },
441
+ "new-actions": {
442
+ patterns: [
443
+ {
444
+ include: "#old-actions"
445
+ },
446
+ {
447
+ comment: "point-free ocaml semantic action",
448
+ begin: "<",
449
+ beginCaptures: [
450
+ {
451
+ name: "keyword.other.menhir"
452
+ }
453
+ ],
454
+ end: ">",
455
+ endCaptures: [
456
+ {
457
+ name: "keyword.other.menhir"
458
+ }
459
+ ],
460
+ patterns: [
461
+ {
462
+ include: "source.ocaml"
463
+ }
464
+ ]
465
+ }
466
+ ]
467
+ },
468
+ "old-variables": {
469
+ comment: "labeled semantic value identifier",
470
+ match: "([[:lower:]_][[:word:]]*)[[:space:]]*(=)",
471
+ captures: {
472
+ "1": {
473
+ name: "variable.parameter.value.menhir"
474
+ },
475
+ "2": {
476
+ name: "keyword.other.menhir"
477
+ }
478
+ },
479
+ patterns: [
480
+ {
481
+ include: "#references"
482
+ }
483
+ ]
484
+ },
485
+ "new-variables": {
486
+ patterns: [
487
+ {
488
+ include: "#old-variables"
489
+ },
490
+ {
491
+ comment: "punned semantic value capture",
492
+ match: "(~)[[:space:]]*(=)",
493
+ captures: {
494
+ "1": {
495
+ name: "variable.parameter.value.menhir"
496
+ },
497
+ "2": {
498
+ name: "keyword.other.menhir"
499
+ }
500
+ }
501
+ },
502
+ {
503
+ comment: "destructured semantic value capture",
504
+ begin: "(?<![[:word:]][[:space:]]*)\\(",
505
+ end: "\\)[[:space:]]*(=)",
506
+ endCaptures: {
507
+ "1": {
508
+ name: "keyword.other.menhir"
509
+ }
510
+ },
511
+ patterns: [
512
+ {
513
+ include: "#pattern"
514
+ }
515
+ ]
516
+ }
517
+ ],
518
+ repository: {
519
+ pattern: {
520
+ patterns: [
521
+ {
522
+ match: "[[:lower:]_][[:word:]]*|~",
523
+ name: "variable.parameter.value.menhir"
524
+ },
525
+ {
526
+ begin: "\\(",
527
+ end: "\\)",
528
+ patterns: [
529
+ {
530
+ include: "#pattern"
531
+ }
532
+ ]
533
+ }
534
+ ]
535
+ }
536
+ }
537
+ },
538
+ "token-name": {
539
+ comment: "reference to a token",
540
+ name: "constant.other.token.menhir",
541
+ match: "[[:upper:]][[:word:]]*"
542
+ },
543
+ "production-name": {
544
+ comment: "reference to a production",
545
+ name: "entity.name.function.rule.menhir",
546
+ match: "[[:lower:]_][[:word:]]*"
547
+ },
548
+ references: {
549
+ patterns: [
550
+ {
551
+ comment: "builtin standard library functions",
552
+ name: "support.function.rule.menhir",
553
+ match: "\\b(endrule|midrule|option|ioption|boption|loption|pair|separated_pair|preceded|terminated|delimited|list|nonempty_list|separated_list|separated_nonempty_list|rev|flatten|append)\\b"
554
+ },
555
+ {
556
+ include: "#token-name"
557
+ },
558
+ {
559
+ include: "#production-name"
560
+ }
561
+ ]
562
+ },
563
+ operators: {
564
+ patterns: [
565
+ {
566
+ comment: "rule modifier (?, +, *)",
567
+ match: "[?+*]",
568
+ name: "keyword.operator.menhir"
569
+ },
570
+ {
571
+ comment: "vertical bar",
572
+ match: "\\|",
573
+ name: "keyword.other.menhir"
574
+ },
575
+ {
576
+ comment: "semicolon",
577
+ match: ";",
578
+ name: "keyword.other.menhir punctuation.separator.terminator punctuation.separator.semicolon"
579
+ }
580
+ ]
581
+ }
582
+ };
583
+ var information_for_contributors = [
584
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
585
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
586
+ "Once accepted there, we are happy to receive an update request."
587
+ ];
588
+ var menhir = {
589
+ name: name,
590
+ scopeName: scopeName,
591
+ fileTypes: fileTypes,
592
+ patterns: patterns,
593
+ repository: repository,
594
+ information_for_contributors: information_for_contributors
595
+ };
596
+
597
+ export { menhir as default, fileTypes, information_for_contributors, name, patterns, repository, scopeName };