@codingame/monaco-editor-wrapper 2.0.0 → 2.1.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.
Files changed (54) 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 +359 -61
  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/oasis.js +99 -0
  20. package/dist/ocaml-dune-project.js +38 -0
  21. package/dist/ocaml-dune.js +53 -0
  22. package/dist/ocaml-markdown-codeblock.js +1 -1
  23. package/dist/ocaml-ocaml.js +88 -0
  24. package/dist/ocaml-ocamllex.js +12 -0
  25. package/dist/ocaml.META.js +29 -0
  26. package/dist/ocaml.interface.js +114 -0
  27. package/dist/ocaml.interface2.js +292 -0
  28. package/dist/ocaml.js +40 -8
  29. package/dist/ocaml.menhir.js +81 -0
  30. package/dist/ocaml.oasis.js +18 -0
  31. package/dist/ocaml.ocamlbuild.js +45 -0
  32. package/dist/ocaml.ocamlformat.js +8 -0
  33. package/dist/ocaml.ocamllex.js +60 -0
  34. package/dist/ocaml.opam-install.js +49 -0
  35. package/dist/ocaml.opam.js +69 -0
  36. package/dist/ocaml2.js +600 -2676
  37. package/dist/ocaml3.js +89 -105
  38. package/dist/ocamlbuild.js +142 -192
  39. package/dist/ocamldoc.js +54 -0
  40. package/dist/ocamlformat.js +206 -0
  41. package/dist/ocamllex.js +133 -0
  42. package/dist/opam-install.js +40 -0
  43. package/dist/opam.js +100 -109
  44. package/dist/reason-markdown-codeblock.js +1 -1
  45. package/dist/reason.js +0 -4
  46. package/dist/scalameta.js +1 -1
  47. package/package.json +1 -1
  48. package/stats.html +1 -1
  49. package/dist/ocaml-hover-info.js +0 -34
  50. package/dist/ocaml-hover-type.js +0 -24
  51. package/dist/ocaml-reason.js +0 -100
  52. package/dist/reason-hover-info.js +0 -34
  53. package/dist/reason-hover-signature.js +0 -21
  54. package/dist/reason-hover-type.js +0 -21
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 };
package/dist/merlin.js CHANGED
@@ -20,30 +20,25 @@ var repository = {
20
20
  comment: {
21
21
  begin: "#",
22
22
  end: "$",
23
- name: "comment.line"
23
+ name: "comment.line.merlin"
24
24
  },
25
25
  directory: {
26
26
  begin: "\\b(B|S)\\b",
27
27
  end: "$",
28
28
  beginCaptures: {
29
29
  "1": {
30
- name: "keyword.other"
30
+ name: "keyword.other.merlin"
31
31
  }
32
32
  },
33
+ name: "string.other.merlin",
33
34
  patterns: [
34
35
  {
35
- match: "(?<![\\-\\+])(?:(\\b[-[:word:]]+\\b)|([\\.*]+))[[:space:]]*([\\./])?",
36
- captures: {
37
- "1": {
38
- name: "string.double"
39
- },
40
- "2": {
41
- name: "constant.language"
42
- },
43
- "3": {
44
- name: "keyword.other"
45
- }
46
- }
36
+ match: "[:./ \\\\]",
37
+ name: "keyword.other.path.merlin"
38
+ },
39
+ {
40
+ match: "[*?]",
41
+ name: "keyword.other.glob.merlin"
47
42
  }
48
43
  ]
49
44
  },
@@ -52,21 +47,26 @@ var repository = {
52
47
  end: "$",
53
48
  beginCaptures: {
54
49
  "1": {
55
- name: "keyword.other"
50
+ name: "keyword.other.merlin"
56
51
  }
57
52
  },
58
53
  patterns: [
54
+ {
55
+ begin: "\"",
56
+ end: "\"",
57
+ name: "string.quoted.double.merlin"
58
+ },
59
59
  {
60
60
  match: "([\\-\\+])\\b(?:([[:digit:]]+)|([[:lower:]][[:word:]]*))\\b",
61
61
  captures: {
62
62
  "1": {
63
- name: "keyword.other"
63
+ name: "keyword.other.merlin"
64
64
  },
65
65
  "2": {
66
- name: "constant.language"
66
+ name: "constant.language.merlin"
67
67
  },
68
68
  "3": {
69
- name: "variable.parameter"
69
+ name: "variable.parameter.merlin"
70
70
  }
71
71
  }
72
72
  }
@@ -77,18 +77,18 @@ var repository = {
77
77
  end: "$",
78
78
  beginCaptures: {
79
79
  "1": {
80
- name: "storage.type"
80
+ name: "storage.type.merlin"
81
81
  }
82
82
  },
83
83
  patterns: [
84
84
  {
85
- match: "(?<![\\-\\+])\\b([[:lower:]][[:word:]]*)\\b[[:space:]]*(\\.)?",
85
+ match: "(?<![\\-\\+])\\b([[:lower:]][-[:word:]]*)\\b[[:space:]]*(\\.)?",
86
86
  captures: {
87
87
  "1": {
88
- name: "entity.name.class"
88
+ name: "entity.name.class.merlin"
89
89
  },
90
90
  "2": {
91
- name: "keyword.other"
91
+ name: "keyword.other.merlin"
92
92
  }
93
93
  }
94
94
  }
@@ -96,7 +96,7 @@ var repository = {
96
96
  }
97
97
  };
98
98
  var information_for_contributors = [
99
- "This file has been converted from https://github.com/reasonml-editor/vscode-reasonml/blob/master/",
99
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
100
100
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
101
101
  "Once accepted there, we are happy to receive an update request."
102
102
  ];