@codingame/monaco-editor-wrapper 3.4.1 → 3.5.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 (81) hide show
  1. package/dist/{HTML (Eex).js → HTML (Eex)2.js} +0 -0
  2. package/dist/JavaScript.tmLanguage.js +13 -7
  3. package/dist/JavaScriptReact.tmLanguage.js +13 -7
  4. package/dist/Scala.tmLanguage.js +1 -1
  5. package/dist/TypeScript.tmLanguage.js +13 -7
  6. package/dist/TypeScriptReact.tmLanguage.js +13 -7
  7. package/dist/atd.js +90 -94
  8. package/dist/atd2.js +94 -90
  9. package/dist/c.js +8 -0
  10. package/dist/cpp.js +8 -0
  11. package/dist/cpp.tmLanguage.js +150 -112
  12. package/dist/cpptools.js +133 -40
  13. package/dist/css.worker.js +1 -1
  14. package/dist/cuda-cpp.js +8 -0
  15. package/dist/d.js +3157 -84
  16. package/dist/d2.js +84 -3157
  17. package/dist/d3.js +4 -2
  18. package/dist/dart.js +510 -83
  19. package/dist/dart2.js +83 -510
  20. package/dist/dart3.js +0 -6
  21. package/dist/diet.js +740 -82
  22. package/dist/diet2.js +82 -740
  23. package/dist/django-html.js +155 -0
  24. package/dist/django-html.tmLanguage.js +715 -0
  25. package/dist/django-txt.js +155 -0
  26. package/dist/django-txt.tmLanguage.js +269 -0
  27. package/dist/dml.js +155 -76
  28. package/dist/dml2.js +76 -155
  29. package/dist/dune-project.js +469 -53
  30. package/dist/dune-project2.js +53 -469
  31. package/dist/dune-workspace.js +287 -54
  32. package/dist/dune-workspace2.js +54 -287
  33. package/dist/dune.js +2948 -51
  34. package/dist/dune2.js +51 -2948
  35. package/dist/elixir.js +2335 -63
  36. package/dist/elixir2.js +63 -2335
  37. package/dist/features/cssContribution.js +1 -4
  38. package/dist/features/extensionConfigurations.js +25 -122
  39. package/dist/features/htmlContribution.js +4 -18
  40. package/dist/features/jsonContribution.js +1 -8
  41. package/dist/features/typescriptContribution.js +4 -8
  42. package/dist/{html (eex)2.js → html (eex).js} +0 -0
  43. package/dist/html-html.code-snippets.js +20 -0
  44. package/dist/html.worker.js +1 -1
  45. package/dist/index.js +2178 -1355
  46. package/dist/index2.js +1362 -2186
  47. package/dist/java2.js +32 -9
  48. package/dist/json.worker.js +1 -1
  49. package/dist/lua2.js +35 -0
  50. package/dist/main.js +322 -1420
  51. package/dist/ocaml.interface.js +273 -95
  52. package/dist/ocaml.interface2.js +95 -273
  53. package/dist/ocaml.js +884 -95
  54. package/dist/ocaml2.js +95 -884
  55. package/dist/omnisharp.js +6 -0
  56. package/dist/php-php.code-snippets.js +2 -0
  57. package/dist/r.js +657 -81
  58. package/dist/r2.js +81 -657
  59. package/dist/scalameta.js +5 -4
  60. package/dist/sdl.js +150 -78
  61. package/dist/sdl2.js +78 -150
  62. package/dist/semanticdb.js +62 -0
  63. package/dist/solidity.js +1172 -56
  64. package/dist/solidity2.js +56 -1172
  65. package/dist/solidity3.js +6 -5
  66. package/dist/svelte.svelte-vscode-javascript.js +45 -0
  67. package/dist/svelte.svelte-vscode-typescript.js +43 -0
  68. package/dist/svelte.svelte-vscode.js +8 -1
  69. package/dist/svelte.tmLanguage.src.yaml.js +3 -3
  70. package/dist/theme-defaults~light_vs.js +3 -2
  71. package/dist/ts.worker.js +1 -1
  72. package/dist/typescript-basics-typescript.code-snippets.js +1 -0
  73. package/dist/vim.js +8 -8
  74. package/dist/vscode-django-filters.js +340 -0
  75. package/dist/vscode-django.js +37 -0
  76. package/dist/vscode-python.js +4 -8
  77. package/dist/vue-sugarss.js +390 -54
  78. package/dist/vue-sugarss2.js +54 -390
  79. package/dist/worker.js +1 -3
  80. package/package.json +29 -26
  81. package/stats.html +44 -34
package/dist/d3.js CHANGED
@@ -370,12 +370,14 @@ var d = [
370
370
  "enum": [
371
371
  "allman",
372
372
  "otbs",
373
- "stroustrup"
373
+ "stroustrup",
374
+ "knr"
374
375
  ],
375
376
  "enumDescriptions": [
376
377
  "Curly braces always on separate lines",
377
378
  "Curly braces on the same line as for example if or while statements. Else on same line as closing curly brace.",
378
- "Curly braces on the same line as for example if or while statements, but a new line after the closing curly brace, even if there is an else"
379
+ "Curly braces on the same line as for example if or while statements, but a new line after the closing curly brace, even if there is an else",
380
+ "Curly braces on the same line for everything except functions"
379
381
  ],
380
382
  "default": "allman",
381
383
  "description": "See Wikipedia https://en.wikipedia.org/wiki/Brace_style"
package/dist/dart.js CHANGED
@@ -1,103 +1,530 @@
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
- ]
1
+ var name = "Dart";
2
+ var fileTypes = [
3
+ "dart"
21
4
  ];
22
- var autoClosingPairs = [
5
+ var scopeName = "source.dart";
6
+ var foldingStartMarker = "\\{\\s*$";
7
+ var foldingStopMarker = "^\\s*\\}";
8
+ var patterns = [
23
9
  {
24
- open: "{",
25
- close: "}"
10
+ name: "meta.preprocessor.script.dart",
11
+ match: "^(#!.*)$"
26
12
  },
27
13
  {
28
- open: "[",
29
- close: "]"
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
+ ]
30
43
  },
31
44
  {
32
- open: "(",
33
- close: ")"
45
+ include: "#comments"
34
46
  },
35
47
  {
36
- open: "'",
37
- close: "'",
38
- notIn: [
39
- "string",
40
- "comment"
41
- ]
48
+ include: "#punctuation"
42
49
  },
43
50
  {
44
- open: "\"",
45
- close: "\"",
46
- notIn: [
47
- "string"
48
- ]
51
+ include: "#annotations"
49
52
  },
50
53
  {
51
- open: "`",
52
- close: "`",
53
- notIn: [
54
- "string",
55
- "comment"
56
- ]
54
+ include: "#keywords"
57
55
  },
58
56
  {
59
- open: "/**",
60
- close: " */",
61
- notIn: [
62
- "string"
63
- ]
57
+ include: "#constants-and-special-vars"
58
+ },
59
+ {
60
+ include: "#strings"
64
61
  }
65
62
  ];
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
- ]
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
+ }
182
+ ]
183
+ },
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
+ }
411
+ ]
412
+ },
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
+ }
495
+ ]
496
+ },
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
+ }
511
+ ]
512
+ }
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."
95
518
  ];
96
519
  var dart = {
97
- comments: comments,
98
- brackets: brackets,
99
- autoClosingPairs: autoClosingPairs,
100
- surroundingPairs: surroundingPairs
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
101
528
  };
102
529
 
103
- export { autoClosingPairs, brackets, comments, dart as default, surroundingPairs };
530
+ export { dart as default, fileTypes, foldingStartMarker, foldingStopMarker, information_for_contributors, name, patterns, repository, scopeName };