@codingame/monaco-editor-wrapper 1.2.1 → 1.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 (95) hide show
  1. package/dist/COBOL Copybook2.js +2017 -0
  2. package/dist/COBOL2.js +2017 -0
  3. package/dist/JavaScript.tmLanguage.js +22 -1
  4. package/dist/JavaScriptReact.tmLanguage.js +22 -1
  5. package/dist/SQL.plist.js +482 -0
  6. package/dist/TypeScript.tmLanguage.js +22 -1
  7. package/dist/TypeScriptReact.tmLanguage.js +22 -1
  8. package/dist/angular.js +56 -0
  9. package/dist/bsv2.js +49 -0
  10. package/dist/buildtarget.js +53 -0
  11. package/dist/c2.js +18 -0
  12. package/dist/clojure.tmLanguage.js +11 -15
  13. package/dist/cobol2.js +80 -0
  14. package/dist/coffeescript2.js +18 -0
  15. package/dist/configuration/hack.d.ts +2 -0
  16. package/dist/cpp2.js +18 -0
  17. package/dist/cpptools.js +2320 -0
  18. package/dist/csharp.tmLanguage.js +5 -5
  19. package/dist/csharp2.js +508 -0
  20. package/dist/d2.js +2 -66
  21. package/dist/d3.js +526 -0
  22. package/dist/dart3.js +966 -0
  23. package/dist/dcf.js +3 -3
  24. package/dist/diet3.js +92 -0
  25. package/dist/elixir3.js +40 -0
  26. package/dist/erlang2.js +92 -0
  27. package/dist/extensionConfigurations.js +1418 -1171
  28. package/dist/features/cssContribution.js +10 -0
  29. package/dist/features/extensionConfigurations.d.ts +1 -0
  30. package/dist/features/extensionConfigurations.js +145 -0
  31. package/dist/features/htmlContribution.js +10 -0
  32. package/dist/features/jsonContribution.js +84 -0
  33. package/dist/features/typescriptContribution.d.ts +4 -0
  34. package/dist/features/typescriptContribution.js +64 -0
  35. package/dist/fsharp.tmLanguage.js +10 -1
  36. package/dist/fsharp2.js +18 -0
  37. package/dist/groovy2.js +229 -0
  38. package/dist/haskell2.js +16 -0
  39. package/dist/html (eex).js +31 -0
  40. package/dist/java2.js +704 -0
  41. package/dist/javascript.js +83 -2
  42. package/dist/javascript2.js +196 -0
  43. package/dist/javascriptreact.js +83 -2
  44. package/dist/javascriptreact2.js +196 -0
  45. package/dist/jsonContribution.js +40 -46
  46. package/dist/jsx-tags.js +51 -2
  47. package/dist/jvm-bytecode-verbose.js +1231 -0
  48. package/dist/jvm-bytecode.js +565 -0
  49. package/dist/kotlin2.js +117 -0
  50. package/dist/kotlinscript2.js +117 -0
  51. package/dist/languages/extensions/configurationLoader.d.ts +1 -13
  52. package/dist/languages/extensions/extensionConfigurationLoader.d.ts +3 -0
  53. package/dist/languages/extensions/grammarLoader.d.ts +2 -101920
  54. package/dist/languages/extensions/languageConfigurationLoader.d.ts +3 -0
  55. package/dist/languages/extensions/snippetLoader.d.ts +3 -5606
  56. package/dist/languages/monarch/list.d.ts +7 -0
  57. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  58. package/dist/lua2.js +1511 -0
  59. package/dist/main.js +155 -98
  60. package/dist/markdown-basics.js +103 -0
  61. package/dist/markdown2.js +103 -0
  62. package/dist/ocaml3.js +145 -0
  63. package/dist/omnisharp.js +522 -0
  64. package/dist/pascal2.js +26 -0
  65. package/dist/pgsql-sql.js +21 -0
  66. package/dist/pgsql.js +21 -0
  67. package/dist/php2.js +265 -0
  68. package/dist/postgresql.js +75 -0
  69. package/dist/powershell2.js +18 -0
  70. package/dist/r.tmLanguage.js +572 -0
  71. package/dist/reason2.js +100 -0
  72. package/dist/rmd.js +8 -1
  73. package/dist/scalameta.js +177 -0
  74. package/dist/services/functional.d.ts +1 -0
  75. package/dist/services/lyfecycle.d.ts +13 -0
  76. package/dist/solargraph.js +192 -0
  77. package/dist/sql.js +9 -2
  78. package/dist/sql2.js +21 -0
  79. package/dist/swift2.js +183 -0
  80. package/dist/systemverilog2.js +208 -0
  81. package/dist/tasty.js +72 -0
  82. package/dist/tcl2.js +151 -0
  83. package/dist/typescript-basics.js +312 -0
  84. package/dist/typescript-language-features.js +998 -0
  85. package/dist/typescript.js +83 -2
  86. package/dist/typescript2.js +312 -0
  87. package/dist/typescriptreact.js +83 -2
  88. package/dist/typescriptreact2.js +312 -0
  89. package/dist/vb2.js +88 -0
  90. package/dist/verilog2.js +94 -0
  91. package/dist/vscode-R.js +519 -0
  92. package/dist/vscode-groovy.js +28 -0
  93. package/dist/vscode-python.js +677 -0
  94. package/package.json +11 -11
  95. package/stats.html +205 -795
@@ -0,0 +1,565 @@
1
+ var $schema = "./schema/tmlanguage.json";
2
+ var name = "jvm-bytecode";
3
+ var scopeName = "source.jvm-bytecode";
4
+ var extensions = [
5
+ ".javap"
6
+ ];
7
+ var patterns = [
8
+ {
9
+ include: "#comments"
10
+ },
11
+ {
12
+ include: "#opcodes"
13
+ },
14
+ {
15
+ include: "#keywords"
16
+ },
17
+ {
18
+ include: "#labels"
19
+ },
20
+ {
21
+ include: "#values"
22
+ },
23
+ {
24
+ include: "#constructors"
25
+ },
26
+ {
27
+ include: "#methods"
28
+ },
29
+ {
30
+ include: "#fields"
31
+ },
32
+ {
33
+ include: "#types"
34
+ }
35
+ ];
36
+ var repository = {
37
+ comments: {
38
+ patterns: [
39
+ {
40
+ name: "comment.line.jvm-bytecode",
41
+ match: "Compiled from (\".*\")",
42
+ captures: {
43
+ "1": {
44
+ name: "string.quoted.double.jvm-bytecode"
45
+ }
46
+ }
47
+ },
48
+ {
49
+ comment: "String Constant Comment",
50
+ name: "comment.line.jvm-bytecode",
51
+ match: "// (String)(.*)$",
52
+ captures: {
53
+ "1": {
54
+ name: "support.type.class.jvm-bytecode"
55
+ },
56
+ "2": {
57
+ name: "string.other.jvm-bytecode"
58
+ }
59
+ }
60
+ },
61
+ {
62
+ comment: "float Constant Comment",
63
+ name: "comment.line.jvm-bytecode",
64
+ match: "// (float) (.*)$",
65
+ captures: {
66
+ "1": {
67
+ name: "support.type.primitive.jvm-bytecode"
68
+ },
69
+ "2": {
70
+ name: "constant.language.numeric.float.jvm-bytecode"
71
+ }
72
+ }
73
+ },
74
+ {
75
+ comment: "double Constant Comment",
76
+ name: "comment.line.jvm-bytecode",
77
+ match: "// (double) (.*)$",
78
+ captures: {
79
+ "1": {
80
+ name: "support.type.primitive.jvm-bytecode"
81
+ },
82
+ "2": {
83
+ name: "constant.language.numeric.double.jvm-bytecode"
84
+ }
85
+ }
86
+ },
87
+ {
88
+ comment: "long Constant Comment",
89
+ name: "comment.line.jvm-bytecode",
90
+ match: "// (long) (.*)$",
91
+ captures: {
92
+ "1": {
93
+ name: "support.type.primitive.jvm-bytecode"
94
+ },
95
+ "2": {
96
+ name: "constant.language.numeric.long.jvm-bytecode"
97
+ }
98
+ }
99
+ },
100
+ {
101
+ comment: "int Constant Comment",
102
+ name: "comment.line.jvm-bytecode",
103
+ match: "// (int) (.*)$",
104
+ captures: {
105
+ "1": {
106
+ name: "support.type.primitive.jvm-bytecode"
107
+ },
108
+ "2": {
109
+ name: "constant.language.numeric.int.jvm-bytecode"
110
+ }
111
+ }
112
+ },
113
+ {
114
+ comment: "Class Constant Comment",
115
+ name: "comment.line.jvm-bytecode",
116
+ match: "// (class) (.*)$",
117
+ captures: {
118
+ "1": {
119
+ name: "keyword.jvm-bytecode"
120
+ },
121
+ "2": {
122
+ name: "support.type.class.jvm-bytecode"
123
+ }
124
+ }
125
+ },
126
+ {
127
+ comment: "Field Constant Comment",
128
+ name: "comment.line.jvm-bytecode",
129
+ begin: "// (Field) (?:(.*)(\\.))?(.*)(:)",
130
+ end: "$",
131
+ beginCaptures: {
132
+ "1": {
133
+ name: "keyword.jvm-bytecode"
134
+ },
135
+ "2": {
136
+ name: "support.type.class.jvm-bytecode"
137
+ },
138
+ "3": {
139
+ name: "keyword.other.jvm-bytecode"
140
+ },
141
+ "4": {
142
+ name: "variable.other.definition.jvm-bytecode"
143
+ },
144
+ "5": {
145
+ name: "keyword.other.jvm-bytecode"
146
+ }
147
+ },
148
+ patterns: [
149
+ {
150
+ include: "#descriptors"
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ comment: "Method Constant Comment",
156
+ name: "comment.line.jvm-bytecode",
157
+ begin: "// (Method) (?:(.*)(\\.))?(.*)(:)",
158
+ end: "$",
159
+ beginCaptures: {
160
+ "1": {
161
+ name: "keyword.jvm-bytecode"
162
+ },
163
+ "2": {
164
+ name: "support.type.class.jvm-bytecode"
165
+ },
166
+ "3": {
167
+ name: "keyword.other.jvm-bytecode"
168
+ },
169
+ "4": {
170
+ name: "entity.name.function.opcode.jvm-bytecode"
171
+ },
172
+ "5": {
173
+ name: "keyword.other.jvm-bytecode"
174
+ }
175
+ },
176
+ patterns: [
177
+ {
178
+ include: "#descriptors"
179
+ }
180
+ ]
181
+ },
182
+ {
183
+ comment: "Interface Method Constant Comment",
184
+ name: "comment.line.jvm-bytecode",
185
+ begin: "// (InterfaceMethod) (.*)(\\.)(.*)(:)",
186
+ end: "$",
187
+ beginCaptures: {
188
+ "1": {
189
+ name: "keyword.jvm-bytecode"
190
+ },
191
+ "2": {
192
+ name: "support.type.class.jvm-bytecode"
193
+ },
194
+ "3": {
195
+ name: "keyword.other.jvm-bytecode"
196
+ },
197
+ "4": {
198
+ name: "entity.name.function.opcode.jvm-bytecode"
199
+ },
200
+ "5": {
201
+ name: "keyword.other.jvm-bytecode"
202
+ }
203
+ },
204
+ patterns: [
205
+ {
206
+ include: "#descriptors"
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ comment: "Invoke Dynamic Constant Comment",
212
+ name: "comment.line.jvm-bytecode",
213
+ begin: "// (InvokeDynamic) (#[0-9]+)(:)(.*)(:)",
214
+ end: "$",
215
+ beginCaptures: {
216
+ "1": {
217
+ name: "keyword.jvm-bytecode"
218
+ },
219
+ "2": {
220
+ name: "constant.symbol.jvm-bytecode"
221
+ },
222
+ "3": {
223
+ name: "keyword.jvm-bytecode"
224
+ },
225
+ "4": {
226
+ name: "entity.name.function.opcode.jvm-bytecode"
227
+ },
228
+ "5": {
229
+ name: "keyword.other.jvm-bytecode"
230
+ }
231
+ },
232
+ patterns: [
233
+ {
234
+ include: "#descriptors"
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ comment: "Method Handle Constant Comment",
240
+ name: "comment.line.jvm-bytecode",
241
+ begin: "// (MethodHandle) ([A-Za-z_]+) (.*)(\\.)(.*)(:)",
242
+ end: "$",
243
+ beginCaptures: {
244
+ "1": {
245
+ name: "keyword.jvm-bytecode"
246
+ },
247
+ "2": {
248
+ name: "keyword.jvm-bytecode"
249
+ },
250
+ "3": {
251
+ name: "support.type.class.jvm-bytecode"
252
+ },
253
+ "4": {
254
+ name: "keyword.other.jvm-bytecode"
255
+ },
256
+ "5": {
257
+ name: "entity.name.function.opcode.jvm-bytecode"
258
+ },
259
+ "6": {
260
+ name: "keyword.other.jvm-bytecode"
261
+ }
262
+ },
263
+ patterns: [
264
+ {
265
+ include: "#descriptors"
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ name: "comment.line.jvm-bytecode",
271
+ begin: "//",
272
+ end: "$"
273
+ }
274
+ ]
275
+ },
276
+ opcodes: {
277
+ patterns: [
278
+ {
279
+ comment: "Constants",
280
+ name: "entity.name.function.opcode.constants.jvm-bytecode",
281
+ match: "\\b(nop|aconst_null|iconst_m1|iconst_0|iconst_1|iconst_2|iconst_3|iconst_4|iconst_5|lconst_0|lconst_1|fconst_0|fconst_1|fconst_2|dconst_0|dconst_1|bipush|sipush|ldc|ldc_w|ldc2_w)\\b"
282
+ },
283
+ {
284
+ comment: "Loads",
285
+ name: "entity.name.function.opcode.loads.jvm-bytecode",
286
+ match: "\\b(iload|lload|fload|dload|aload|iload_0|iload_1|iload_2|iload_3|lload_0|lload_1|lload_2|lload_3|fload_0|fload_1|fload_2|fload_3|dload_0|dload_1|dload_2|dload_3|aload_0|aload_1|aload_2|aload_3|iaload|laload|faload|daload|aaload|baload|caload|saload)\\b"
287
+ },
288
+ {
289
+ comment: "Stores",
290
+ name: "entity.name.function.opcode.stores.jvm-bytecode",
291
+ match: "\\b(istore|lstore|fstore|dstore|astore|istore_0|istore_1|istore_2|istore_3|lstore_0|lstore_1|lstore_2|lstore_3|fstore_0|fstore_1|fstore_2|fstore_3|dstore_0|dstore_1|dstore_2|dstore_3|astore_0|astore_1|astore_2|astore_3|iastore|lastore|fastore|dastore|aastore|bastore|castore|sastore)\\b"
292
+ },
293
+ {
294
+ comment: "Stack",
295
+ name: "entity.name.function.opcode.stack.jvm-bytecode",
296
+ match: "\\b(pop|pop2|dup|dup_x1|dup_x2|dup2|dup2_x1|dup2_x2|swap)\\b"
297
+ },
298
+ {
299
+ comment: "Math",
300
+ name: "entity.name.function.opcode.math.jvm-bytecode",
301
+ match: "\\b(iadd|ladd|fadd|dadd|isub|lsub|fsub|dsub|imul|lmul|fmul|dmul|idiv|ldiv|fdiv|ddiv|irem|lrem|frem|drem|ineg|lneg|fneg|dneg|ishl|lshl|ishr|lshr|iushr|lushr|iand|land|ior|lor|ixor|lxor|iinc)\\b"
302
+ },
303
+ {
304
+ comment: "Conversions",
305
+ name: "entity.name.function.opcode.conversions.jvm-bytecode",
306
+ match: "\\b(i2l|i2f|i2d|l2i|l2f|l2d|f2i|f2l|f2d|d2i|d2l|d2f|i2b|i2c|i2s)\\b"
307
+ },
308
+ {
309
+ comment: "Comparisons",
310
+ name: "entity.name.function.opcode.comparisons.jvm-bytecode",
311
+ match: "\\b(lcmp|fcmpl|fcmpg|dcmpl|dcmpg|ifeq|ifne|iflt|ifge|ifgt|ifle|if_icmpeq|if_icmpne|if_icmplt|if_icmpge|if_icmpgt|if_icmple|if_acmpeq|if_acmpne)\\b"
312
+ },
313
+ {
314
+ comment: "References",
315
+ name: "entity.name.function.opcode.references.jvm-bytecode",
316
+ match: "\\b(getstatic|putstatic|getfield|putfield|invokevirtual|invokespecial|invokestatic|invokeinterface|invokedynamic|new|newarray|anewarray|arraylength|athrow|checkcast|instanceof|monitorenter|monitorexit)\\b"
317
+ },
318
+ {
319
+ comment: "Control",
320
+ name: "entity.name.function.opcode.control.jvm-bytecode",
321
+ match: "\\b(goto|jsr|ret|tableswitch|lookupswitch|ireturn|lreturn|freturn|dreturn|areturn|return)\\b"
322
+ },
323
+ {
324
+ comment: "Extended",
325
+ name: "entity.name.function.opcode.extended.jvm-bytecode",
326
+ match: "\\b(wide|multianewarray|ifnull|ifnonnull|goto_w|jsr_w)\\b"
327
+ },
328
+ {
329
+ comment: "Reserved",
330
+ name: "entity.name.function.opcode.reserved.jvm-bytecode",
331
+ match: "\\b(breakpoint|impdep1|impdep2)\\b"
332
+ }
333
+ ]
334
+ },
335
+ keywords: {
336
+ name: "keyword.jvm-bytecode",
337
+ match: "\\b(abstract|class|default|extends|final|implements|interface|module|native|private|protected|public|static|synchronized|throws|transient|volatile)\\b"
338
+ },
339
+ labels: {
340
+ patterns: [
341
+ {
342
+ name: "keyword.other.jvm-bytecode",
343
+ match: "^\\s*Code:$"
344
+ },
345
+ {
346
+ comment: "default label in tableswitch or lookupswitch",
347
+ name: "keyword.other.jvm-bytecode",
348
+ match: "^\\s*default:"
349
+ },
350
+ {
351
+ match: "^\\s*(-?[0-9]+)(:)",
352
+ captures: {
353
+ "1": {
354
+ name: "constant.language.jvm-bytecode"
355
+ },
356
+ "2": {
357
+ name: "keyword.other.jvm-bytecode"
358
+ }
359
+ }
360
+ },
361
+ {
362
+ include: "#exception-table"
363
+ }
364
+ ]
365
+ },
366
+ "exception-table": {
367
+ patterns: [
368
+ {
369
+ name: "keyword.other.jvm-bytecode",
370
+ match: "^\\s*(Exception table:)$"
371
+ },
372
+ {
373
+ name: "keyword.other.jvm-bytecode",
374
+ match: "^\\s*from to target type$"
375
+ },
376
+ {
377
+ name: "keyword.other.jvm-bytecode",
378
+ match: "^\\s*([0-9]+)\\s+([0-9]+)\\s+([0-9]+)\\s+(Class|any)(.*)$",
379
+ captures: {
380
+ "1": {
381
+ name: "constant.numeric.int.jvm-bytecode"
382
+ },
383
+ "2": {
384
+ name: "constant.numeric.int.jvm-bytecode"
385
+ },
386
+ "3": {
387
+ name: "constant.numeric.int.jvm-bytecode"
388
+ },
389
+ "4": {
390
+ name: "keyword.other.jvm-bytecode"
391
+ },
392
+ "5": {
393
+ name: "support.type.class.jvm-bytecode"
394
+ }
395
+ }
396
+ }
397
+ ]
398
+ },
399
+ values: {
400
+ patterns: [
401
+ {
402
+ comment: "Symbol",
403
+ name: "constant.symbol.jvm-bytecode",
404
+ match: "(#[0-9]+)\\b"
405
+ },
406
+ {
407
+ comment: "boolean",
408
+ name: "constant.boolean.jvm-bytecode",
409
+ match: "\\b(true|false)\\b"
410
+ },
411
+ {
412
+ comment: "float",
413
+ name: "constant.numeric.float.jvm-bytecode",
414
+ match: "\\b([0-9]+\\.[0-9]+(E-?)?[0-9]*f)\\b"
415
+ },
416
+ {
417
+ comment: "double",
418
+ name: "constant.numeric.double.jvm-bytecode",
419
+ match: "\\b([0-9]+\\.[0-9]+(E-?)?[0-9]*d)\\b"
420
+ },
421
+ {
422
+ comment: "long",
423
+ name: "constant.numeric.long.jvm-bytecode",
424
+ match: "\\b([0-9]+l)\\b"
425
+ },
426
+ {
427
+ comment: "int",
428
+ name: "constant.numeric.int.jvm-bytecode",
429
+ match: "\\b([0-9]+)\\b"
430
+ },
431
+ {
432
+ comment: "String",
433
+ name: "string.quoted.double.jvm-bytecode",
434
+ match: "\".*\""
435
+ },
436
+ {
437
+ comment: "Character",
438
+ name: "constant.character.jvm-bytecode",
439
+ match: "'.*'"
440
+ }
441
+ ]
442
+ },
443
+ constructor: {
444
+ comment: "Constructor",
445
+ begin: "\\b([A-Z][A-Za-z0-9_$]*)\\(",
446
+ end: "\\)",
447
+ beginCaptures: {
448
+ "1": {
449
+ name: "support.type.class.jvm-bytecode"
450
+ }
451
+ },
452
+ patterns: [
453
+ {
454
+ include: "$self"
455
+ }
456
+ ]
457
+ },
458
+ methods: {
459
+ comment: "Method",
460
+ begin: "((\\$|\\b)([a-z_$][A-Za-z0-9_$]*))\\(",
461
+ end: "\\)",
462
+ beginCaptures: {
463
+ "1": {
464
+ name: "entity.name.function.opcode.jvm-bytecode"
465
+ }
466
+ },
467
+ patterns: [
468
+ {
469
+ include: "$self"
470
+ }
471
+ ]
472
+ },
473
+ fields: {
474
+ comment: "Class Field",
475
+ match: "((\\$|\\b)([A-Za-z_$][A-Za-z0-9_$]*))(;| =)",
476
+ captures: {
477
+ "1": {
478
+ name: "variable.other.definition.jvm-bytecode"
479
+ }
480
+ }
481
+ },
482
+ types: {
483
+ patterns: [
484
+ {
485
+ comment: "Class Type",
486
+ name: "support.type.class.jvm-bytecode",
487
+ match: "\\b(([A-Za-z_$][A-Za-z0-9_$]*\\.)*[A-Z][A-Za-z0-9_$]*)(\\$|\\b)"
488
+ },
489
+ {
490
+ comment: "Primitive Type",
491
+ name: "support.type.primitive.jvm-bytecode",
492
+ match: "\\b(boolean|byte|char|double|float|int|long|short|void)\\b"
493
+ }
494
+ ]
495
+ },
496
+ descriptors: {
497
+ patterns: [
498
+ {
499
+ comment: "Primitive Types - byte, char, double, float, int, long, short, boolean",
500
+ name: "support.type.primitive.jvm-bytecode",
501
+ match: "[BCDFIJSZ]"
502
+ },
503
+ {
504
+ comment: "Class Reference Type",
505
+ name: "support.type.class.jvm-bytecode",
506
+ begin: "(L)",
507
+ end: "(;)",
508
+ beginCaptures: {
509
+ "1": {
510
+ name: "keyword.other.jvm-bytecode"
511
+ }
512
+ },
513
+ endCaptures: {
514
+ "1": {
515
+ name: "keyword.other.jvm-bytecode"
516
+ }
517
+ }
518
+ },
519
+ {
520
+ comment: "Array Reference Type",
521
+ name: "keyword.other.jvm-bytecode",
522
+ match: "\\["
523
+ },
524
+ {
525
+ comment: "Method Type (possibly void)",
526
+ begin: "(\\()",
527
+ end: "(\\))(V?)",
528
+ beginCaptures: {
529
+ "1": {
530
+ name: "keyword.other.jvm-bytecode"
531
+ }
532
+ },
533
+ endCaptures: {
534
+ "1": {
535
+ name: "keyword.other.jvm-bytecode"
536
+ },
537
+ "2": {
538
+ name: "support.type.void.jvm-bytecode"
539
+ }
540
+ },
541
+ patterns: [
542
+ {
543
+ include: "#descriptors"
544
+ }
545
+ ]
546
+ }
547
+ ]
548
+ }
549
+ };
550
+ var information_for_contributors = [
551
+ "This file has been converted from https://github.com/scalameta/metals-vscode/blob/master/",
552
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
553
+ "Once accepted there, we are happy to receive an update request."
554
+ ];
555
+ var jvmBytecode = {
556
+ $schema: $schema,
557
+ name: name,
558
+ scopeName: scopeName,
559
+ extensions: extensions,
560
+ patterns: patterns,
561
+ repository: repository,
562
+ information_for_contributors: information_for_contributors
563
+ };
564
+
565
+ export { $schema, jvmBytecode as default, extensions, information_for_contributors, name, patterns, repository, scopeName };
@@ -0,0 +1,117 @@
1
+ var fun = {
2
+ prefix: "fun",
3
+ body: [
4
+ "fun ${1:foo}() = ${0}"
5
+ ],
6
+ description: "One line fucntion"
7
+ };
8
+ var fun2 = {
9
+ prefix: "fun",
10
+ body: [
11
+ "fun ${1:foo}(${2:bar}: ${3:Any}, ${4:baz}: ${5:Any}): ${6:Unit} {",
12
+ "\t${0}",
13
+ "}"
14
+ ],
15
+ description: "Function with 2 parameters"
16
+ };
17
+ var fun1 = {
18
+ prefix: "fun",
19
+ body: [
20
+ "fun ${1:foo}(${2:bar}: ${3:Any}): ${4:Unit} {",
21
+ "\t${0}",
22
+ "}"
23
+ ],
24
+ description: "Function with 1 parameter"
25
+ };
26
+ var fun0 = {
27
+ prefix: "fun",
28
+ body: [
29
+ "fun ${1:foo}(): Unit {",
30
+ "\t${0}",
31
+ "}"
32
+ ],
33
+ description: "Function with 0 parameters"
34
+ };
35
+ var main = {
36
+ prefix: "main",
37
+ body: [
38
+ "fun main(args: Array<String>) {",
39
+ "\t${0}",
40
+ "}"
41
+ ],
42
+ description: "main() function"
43
+ };
44
+ var class1 = {
45
+ prefix: "class",
46
+ body: [
47
+ "class ${1:foo}(${2:bar}) {",
48
+ "\t${0}",
49
+ "}"
50
+ ],
51
+ description: "Class with constructor"
52
+ };
53
+ var data = {
54
+ prefix: "class",
55
+ body: [
56
+ "data class ${1:foo}(${0})"
57
+ ],
58
+ description: "Empty data class"
59
+ };
60
+ var singleton = {
61
+ prefix: "singleton",
62
+ body: [
63
+ "object ${1:foo} {",
64
+ "\t${0}",
65
+ "}"
66
+ ],
67
+ description: "Empty singleton"
68
+ };
69
+ var kotlin = {
70
+ fun: fun,
71
+ fun2: fun2,
72
+ fun1: fun1,
73
+ fun0: fun0,
74
+ "void": {
75
+ prefix: "void",
76
+ body: [
77
+ "fun ${1:foo}() {",
78
+ "\t${0}",
79
+ "}"
80
+ ],
81
+ description: "Function that returns nothing"
82
+ },
83
+ main: main,
84
+ "for": {
85
+ prefix: "for",
86
+ body: [
87
+ "for (${1:i} in ${2:iterable}) {",
88
+ "\t${0}",
89
+ "}"
90
+ ]
91
+ },
92
+ "try": {
93
+ prefix: "try",
94
+ body: [
95
+ "try {",
96
+ "\t${0}",
97
+ "}",
98
+ "catch(Exception e) {",
99
+ "\t${0}",
100
+ "}"
101
+ ]
102
+ },
103
+ "class": {
104
+ prefix: "class",
105
+ body: [
106
+ "class ${1:foo} {",
107
+ "\t${0}",
108
+ "}"
109
+ ],
110
+ description: "Class without contructor"
111
+ },
112
+ class1: class1,
113
+ data: data,
114
+ singleton: singleton
115
+ };
116
+
117
+ export { class1, data, kotlin as default, fun, fun0, fun1, fun2, main, singleton };