@codingame/monaco-editor-wrapper 1.1.3 → 1.2.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.
package/dist/d2.js CHANGED
@@ -30,6 +30,18 @@ var repository = {
30
30
  },
31
31
  {
32
32
  include: "#type-ctor"
33
+ },
34
+ {
35
+ begin: "!\\(",
36
+ end: "\\)",
37
+ patterns: [
38
+ {
39
+ include: "#type"
40
+ },
41
+ {
42
+ include: "#expression"
43
+ }
44
+ ]
33
45
  }
34
46
  ]
35
47
  },
@@ -47,6 +59,10 @@ var repository = {
47
59
  },
48
60
  "extended-type": {
49
61
  patterns: [
62
+ {
63
+ match: "\\b((\\.\\s*)?[_\\w][_\\d\\w]*)(\\s*\\.\\s*[_\\w][_\\d\\w]*)*\\b",
64
+ name: "entity.name.type.d"
65
+ },
50
66
  {
51
67
  begin: "\\[",
52
68
  beginCaptures: {
@@ -201,7 +217,7 @@ var repository = {
201
217
  patterns: [
202
218
  {
203
219
  match: "\\s(\\?|:)\\s",
204
- name: "keyword.operator.expression.d"
220
+ name: "keyword.operator.ternary.d"
205
221
  }
206
222
  ]
207
223
  },
@@ -283,21 +299,27 @@ var repository = {
283
299
  "cast-expression": {
284
300
  patterns: [
285
301
  {
286
- begin: "\\bcast\\s*\\(",
302
+ begin: "\\b(cast)\\s*(\\()",
287
303
  beginCaptures: {
288
- "0": {
289
- name: "support.type.cast.begin.d"
304
+ "1": {
305
+ name: "keyword.operator.cast.d"
306
+ },
307
+ "2": {
308
+ name: "keyword.operator.cast.begin.d"
290
309
  }
291
310
  },
292
311
  end: "\\)",
293
312
  endCaptures: {
294
313
  "0": {
295
- name: "support.type.cast.end.d"
314
+ name: "keyword.operator.cast.end.d"
296
315
  }
297
316
  },
298
317
  patterns: [
299
318
  {
300
319
  include: "#type"
320
+ },
321
+ {
322
+ include: "#extended-type"
301
323
  }
302
324
  ]
303
325
  }
@@ -322,9 +344,6 @@ var repository = {
322
344
  },
323
345
  "function-literal": {
324
346
  patterns: [
325
- {
326
- include: "#lambda-expression"
327
- },
328
347
  {
329
348
  match: "=>",
330
349
  name: "keyword.operator.lambda.d"
@@ -332,11 +351,7 @@ var repository = {
332
351
  {
333
352
  match: "\\b(function|delegate)\\b",
334
353
  name: "keyword.other.function-literal.d"
335
- }
336
- ]
337
- },
338
- "lambda-expression": {
339
- patterns: [
354
+ },
340
355
  {
341
356
  begin: "\\b([_\\w][_\\d\\w]*)\\s*(=>)",
342
357
  end: "(?=[\\);,\\]}])",
@@ -353,6 +368,23 @@ var repository = {
353
368
  include: "source.d"
354
369
  }
355
370
  ]
371
+ },
372
+ {
373
+ begin: "(?<=\\)|\\()(\\s*)({)",
374
+ beginCaptures: {
375
+ "1": {
376
+ name: "source.d"
377
+ },
378
+ "2": {
379
+ name: "source.d"
380
+ }
381
+ },
382
+ end: "}",
383
+ patterns: [
384
+ {
385
+ include: "source.d"
386
+ }
387
+ ]
356
388
  }
357
389
  ]
358
390
  },
@@ -557,6 +589,9 @@ var repository = {
557
589
  {
558
590
  include: "#for-statement"
559
591
  },
592
+ {
593
+ include: "#static-foreach"
594
+ },
560
595
  {
561
596
  include: "#foreach-statement"
562
597
  },
@@ -1550,14 +1585,6 @@ var repository = {
1550
1585
  }
1551
1586
  ]
1552
1587
  },
1553
- "unit-test": {
1554
- patterns: [
1555
- {
1556
- match: "\\bunittest\\b",
1557
- name: "entity.name.function.unit-test.d"
1558
- }
1559
- ]
1560
- },
1561
1588
  "shared-static-constructor": {
1562
1589
  patterns: [
1563
1590
  {
@@ -1668,26 +1695,33 @@ var repository = {
1668
1695
  "enum-declaration": {
1669
1696
  patterns: [
1670
1697
  {
1671
- match: "\\b(enum)(?:\\s+([A-Za-z_][\\w_\\d]*))?\\b",
1672
- captures: {
1698
+ begin: "\\b(enum)\\b\\s+",
1699
+ end: "([A-Za-z_][\\w_\\d]*)\\s*(?=;|=|\\()(;)?",
1700
+ beginCaptures: {
1673
1701
  "1": {
1674
1702
  name: "storage.type.enum.d"
1675
- },
1676
- "2": {
1677
- name: "entity.name.type.enum.d"
1678
1703
  }
1679
- }
1680
- },
1681
- {
1682
- match: "\\b(enum)\\b\\s+([A-Za-z_][\\w_\\d]*)\\s*(?=;|=)",
1683
- captures: {
1704
+ },
1705
+ endCaptures: {
1684
1706
  "1": {
1685
- name: "storage.type.enum.d"
1707
+ name: "entity.name.type.enum.d"
1686
1708
  },
1687
1709
  "2": {
1688
- name: "entity.name.type.enum.d"
1710
+ name: "meta.enum.end.d"
1689
1711
  }
1690
- }
1712
+ },
1713
+ patterns: [
1714
+ {
1715
+ include: "#type"
1716
+ },
1717
+ {
1718
+ include: "#extended-type"
1719
+ },
1720
+ {
1721
+ match: "=(?![=>])",
1722
+ name: "keyword.operator.equal.alias.d"
1723
+ }
1724
+ ]
1691
1725
  }
1692
1726
  ]
1693
1727
  },
@@ -2053,6 +2087,30 @@ var repository = {
2053
2087
  }
2054
2088
  ]
2055
2089
  },
2090
+ "static-foreach": {
2091
+ patterns: [
2092
+ {
2093
+ begin: "\\b(static\\s+foreach)\\b\\s*",
2094
+ captures: {
2095
+ "1": {
2096
+ name: "keyword.control.static-foreach.d"
2097
+ }
2098
+ },
2099
+ end: "(?<=\\))",
2100
+ patterns: [
2101
+ {
2102
+ begin: "\\(",
2103
+ end: "\\)",
2104
+ patterns: [
2105
+ {
2106
+ include: "source.d"
2107
+ }
2108
+ ]
2109
+ }
2110
+ ]
2111
+ }
2112
+ ]
2113
+ },
2056
2114
  module: {
2057
2115
  packages: [
2058
2116
  {