@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,292 @@
1
+ var name = "OCaml Interface";
2
+ var scopeName = "source.ocaml.interface";
3
+ var fileTypes = [
4
+ "mli",
5
+ "eliomi"
6
+ ];
7
+ var patterns = [
8
+ {
9
+ include: "source.ocaml#directives"
10
+ },
11
+ {
12
+ include: "source.ocaml#comments"
13
+ },
14
+ {
15
+ include: "source.ocaml#attributes"
16
+ },
17
+ {
18
+ include: "source.ocaml#extensions"
19
+ },
20
+ {
21
+ include: "#bindings"
22
+ },
23
+ {
24
+ include: "source.ocaml#operators"
25
+ },
26
+ {
27
+ include: "#keywords"
28
+ },
29
+ {
30
+ include: "source.ocaml#types"
31
+ },
32
+ {
33
+ include: "source.ocaml#identifiers"
34
+ }
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:]']*)[[: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
+ ];
283
+ var ocaml_interface = {
284
+ name: name,
285
+ scopeName: scopeName,
286
+ fileTypes: fileTypes,
287
+ patterns: patterns,
288
+ repository: repository,
289
+ information_for_contributors: information_for_contributors
290
+ };
291
+
292
+ export { ocaml_interface as default, fileTypes, information_for_contributors, name, patterns, repository, scopeName };
package/dist/ocaml.js CHANGED
@@ -19,8 +19,15 @@ var autoClosingPairs = [
19
19
  ]
20
20
  },
21
21
  {
22
- open: "(**",
23
- close: " *)",
22
+ open: "(*",
23
+ close: "*",
24
+ notIn: [
25
+ "string"
26
+ ]
27
+ },
28
+ {
29
+ open: "[|",
30
+ close: "|",
24
31
  notIn: [
25
32
  "string"
26
33
  ]
@@ -38,6 +45,10 @@ var brackets = [
38
45
  [
39
46
  "(",
40
47
  ")"
48
+ ],
49
+ [
50
+ "[|",
51
+ "|]"
41
52
  ]
42
53
  ];
43
54
  var comments = {
@@ -66,17 +77,38 @@ var surroundingPairs = [
66
77
  [
67
78
  "\"",
68
79
  "\""
69
- ],
70
- [
71
- "`",
72
- "`"
73
80
  ]
74
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 = [
88
+ {
89
+ beforeText: "\\(\\*\\*",
90
+ afterText: "\\*\\)",
91
+ action: {
92
+ indent: "none",
93
+ appendText: " "
94
+ }
95
+ },
96
+ {
97
+ beforeText: "\\(\\*",
98
+ afterText: "\\*\\)",
99
+ action: {
100
+ indent: "none",
101
+ appendText: " "
102
+ }
103
+ }
104
+ ];
75
105
  var ocaml = {
76
106
  autoClosingPairs: autoClosingPairs,
77
107
  brackets: brackets,
78
108
  comments: comments,
79
- surroundingPairs: surroundingPairs
109
+ surroundingPairs: surroundingPairs,
110
+ indentationRules: indentationRules,
111
+ onEnterRules: onEnterRules
80
112
  };
81
113
 
82
- export { autoClosingPairs, brackets, comments, ocaml as default, surroundingPairs };
114
+ export { autoClosingPairs, brackets, comments, ocaml as default, indentationRules, onEnterRules, surroundingPairs };
@@ -0,0 +1,81 @@
1
+ var comments = {
2
+ lineComment: "//",
3
+ blockComment: [
4
+ "/*",
5
+ "*/"
6
+ ]
7
+ };
8
+ var brackets = [
9
+ [
10
+ "{",
11
+ "}"
12
+ ],
13
+ [
14
+ "[",
15
+ "]"
16
+ ],
17
+ [
18
+ "(",
19
+ ")"
20
+ ],
21
+ [
22
+ "<",
23
+ ">"
24
+ ],
25
+ [
26
+ "%{",
27
+ "%}"
28
+ ]
29
+ ];
30
+ var autoClosingPairs = [
31
+ [
32
+ "{",
33
+ "}"
34
+ ],
35
+ [
36
+ "[",
37
+ "]"
38
+ ],
39
+ [
40
+ "(",
41
+ ")"
42
+ ],
43
+ [
44
+ "<",
45
+ ">"
46
+ ],
47
+ [
48
+ "\"",
49
+ "\""
50
+ ],
51
+ [
52
+ "'",
53
+ "'"
54
+ ],
55
+ [
56
+ "%{",
57
+ "%}"
58
+ ]
59
+ ];
60
+ var surroundingPairs = [
61
+ [
62
+ "(",
63
+ ")"
64
+ ],
65
+ [
66
+ "<",
67
+ ">"
68
+ ],
69
+ [
70
+ "\"",
71
+ "\""
72
+ ]
73
+ ];
74
+ var ocaml_menhir = {
75
+ comments: comments,
76
+ brackets: brackets,
77
+ autoClosingPairs: autoClosingPairs,
78
+ surroundingPairs: surroundingPairs
79
+ };
80
+
81
+ export { autoClosingPairs, brackets, comments, ocaml_menhir as default, surroundingPairs };
@@ -0,0 +1,18 @@
1
+ var comments = {
2
+ lineComment: "#"
3
+ };
4
+ var autoClosingPairs = [
5
+ {
6
+ open: "\"",
7
+ close: "\"",
8
+ notIn: [
9
+ "string"
10
+ ]
11
+ }
12
+ ];
13
+ var ocaml_oasis = {
14
+ comments: comments,
15
+ autoClosingPairs: autoClosingPairs
16
+ };
17
+
18
+ export { autoClosingPairs, comments, ocaml_oasis as default };
@@ -0,0 +1,45 @@
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
+ ]
37
+ }
38
+ ];
39
+ var ocaml_ocamlbuild = {
40
+ comments: comments,
41
+ brackets: brackets,
42
+ autoClosingPairs: autoClosingPairs
43
+ };
44
+
45
+ export { autoClosingPairs, brackets, comments, ocaml_ocamlbuild as default };
@@ -0,0 +1,8 @@
1
+ var comments = {
2
+ lineComment: "#"
3
+ };
4
+ var ocaml_ocamlformat = {
5
+ comments: comments
6
+ };
7
+
8
+ export { comments, ocaml_ocamlformat as default };
@@ -0,0 +1,60 @@
1
+ var comments = {
2
+ blockComment: [
3
+ "(*",
4
+ "*)"
5
+ ]
6
+ };
7
+ var brackets = [
8
+ [
9
+ "{",
10
+ "}"
11
+ ],
12
+ [
13
+ "[",
14
+ "]"
15
+ ],
16
+ [
17
+ "(",
18
+ ")"
19
+ ]
20
+ ];
21
+ var autoClosingPairs = [
22
+ [
23
+ "{",
24
+ "}"
25
+ ],
26
+ [
27
+ "[",
28
+ "]"
29
+ ],
30
+ [
31
+ "(",
32
+ ")"
33
+ ],
34
+ [
35
+ "\"",
36
+ "\""
37
+ ],
38
+ [
39
+ "'",
40
+ "'"
41
+ ]
42
+ ];
43
+ var surroundingPairs = [
44
+ [
45
+ "(",
46
+ ")"
47
+ ],
48
+ [
49
+ "\"",
50
+ "\""
51
+ ]
52
+ ];
53
+ var ocaml_ocamllex = {
54
+ comments: comments,
55
+ brackets: brackets,
56
+ autoClosingPairs: autoClosingPairs,
57
+ surroundingPairs: surroundingPairs
58
+ };
59
+
60
+ export { autoClosingPairs, brackets, comments, ocaml_ocamllex as default, surroundingPairs };
@@ -0,0 +1,49 @@
1
+ var comments = {
2
+ lineComment: "#"
3
+ };
4
+ var brackets = [
5
+ [
6
+ "{",
7
+ "}"
8
+ ],
9
+ [
10
+ "[",
11
+ "]"
12
+ ]
13
+ ];
14
+ var autoClosingPairs = [
15
+ [
16
+ "{",
17
+ "}"
18
+ ],
19
+ [
20
+ "[",
21
+ "]"
22
+ ],
23
+ [
24
+ "\"",
25
+ "\""
26
+ ]
27
+ ];
28
+ var surroundingPairs = [
29
+ [
30
+ "{",
31
+ "}"
32
+ ],
33
+ [
34
+ "[",
35
+ "]"
36
+ ],
37
+ [
38
+ "\"",
39
+ "\""
40
+ ]
41
+ ];
42
+ var ocaml_opamInstall = {
43
+ comments: comments,
44
+ brackets: brackets,
45
+ autoClosingPairs: autoClosingPairs,
46
+ surroundingPairs: surroundingPairs
47
+ };
48
+
49
+ export { autoClosingPairs, brackets, comments, ocaml_opamInstall as default, surroundingPairs };
@@ -0,0 +1,69 @@
1
+ var comments = {
2
+ lineComment: "#"
3
+ };
4
+ var brackets = [
5
+ [
6
+ "{",
7
+ "}"
8
+ ],
9
+ [
10
+ "[",
11
+ "]"
12
+ ]
13
+ ];
14
+ var autoClosingPairs = [
15
+ [
16
+ "{",
17
+ "}"
18
+ ],
19
+ [
20
+ "[",
21
+ "]"
22
+ ],
23
+ [
24
+ "\"",
25
+ "\""
26
+ ],
27
+ [
28
+ "'",
29
+ "'"
30
+ ],
31
+ [
32
+ "\"\"\"",
33
+ "\"\"\""
34
+ ]
35
+ ];
36
+ var surroundingPairs = [
37
+ [
38
+ "{",
39
+ "}"
40
+ ],
41
+ [
42
+ "[",
43
+ "]"
44
+ ],
45
+ [
46
+ "(",
47
+ ")"
48
+ ],
49
+ [
50
+ "\"",
51
+ "\""
52
+ ],
53
+ [
54
+ "'",
55
+ "'"
56
+ ],
57
+ [
58
+ "\"\"\"",
59
+ "\"\"\""
60
+ ]
61
+ ];
62
+ var ocaml_opam = {
63
+ comments: comments,
64
+ brackets: brackets,
65
+ autoClosingPairs: autoClosingPairs,
66
+ surroundingPairs: surroundingPairs
67
+ };
68
+
69
+ export { autoClosingPairs, brackets, comments, ocaml_opam as default, surroundingPairs };