@codingame/monaco-editor-wrapper 3.4.0 → 3.4.2

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 (48) hide show
  1. package/dist/{HTML (Eex).js → HTML (Eex)2.js} +0 -0
  2. package/dist/atd.js +90 -94
  3. package/dist/atd2.js +94 -90
  4. package/dist/css.worker.js +1 -1
  5. package/dist/d.js +3157 -84
  6. package/dist/d2.js +84 -3157
  7. package/dist/dart.js +510 -83
  8. package/dist/dart2.js +83 -510
  9. package/dist/diet.js +740 -82
  10. package/dist/diet2.js +82 -740
  11. package/dist/dml.js +155 -76
  12. package/dist/dml2.js +76 -155
  13. package/dist/dune-project.js +469 -53
  14. package/dist/dune-project2.js +53 -469
  15. package/dist/dune-workspace.js +287 -54
  16. package/dist/dune-workspace2.js +54 -287
  17. package/dist/dune.js +2948 -51
  18. package/dist/dune2.js +51 -2948
  19. package/dist/elixir.js +2335 -63
  20. package/dist/elixir2.js +63 -2335
  21. package/dist/features/cssContribution.js +1 -4
  22. package/dist/features/extensionConfigurations.js +24 -122
  23. package/dist/features/htmlContribution.js +4 -18
  24. package/dist/features/jsonContribution.js +1 -8
  25. package/dist/features/typescriptContribution.js +4 -8
  26. package/dist/{html (eex)2.js → html (eex).js} +0 -0
  27. package/dist/html.worker.js +1 -1
  28. package/dist/index.js +2178 -1355
  29. package/dist/index2.js +1354 -2186
  30. package/dist/json.worker.js +1 -1
  31. package/dist/main.js +282 -1427
  32. package/dist/ocaml.interface.js +273 -95
  33. package/dist/ocaml.interface2.js +95 -273
  34. package/dist/ocaml.js +884 -95
  35. package/dist/ocaml2.js +95 -884
  36. package/dist/r.js +657 -81
  37. package/dist/r2.js +81 -657
  38. package/dist/sdl.js +150 -78
  39. package/dist/sdl2.js +78 -150
  40. package/dist/solidity.js +1172 -56
  41. package/dist/solidity2.js +56 -1172
  42. package/dist/ts.worker.js +1 -1
  43. package/dist/vim.js +8 -8
  44. package/dist/vue-sugarss.js +390 -54
  45. package/dist/vue-sugarss2.js +54 -390
  46. package/dist/worker.js +1 -3
  47. package/package.json +29 -26
  48. package/stats.html +44 -34
package/dist/dart2.js CHANGED
@@ -1,530 +1,103 @@
1
- var name = "Dart";
2
- var fileTypes = [
3
- "dart"
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
+ ]
4
21
  ];
5
- var scopeName = "source.dart";
6
- var foldingStartMarker = "\\{\\s*$";
7
- var foldingStopMarker = "^\\s*\\}";
8
- var patterns = [
9
- {
10
- name: "meta.preprocessor.script.dart",
11
- match: "^(#!.*)$"
12
- },
13
- {
14
- name: "meta.declaration.dart",
15
- begin: "^\\w*\\b(library|import|part of|part|export)\\b",
16
- beginCaptures: {
17
- "0": {
18
- name: "keyword.other.import.dart"
19
- }
20
- },
21
- end: ";",
22
- endCaptures: {
23
- "0": {
24
- name: "punctuation.terminator.dart"
25
- }
26
- },
27
- patterns: [
28
- {
29
- include: "#strings"
30
- },
31
- {
32
- include: "#comments"
33
- },
34
- {
35
- name: "keyword.other.import.dart",
36
- match: "\\b(as|show|hide)\\b"
37
- },
38
- {
39
- name: "keyword.control.dart",
40
- match: "\\b(if)\\b"
41
- }
42
- ]
43
- },
44
- {
45
- include: "#comments"
46
- },
47
- {
48
- include: "#punctuation"
49
- },
22
+ var autoClosingPairs = [
50
23
  {
51
- include: "#annotations"
24
+ open: "{",
25
+ close: "}"
52
26
  },
53
27
  {
54
- include: "#keywords"
28
+ open: "[",
29
+ close: "]"
55
30
  },
56
31
  {
57
- include: "#constants-and-special-vars"
32
+ open: "(",
33
+ close: ")"
58
34
  },
59
35
  {
60
- include: "#strings"
61
- }
62
- ];
63
- var repository = {
64
- dartdoc: {
65
- patterns: [
66
- {
67
- match: "(\\[.*?\\])",
68
- captures: {
69
- "0": {
70
- name: "variable.name.source.dart"
71
- }
72
- }
73
- },
74
- {
75
- match: "^ {4,}(?![ \\*]).*",
76
- captures: {
77
- "0": {
78
- name: "variable.name.source.dart"
79
- }
80
- }
81
- },
82
- {
83
- contentName: "variable.other.source.dart",
84
- begin: "```.*?$",
85
- end: "```"
86
- },
87
- {
88
- match: "(`.*?`)",
89
- captures: {
90
- "0": {
91
- name: "variable.other.source.dart"
92
- }
93
- }
94
- },
95
- {
96
- match: "(`.*?`)",
97
- captures: {
98
- "0": {
99
- name: "variable.other.source.dart"
100
- }
101
- }
102
- },
103
- {
104
- match: "(\\* (( ).*))$",
105
- captures: {
106
- "2": {
107
- name: "variable.other.source.dart"
108
- }
109
- }
110
- }
111
- ]
112
- },
113
- comments: {
114
- patterns: [
115
- {
116
- name: "comment.block.empty.dart",
117
- match: "/\\*\\*/",
118
- captures: {
119
- "0": {
120
- name: "punctuation.definition.comment.dart"
121
- }
122
- }
123
- },
124
- {
125
- include: "#comments-doc-oldschool"
126
- },
127
- {
128
- include: "#comments-doc"
129
- },
130
- {
131
- include: "#comments-inline"
132
- }
133
- ]
134
- },
135
- "comments-doc-oldschool": {
136
- patterns: [
137
- {
138
- name: "comment.block.documentation.dart",
139
- begin: "/\\*\\*",
140
- end: "\\*/",
141
- patterns: [
142
- {
143
- include: "#comments-doc-oldschool"
144
- },
145
- {
146
- include: "#comments-block"
147
- },
148
- {
149
- include: "#dartdoc"
150
- }
151
- ]
152
- }
153
- ]
154
- },
155
- "comments-doc": {
156
- patterns: [
157
- {
158
- name: "comment.block.documentation.dart",
159
- begin: "///",
160
- "while": "^\\s*///",
161
- patterns: [
162
- {
163
- include: "#dartdoc"
164
- }
165
- ]
166
- }
167
- ]
168
- },
169
- "comments-inline": {
170
- patterns: [
171
- {
172
- include: "#comments-block"
173
- },
174
- {
175
- match: "((//).*)$",
176
- captures: {
177
- "1": {
178
- name: "comment.line.double-slash.dart"
179
- }
180
- }
181
- }
36
+ open: "'",
37
+ close: "'",
38
+ notIn: [
39
+ "string",
40
+ "comment"
182
41
  ]
183
42
  },
184
- "comments-block": {
185
- patterns: [
186
- {
187
- name: "comment.block.dart",
188
- begin: "/\\*",
189
- end: "\\*/",
190
- patterns: [
191
- {
192
- include: "#comments-block"
193
- }
194
- ]
195
- }
196
- ]
197
- },
198
- annotations: {
199
- patterns: [
200
- {
201
- name: "storage.type.annotation.dart",
202
- match: "@[a-zA-Z]+"
203
- }
204
- ]
205
- },
206
- "constants-and-special-vars": {
207
- patterns: [
208
- {
209
- name: "constant.language.dart",
210
- match: "(?<!\\$)\\b(true|false|null)\\b(?!\\$)"
211
- },
212
- {
213
- name: "variable.language.dart",
214
- match: "(?<!\\$)\\b(this|super)\\b(?!\\$)"
215
- },
216
- {
217
- name: "constant.numeric.dart",
218
- match: "(?<!\\$)\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b(?!\\$)"
219
- },
220
- {
221
- include: "#class-identifier"
222
- },
223
- {
224
- include: "#function-identifier"
225
- }
226
- ]
227
- },
228
- "class-identifier": {
229
- patterns: [
230
- {
231
- match: "(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*(<(?:[a-zA-Z0-9_$<>?]|,\\s*|\\s+extends\\s+)+>)?|bool\\b|num\\b|int\\b|double\\b|dynamic\\b|(void)\\b)",
232
- captures: {
233
- "1": {
234
- name: "support.class.dart"
235
- },
236
- "2": {
237
- patterns: [
238
- {
239
- include: "#type-args"
240
- }
241
- ]
242
- },
243
- "3": {
244
- name: "storage.type.primitive.dart"
245
- }
246
- }
247
- }
248
- ]
249
- },
250
- "function-identifier": {
251
- patterns: [
252
- {
253
- match: "([_$]*[a-z][a-zA-Z0-9_$]*)(<(?:[a-zA-Z0-9_$<>?]|,\\s*|\\s+extends\\s+)+>)?[!?]?(\\(|\\s+=>)",
254
- captures: {
255
- "1": {
256
- name: "entity.name.function.dart"
257
- },
258
- "2": {
259
- patterns: [
260
- {
261
- include: "#type-args"
262
- }
263
- ]
264
- }
265
- }
266
- }
267
- ]
268
- },
269
- "type-args": {
270
- begin: "(<)",
271
- end: "(>)",
272
- beginCaptures: {
273
- "1": {
274
- name: "other.source.dart"
275
- }
276
- },
277
- endCaptures: {
278
- "1": {
279
- name: "other.source.dart"
280
- }
281
- },
282
- patterns: [
283
- {
284
- include: "#class-identifier"
285
- },
286
- {
287
- match: "[\\s,]+"
288
- },
289
- {
290
- name: "keyword.declaration.dart",
291
- match: "extends"
292
- }
293
- ]
294
- },
295
- keywords: {
296
- patterns: [
297
- {
298
- name: "keyword.cast.dart",
299
- match: "(?<!\\$)\\bas\\b(?!\\$)"
300
- },
301
- {
302
- name: "keyword.control.catch-exception.dart",
303
- match: "(?<!\\$)\\b(try|on|catch|finally|throw|rethrow)\\b(?!\\$)"
304
- },
305
- {
306
- name: "keyword.control.dart",
307
- match: "(?<!\\$)\\b(break|case|continue|default|do|else|for|if|in|return|switch|while)\\b(?!\\$)"
308
- },
309
- {
310
- name: "keyword.control.dart",
311
- match: "(?<!\\$)\\b(sync(\\*)?|async(\\*)?|await|yield(\\*)?)\\b(?!\\$)"
312
- },
313
- {
314
- name: "keyword.control.dart",
315
- match: "(?<!\\$)\\bassert\\b(?!\\$)"
316
- },
317
- {
318
- name: "keyword.control.new.dart",
319
- match: "(?<!\\$)\\b(new)\\b(?!\\$)"
320
- },
321
- {
322
- name: "keyword.declaration.dart",
323
- match: "(?<!\\$)\\b(abstract|class|enum|extends|extension|external|factory|implements|get|mixin|native|operator|set|typedef|with|covariant)\\b(?!\\$)"
324
- },
325
- {
326
- name: "keyword.operator.dart",
327
- match: "(?<!\\$)\\b(is\\!?)\\b(?!\\$)"
328
- },
329
- {
330
- name: "keyword.operator.ternary.dart",
331
- match: "\\?|:"
332
- },
333
- {
334
- name: "keyword.operator.bitwise.dart",
335
- match: "(<<|>>>?|~|\\^|\\||&)"
336
- },
337
- {
338
- name: "keyword.operator.assignment.bitwise.dart",
339
- match: "((&|\\^|\\||<<|>>>?)=)"
340
- },
341
- {
342
- name: "keyword.operator.closure.dart",
343
- match: "(=>)"
344
- },
345
- {
346
- name: "keyword.operator.comparison.dart",
347
- match: "(==|!=|<=?|>=?)"
348
- },
349
- {
350
- name: "keyword.operator.assignment.arithmetic.dart",
351
- match: "(([+*/%-]|\\~)=)"
352
- },
353
- {
354
- name: "keyword.operator.assignment.dart",
355
- match: "(=)"
356
- },
357
- {
358
- name: "keyword.operator.increment-decrement.dart",
359
- match: "(\\-\\-|\\+\\+)"
360
- },
361
- {
362
- name: "keyword.operator.arithmetic.dart",
363
- match: "(\\-|\\+|\\*|\\/|\\~\\/|%)"
364
- },
365
- {
366
- name: "keyword.operator.logical.dart",
367
- match: "(!|&&|\\|\\|)"
368
- },
369
- {
370
- name: "storage.modifier.dart",
371
- match: "(?<!\\$)\\b(static|final|const|required|late)\\b(?!\\$)"
372
- },
373
- {
374
- name: "storage.type.primitive.dart",
375
- match: "(?<!\\$)\\b(?:void|var)\\b(?!\\$)"
376
- }
377
- ]
378
- },
379
- "string-interp": {
380
- patterns: [
381
- {
382
- match: "\\$([a-zA-Z0-9_]+)",
383
- captures: {
384
- "1": {
385
- name: "variable.parameter.dart"
386
- }
387
- }
388
- },
389
- {
390
- name: "string.interpolated.expression.dart",
391
- begin: "\\$\\{",
392
- end: "\\}",
393
- patterns: [
394
- {
395
- include: "#constants-and-special-vars",
396
- name: "variable.parameter.dart"
397
- },
398
- {
399
- include: "#strings"
400
- },
401
- {
402
- name: "variable.parameter.dart",
403
- match: "[a-zA-Z0-9_]+"
404
- }
405
- ]
406
- },
407
- {
408
- name: "constant.character.escape.dart",
409
- match: "\\\\."
410
- }
43
+ {
44
+ open: "\"",
45
+ close: "\"",
46
+ notIn: [
47
+ "string"
411
48
  ]
412
49
  },
413
- strings: {
414
- patterns: [
415
- {
416
- name: "string.interpolated.triple.double.dart",
417
- begin: "(?<!r)\"\"\"",
418
- end: "\"\"\"(?!\")",
419
- patterns: [
420
- {
421
- include: "#string-interp"
422
- }
423
- ]
424
- },
425
- {
426
- name: "string.interpolated.triple.single.dart",
427
- begin: "(?<!r)'''",
428
- end: "'''(?!')",
429
- patterns: [
430
- {
431
- include: "#string-interp"
432
- }
433
- ]
434
- },
435
- {
436
- name: "string.quoted.triple.double.dart",
437
- begin: "r\"\"\"",
438
- end: "\"\"\"(?!\")"
439
- },
440
- {
441
- name: "string.quoted.triple.single.dart",
442
- begin: "r'''",
443
- end: "'''(?!')"
444
- },
445
- {
446
- name: "string.interpolated.double.dart",
447
- begin: "(?<!\\|r)\"",
448
- end: "\"",
449
- patterns: [
450
- {
451
- name: "invalid.string.newline",
452
- match: "\\n"
453
- },
454
- {
455
- include: "#string-interp"
456
- }
457
- ]
458
- },
459
- {
460
- name: "string.quoted.double.dart",
461
- begin: "r\"",
462
- end: "\"",
463
- patterns: [
464
- {
465
- name: "invalid.string.newline",
466
- match: "\\n"
467
- }
468
- ]
469
- },
470
- {
471
- name: "string.interpolated.single.dart",
472
- begin: "(?<!\\|r)'",
473
- end: "'",
474
- patterns: [
475
- {
476
- name: "invalid.string.newline",
477
- match: "\\n"
478
- },
479
- {
480
- include: "#string-interp"
481
- }
482
- ]
483
- },
484
- {
485
- name: "string.quoted.single.dart",
486
- begin: "r'",
487
- end: "'",
488
- patterns: [
489
- {
490
- name: "invalid.string.newline",
491
- match: "\\n"
492
- }
493
- ]
494
- }
50
+ {
51
+ open: "`",
52
+ close: "`",
53
+ notIn: [
54
+ "string",
55
+ "comment"
495
56
  ]
496
57
  },
497
- punctuation: {
498
- patterns: [
499
- {
500
- name: "punctuation.comma.dart",
501
- match: ","
502
- },
503
- {
504
- name: "punctuation.terminator.dart",
505
- match: ";"
506
- },
507
- {
508
- name: "punctuation.dot.dart",
509
- match: "\\."
510
- }
58
+ {
59
+ open: "/**",
60
+ close: " */",
61
+ notIn: [
62
+ "string"
511
63
  ]
512
64
  }
513
- };
514
- var information_for_contributors = [
515
- "This file has been converted from https://github.com/Dart-Code/Dart-Code/blob/master/",
516
- "If you want to provide a fix or improvement, please create a pull request against the original repository.",
517
- "Once accepted there, we are happy to receive an update request."
65
+ ];
66
+ var surroundingPairs = [
67
+ [
68
+ "{",
69
+ "}"
70
+ ],
71
+ [
72
+ "[",
73
+ "]"
74
+ ],
75
+ [
76
+ "(",
77
+ ")"
78
+ ],
79
+ [
80
+ "<",
81
+ ">"
82
+ ],
83
+ [
84
+ "'",
85
+ "'"
86
+ ],
87
+ [
88
+ "\"",
89
+ "\""
90
+ ],
91
+ [
92
+ "`",
93
+ "`"
94
+ ]
518
95
  ];
519
96
  var dart = {
520
- name: name,
521
- fileTypes: fileTypes,
522
- scopeName: scopeName,
523
- foldingStartMarker: foldingStartMarker,
524
- foldingStopMarker: foldingStopMarker,
525
- patterns: patterns,
526
- repository: repository,
527
- information_for_contributors: information_for_contributors
97
+ comments: comments,
98
+ brackets: brackets,
99
+ autoClosingPairs: autoClosingPairs,
100
+ surroundingPairs: surroundingPairs
528
101
  };
529
102
 
530
- export { dart as default, fileTypes, foldingStartMarker, foldingStopMarker, information_for_contributors, name, patterns, repository, scopeName };
103
+ export { autoClosingPairs, brackets, comments, dart as default, surroundingPairs };