@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
File without changes
@@ -3,7 +3,7 @@ var information_for_contributors = [
3
3
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
4
  "Once accepted there, we are happy to receive an update request."
5
5
  ];
6
- var version = "https://github.com/microsoft/TypeScript-TmLanguage/commit/73af17bf3e45339df06d92751ab366ce96c38516";
6
+ var version = "https://github.com/microsoft/TypeScript-TmLanguage/commit/c2744520e325330d0608fc1d1993d7fe98e66202";
7
7
  var name = "JavaScript (with React support)";
8
8
  var scopeName = "source.js";
9
9
  var patterns = [
@@ -2673,7 +2673,7 @@ var repository = {
2673
2673
  {
2674
2674
  name: "meta.object.member.js meta.object-literal.key.js",
2675
2675
  begin: "(?=[\\'\\\"\\`])",
2676
- end: "(?=:)|((?<=[\\'\\\"\\`])(?=((\\s*[\\(\\<,}])|(\\s+(as)\\s+))))",
2676
+ end: "(?=:)|((?<=[\\'\\\"\\`])(?=((\\s*[\\(\\<,}])|(\\s+(as|satisifies)\\s+))))",
2677
2677
  patterns: [
2678
2678
  {
2679
2679
  include: "#comment"
@@ -2686,7 +2686,7 @@ var repository = {
2686
2686
  {
2687
2687
  name: "meta.object.member.js meta.object-literal.key.js",
2688
2688
  begin: "(?x)(?=(\\b(?<!\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\b(?!\\$))|(\\b(?<!\\$)0(?:b|B)[01][01_]*(n)?\\b(?!\\$))|(\\b(?<!\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1.1E+3\n (?:\\b[0-9][0-9_]*(\\.)[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1.E+3\n (?:\\B(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # .1E+3\n (?:\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1E+3\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b)| # 1.1\n (?:\\b[0-9][0-9_]*(\\.)(n)?\\B)| # 1.\n (?:\\B(\\.)[0-9][0-9_]*(n)?\\b)| # .1\n (?:\\b[0-9][0-9_]*(n)?\\b(?!\\.)) # 1\n)(?!\\$)))",
2689
- end: "(?=:)|(?=\\s*([\\(\\<,}])|(\\s+as\\s+))",
2689
+ end: "(?=:)|(?=\\s*([\\(\\<,}])|(\\s+as|satisifies\\s+))",
2690
2690
  patterns: [
2691
2691
  {
2692
2692
  include: "#comment"
@@ -2777,13 +2777,16 @@ var repository = {
2777
2777
  },
2778
2778
  {
2779
2779
  name: "meta.object.member.js",
2780
- begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+",
2780
+ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(as)|(satisfies))\\s+",
2781
2781
  beginCaptures: {
2782
2782
  "1": {
2783
2783
  name: "keyword.control.as.js"
2784
+ },
2785
+ "2": {
2786
+ name: "keyword.control.satisfies.js"
2784
2787
  }
2785
2788
  },
2786
- end: "(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|^|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+))",
2789
+ end: "(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|^|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as|satisifies)\\s+))",
2787
2790
  patterns: [
2788
2791
  {
2789
2792
  include: "#type"
@@ -3304,13 +3307,16 @@ var repository = {
3304
3307
  }
3305
3308
  },
3306
3309
  {
3307
- begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+",
3310
+ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(as)|(satisfies))\\s+",
3308
3311
  beginCaptures: {
3309
3312
  "1": {
3310
3313
  name: "keyword.control.as.js"
3314
+ },
3315
+ "2": {
3316
+ name: "keyword.control.satisfies.js"
3311
3317
  }
3312
3318
  },
3313
- end: "(?=^|[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+)|(\\s+\\<))",
3319
+ end: "(?=^|[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as|satisifies)\\s+)|(\\s+\\<))",
3314
3320
  patterns: [
3315
3321
  {
3316
3322
  include: "#type"
@@ -3,7 +3,7 @@ var information_for_contributors = [
3
3
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
4
  "Once accepted there, we are happy to receive an update request."
5
5
  ];
6
- var version = "https://github.com/microsoft/TypeScript-TmLanguage/commit/73af17bf3e45339df06d92751ab366ce96c38516";
6
+ var version = "https://github.com/microsoft/TypeScript-TmLanguage/commit/c2744520e325330d0608fc1d1993d7fe98e66202";
7
7
  var name = "JavaScript (with React support)";
8
8
  var scopeName = "source.js.jsx";
9
9
  var patterns = [
@@ -2673,7 +2673,7 @@ var repository = {
2673
2673
  {
2674
2674
  name: "meta.object.member.js.jsx meta.object-literal.key.js.jsx",
2675
2675
  begin: "(?=[\\'\\\"\\`])",
2676
- end: "(?=:)|((?<=[\\'\\\"\\`])(?=((\\s*[\\(\\<,}])|(\\s+(as)\\s+))))",
2676
+ end: "(?=:)|((?<=[\\'\\\"\\`])(?=((\\s*[\\(\\<,}])|(\\s+(as|satisifies)\\s+))))",
2677
2677
  patterns: [
2678
2678
  {
2679
2679
  include: "#comment"
@@ -2686,7 +2686,7 @@ var repository = {
2686
2686
  {
2687
2687
  name: "meta.object.member.js.jsx meta.object-literal.key.js.jsx",
2688
2688
  begin: "(?x)(?=(\\b(?<!\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\b(?!\\$))|(\\b(?<!\\$)0(?:b|B)[01][01_]*(n)?\\b(?!\\$))|(\\b(?<!\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1.1E+3\n (?:\\b[0-9][0-9_]*(\\.)[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1.E+3\n (?:\\B(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # .1E+3\n (?:\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1E+3\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b)| # 1.1\n (?:\\b[0-9][0-9_]*(\\.)(n)?\\B)| # 1.\n (?:\\B(\\.)[0-9][0-9_]*(n)?\\b)| # .1\n (?:\\b[0-9][0-9_]*(n)?\\b(?!\\.)) # 1\n)(?!\\$)))",
2689
- end: "(?=:)|(?=\\s*([\\(\\<,}])|(\\s+as\\s+))",
2689
+ end: "(?=:)|(?=\\s*([\\(\\<,}])|(\\s+as|satisifies\\s+))",
2690
2690
  patterns: [
2691
2691
  {
2692
2692
  include: "#comment"
@@ -2777,13 +2777,16 @@ var repository = {
2777
2777
  },
2778
2778
  {
2779
2779
  name: "meta.object.member.js.jsx",
2780
- begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+",
2780
+ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(as)|(satisfies))\\s+",
2781
2781
  beginCaptures: {
2782
2782
  "1": {
2783
2783
  name: "keyword.control.as.js.jsx"
2784
+ },
2785
+ "2": {
2786
+ name: "keyword.control.satisfies.js.jsx"
2784
2787
  }
2785
2788
  },
2786
- end: "(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|^|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+))",
2789
+ end: "(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|^|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as|satisifies)\\s+))",
2787
2790
  patterns: [
2788
2791
  {
2789
2792
  include: "#type"
@@ -3304,13 +3307,16 @@ var repository = {
3304
3307
  }
3305
3308
  },
3306
3309
  {
3307
- begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+",
3310
+ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(as)|(satisfies))\\s+",
3308
3311
  beginCaptures: {
3309
3312
  "1": {
3310
3313
  name: "keyword.control.as.js.jsx"
3314
+ },
3315
+ "2": {
3316
+ name: "keyword.control.satisfies.js.jsx"
3311
3317
  }
3312
3318
  },
3313
- end: "(?=^|[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+)|(\\s+\\<))",
3319
+ end: "(?=^|[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as|satisifies)\\s+)|(\\s+\\<))",
3314
3320
  patterns: [
3315
3321
  {
3316
3322
  include: "#type"
@@ -1142,7 +1142,7 @@ var repository = {
1142
1142
  name: "keyword.declaration.scala"
1143
1143
  },
1144
1144
  "2": {
1145
- name: "entity.other.inherited-class.scala"
1145
+ name: "entity.name.class"
1146
1146
  }
1147
1147
  }
1148
1148
  }
@@ -3,7 +3,7 @@ var information_for_contributors = [
3
3
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
4
  "Once accepted there, we are happy to receive an update request."
5
5
  ];
6
- var version = "https://github.com/microsoft/TypeScript-TmLanguage/commit/73af17bf3e45339df06d92751ab366ce96c38516";
6
+ var version = "https://github.com/microsoft/TypeScript-TmLanguage/commit/c2744520e325330d0608fc1d1993d7fe98e66202";
7
7
  var name = "TypeScript";
8
8
  var scopeName = "source.ts";
9
9
  var patterns = [
@@ -2670,7 +2670,7 @@ var repository = {
2670
2670
  {
2671
2671
  name: "meta.object.member.ts meta.object-literal.key.ts",
2672
2672
  begin: "(?=[\\'\\\"\\`])",
2673
- end: "(?=:)|((?<=[\\'\\\"\\`])(?=((\\s*[\\(\\<,}])|(\\s+(as)\\s+))))",
2673
+ end: "(?=:)|((?<=[\\'\\\"\\`])(?=((\\s*[\\(\\<,}])|(\\s+(as|satisifies)\\s+))))",
2674
2674
  patterns: [
2675
2675
  {
2676
2676
  include: "#comment"
@@ -2683,7 +2683,7 @@ var repository = {
2683
2683
  {
2684
2684
  name: "meta.object.member.ts meta.object-literal.key.ts",
2685
2685
  begin: "(?x)(?=(\\b(?<!\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\b(?!\\$))|(\\b(?<!\\$)0(?:b|B)[01][01_]*(n)?\\b(?!\\$))|(\\b(?<!\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1.1E+3\n (?:\\b[0-9][0-9_]*(\\.)[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1.E+3\n (?:\\B(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # .1E+3\n (?:\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1E+3\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b)| # 1.1\n (?:\\b[0-9][0-9_]*(\\.)(n)?\\B)| # 1.\n (?:\\B(\\.)[0-9][0-9_]*(n)?\\b)| # .1\n (?:\\b[0-9][0-9_]*(n)?\\b(?!\\.)) # 1\n)(?!\\$)))",
2686
- end: "(?=:)|(?=\\s*([\\(\\<,}])|(\\s+as\\s+))",
2686
+ end: "(?=:)|(?=\\s*([\\(\\<,}])|(\\s+as|satisifies\\s+))",
2687
2687
  patterns: [
2688
2688
  {
2689
2689
  include: "#comment"
@@ -2774,13 +2774,16 @@ var repository = {
2774
2774
  },
2775
2775
  {
2776
2776
  name: "meta.object.member.ts",
2777
- begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+",
2777
+ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(as)|(satisfies))\\s+",
2778
2778
  beginCaptures: {
2779
2779
  "1": {
2780
2780
  name: "keyword.control.as.ts"
2781
+ },
2782
+ "2": {
2783
+ name: "keyword.control.satisfies.ts"
2781
2784
  }
2782
2785
  },
2783
- end: "(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|^|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+))",
2786
+ end: "(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|^|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as|satisifies)\\s+))",
2784
2787
  patterns: [
2785
2788
  {
2786
2789
  include: "#type"
@@ -3353,13 +3356,16 @@ var repository = {
3353
3356
  }
3354
3357
  },
3355
3358
  {
3356
- begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+",
3359
+ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(as)|(satisfies))\\s+",
3357
3360
  beginCaptures: {
3358
3361
  "1": {
3359
3362
  name: "keyword.control.as.ts"
3363
+ },
3364
+ "2": {
3365
+ name: "keyword.control.satisfies.ts"
3360
3366
  }
3361
3367
  },
3362
- end: "(?=^|[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+)|(\\s+\\<))",
3368
+ end: "(?=^|[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as|satisifies)\\s+)|(\\s+\\<))",
3363
3369
  patterns: [
3364
3370
  {
3365
3371
  include: "#type"
@@ -3,7 +3,7 @@ var information_for_contributors = [
3
3
  "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
4
  "Once accepted there, we are happy to receive an update request."
5
5
  ];
6
- var version = "https://github.com/microsoft/TypeScript-TmLanguage/commit/73af17bf3e45339df06d92751ab366ce96c38516";
6
+ var version = "https://github.com/microsoft/TypeScript-TmLanguage/commit/c2744520e325330d0608fc1d1993d7fe98e66202";
7
7
  var name = "TypeScriptReact";
8
8
  var scopeName = "source.tsx";
9
9
  var patterns = [
@@ -2673,7 +2673,7 @@ var repository = {
2673
2673
  {
2674
2674
  name: "meta.object.member.tsx meta.object-literal.key.tsx",
2675
2675
  begin: "(?=[\\'\\\"\\`])",
2676
- end: "(?=:)|((?<=[\\'\\\"\\`])(?=((\\s*[\\(\\<,}])|(\\s+(as)\\s+))))",
2676
+ end: "(?=:)|((?<=[\\'\\\"\\`])(?=((\\s*[\\(\\<,}])|(\\s+(as|satisifies)\\s+))))",
2677
2677
  patterns: [
2678
2678
  {
2679
2679
  include: "#comment"
@@ -2686,7 +2686,7 @@ var repository = {
2686
2686
  {
2687
2687
  name: "meta.object.member.tsx meta.object-literal.key.tsx",
2688
2688
  begin: "(?x)(?=(\\b(?<!\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\b(?!\\$))|(\\b(?<!\\$)0(?:b|B)[01][01_]*(n)?\\b(?!\\$))|(\\b(?<!\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1.1E+3\n (?:\\b[0-9][0-9_]*(\\.)[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1.E+3\n (?:\\B(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # .1E+3\n (?:\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)| # 1E+3\n (?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b)| # 1.1\n (?:\\b[0-9][0-9_]*(\\.)(n)?\\B)| # 1.\n (?:\\B(\\.)[0-9][0-9_]*(n)?\\b)| # .1\n (?:\\b[0-9][0-9_]*(n)?\\b(?!\\.)) # 1\n)(?!\\$)))",
2689
- end: "(?=:)|(?=\\s*([\\(\\<,}])|(\\s+as\\s+))",
2689
+ end: "(?=:)|(?=\\s*([\\(\\<,}])|(\\s+as|satisifies\\s+))",
2690
2690
  patterns: [
2691
2691
  {
2692
2692
  include: "#comment"
@@ -2777,13 +2777,16 @@ var repository = {
2777
2777
  },
2778
2778
  {
2779
2779
  name: "meta.object.member.tsx",
2780
- begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+",
2780
+ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(as)|(satisfies))\\s+",
2781
2781
  beginCaptures: {
2782
2782
  "1": {
2783
2783
  name: "keyword.control.as.tsx"
2784
+ },
2785
+ "2": {
2786
+ name: "keyword.control.satisfies.tsx"
2784
2787
  }
2785
2788
  },
2786
- end: "(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|^|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+))",
2789
+ end: "(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|^|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as|satisifies)\\s+))",
2787
2790
  patterns: [
2788
2791
  {
2789
2792
  include: "#type"
@@ -3304,13 +3307,16 @@ var repository = {
3304
3307
  }
3305
3308
  },
3306
3309
  {
3307
- begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+",
3310
+ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(as)|(satisfies))\\s+",
3308
3311
  beginCaptures: {
3309
3312
  "1": {
3310
3313
  name: "keyword.control.as.tsx"
3314
+ },
3315
+ "2": {
3316
+ name: "keyword.control.satisfies.tsx"
3311
3317
  }
3312
3318
  },
3313
- end: "(?=^|[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+)|(\\s+\\<))",
3319
+ end: "(?=^|[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as|satisifies)\\s+)|(\\s+\\<))",
3314
3320
  patterns: [
3315
3321
  {
3316
3322
  include: "#type"
package/dist/atd.js CHANGED
@@ -1,114 +1,110 @@
1
- var autoClosingPairs = [
1
+ var name = "ATD";
2
+ var scopeName = "source.atd";
3
+ var fileTypes = [
4
+ "atd"
5
+ ];
6
+ var patterns = [
2
7
  {
3
- open: "{",
4
- close: "}"
8
+ include: "source.ocaml#comments"
5
9
  },
6
10
  {
7
- open: "[",
8
- close: "]"
11
+ include: "source.ocaml#strings"
9
12
  },
10
13
  {
11
- open: "(",
12
- close: ")"
14
+ include: "#annotations"
13
15
  },
14
16
  {
15
- open: "\"",
16
- close: "\"",
17
- notIn: [
18
- "string"
19
- ]
17
+ include: "#definitions"
20
18
  },
21
19
  {
22
- open: "(*",
23
- close: "*",
24
- notIn: [
25
- "string"
26
- ]
20
+ include: "#keywords"
27
21
  },
28
22
  {
29
- open: "[|",
30
- close: "|",
31
- notIn: [
32
- "string"
33
- ]
34
- }
35
- ];
36
- var brackets = [
37
- [
38
- "{",
39
- "}"
40
- ],
41
- [
42
- "[",
43
- "]"
44
- ],
45
- [
46
- "(",
47
- ")"
48
- ],
49
- [
50
- "[|",
51
- "|]"
52
- ]
53
- ];
54
- var comments = {
55
- blockComment: [
56
- "(*",
57
- "*)"
58
- ]
59
- };
60
- var surroundingPairs = [
61
- [
62
- "{",
63
- "}"
64
- ],
65
- [
66
- "[",
67
- "]"
68
- ],
69
- [
70
- "(",
71
- ")"
72
- ],
73
- [
74
- "'",
75
- "'"
76
- ],
77
- [
78
- "\"",
79
- "\""
80
- ]
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 = [
23
+ include: "#types"
24
+ },
88
25
  {
89
- beforeText: "\\(\\*\\*",
90
- afterText: "\\*\\)",
91
- action: {
92
- indent: "none",
93
- appendText: " "
94
- }
26
+ include: "source.ocaml#operators"
95
27
  },
96
28
  {
97
- beforeText: "\\(\\*",
98
- afterText: "\\*\\)",
99
- action: {
100
- indent: "none",
101
- appendText: " "
29
+ include: "source.ocaml#identifiers"
30
+ }
31
+ ];
32
+ var repository = {
33
+ annotations: {
34
+ patterns: [
35
+ {
36
+ begin: "(<)[[:space:]]*([[:lower:]_][[:word:]']*)",
37
+ end: ">",
38
+ beginCaptures: {
39
+ "1": {
40
+ name: "keyword.other.atd"
41
+ },
42
+ "2": {
43
+ name: "keyword.other.atd"
44
+ }
45
+ },
46
+ endCaptures: [
47
+ {
48
+ name: "keyword.other.atd"
49
+ }
50
+ ],
51
+ patterns: [
52
+ {
53
+ include: "$self"
54
+ }
55
+ ]
56
+ }
57
+ ]
58
+ },
59
+ definitions: {
60
+ match: "\\b(type)[[:space:]]+('[[:alpha:]][[:word:]']*[[:space:]]+|\\(.*\\)[[:space:]]*)?([[:lower:]_][[:word:]']*)",
61
+ captures: {
62
+ "1": {
63
+ name: "keyword.other.atd"
64
+ },
65
+ "2": {
66
+ patterns: [
67
+ {
68
+ include: "$self"
69
+ }
70
+ ]
71
+ },
72
+ "3": {
73
+ name: "entity.name.function.binding.atd"
74
+ }
102
75
  }
76
+ },
77
+ keywords: {
78
+ name: "keyword.other.atd",
79
+ match: "\\b(type|of|inherit)\\b(?!')"
80
+ },
81
+ types: {
82
+ patterns: [
83
+ {
84
+ comment: "type parameter",
85
+ name: "storage.type.ocaml.atd",
86
+ match: "'[[:alpha:]][[:word:]']*\\b"
87
+ },
88
+ {
89
+ comment: "builtin type",
90
+ name: "support.type.ocaml.atd",
91
+ match: "\\b(unit|bool|int|float|string|abstract)\\b"
92
+ }
93
+ ]
103
94
  }
95
+ };
96
+ var information_for_contributors = [
97
+ "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
98
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
99
+ "Once accepted there, we are happy to receive an update request."
104
100
  ];
105
101
  var atd = {
106
- autoClosingPairs: autoClosingPairs,
107
- brackets: brackets,
108
- comments: comments,
109
- surroundingPairs: surroundingPairs,
110
- indentationRules: indentationRules,
111
- onEnterRules: onEnterRules
102
+ name: name,
103
+ scopeName: scopeName,
104
+ fileTypes: fileTypes,
105
+ patterns: patterns,
106
+ repository: repository,
107
+ information_for_contributors: information_for_contributors
112
108
  };
113
109
 
114
- export { autoClosingPairs, brackets, comments, atd as default, indentationRules, onEnterRules, surroundingPairs };
110
+ export { atd as default, fileTypes, information_for_contributors, name, patterns, repository, scopeName };
package/dist/atd2.js CHANGED
@@ -1,110 +1,114 @@
1
- var name = "ATD";
2
- var scopeName = "source.atd";
3
- var fileTypes = [
4
- "atd"
5
- ];
6
- var patterns = [
7
- {
8
- include: "source.ocaml#comments"
9
- },
10
- {
11
- include: "source.ocaml#strings"
12
- },
1
+ var autoClosingPairs = [
13
2
  {
14
- include: "#annotations"
3
+ open: "{",
4
+ close: "}"
15
5
  },
16
6
  {
17
- include: "#definitions"
7
+ open: "[",
8
+ close: "]"
18
9
  },
19
10
  {
20
- include: "#keywords"
11
+ open: "(",
12
+ close: ")"
21
13
  },
22
14
  {
23
- include: "#types"
15
+ open: "\"",
16
+ close: "\"",
17
+ notIn: [
18
+ "string"
19
+ ]
24
20
  },
25
21
  {
26
- include: "source.ocaml#operators"
22
+ open: "(*",
23
+ close: "*",
24
+ notIn: [
25
+ "string"
26
+ ]
27
27
  },
28
28
  {
29
- include: "source.ocaml#identifiers"
29
+ open: "[|",
30
+ close: "|",
31
+ notIn: [
32
+ "string"
33
+ ]
30
34
  }
31
35
  ];
32
- var repository = {
33
- annotations: {
34
- patterns: [
35
- {
36
- begin: "(<)[[:space:]]*([[:lower:]_][[:word:]']*)",
37
- end: ">",
38
- beginCaptures: {
39
- "1": {
40
- name: "keyword.other.atd"
41
- },
42
- "2": {
43
- name: "keyword.other.atd"
44
- }
45
- },
46
- endCaptures: [
47
- {
48
- name: "keyword.other.atd"
49
- }
50
- ],
51
- patterns: [
52
- {
53
- include: "$self"
54
- }
55
- ]
56
- }
57
- ]
58
- },
59
- definitions: {
60
- match: "\\b(type)[[:space:]]+('[[:alpha:]][[:word:]']*[[:space:]]+|\\(.*\\)[[:space:]]*)?([[:lower:]_][[:word:]']*)",
61
- captures: {
62
- "1": {
63
- name: "keyword.other.atd"
64
- },
65
- "2": {
66
- patterns: [
67
- {
68
- include: "$self"
69
- }
70
- ]
71
- },
72
- "3": {
73
- name: "entity.name.function.binding.atd"
74
- }
36
+ var brackets = [
37
+ [
38
+ "{",
39
+ "}"
40
+ ],
41
+ [
42
+ "[",
43
+ "]"
44
+ ],
45
+ [
46
+ "(",
47
+ ")"
48
+ ],
49
+ [
50
+ "[|",
51
+ "|]"
52
+ ]
53
+ ];
54
+ var comments = {
55
+ blockComment: [
56
+ "(*",
57
+ "*)"
58
+ ]
59
+ };
60
+ var surroundingPairs = [
61
+ [
62
+ "{",
63
+ "}"
64
+ ],
65
+ [
66
+ "[",
67
+ "]"
68
+ ],
69
+ [
70
+ "(",
71
+ ")"
72
+ ],
73
+ [
74
+ "'",
75
+ "'"
76
+ ],
77
+ [
78
+ "\"",
79
+ "\""
80
+ ]
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: " "
75
94
  }
76
95
  },
77
- keywords: {
78
- name: "keyword.other.atd",
79
- match: "\\b(type|of|inherit)\\b(?!')"
80
- },
81
- types: {
82
- patterns: [
83
- {
84
- comment: "type parameter",
85
- name: "storage.type.ocaml.atd",
86
- match: "'[[:alpha:]][[:word:]']*\\b"
87
- },
88
- {
89
- comment: "builtin type",
90
- name: "support.type.ocaml.atd",
91
- match: "\\b(unit|bool|int|float|string|abstract)\\b"
92
- }
93
- ]
96
+ {
97
+ beforeText: "\\(\\*",
98
+ afterText: "\\*\\)",
99
+ action: {
100
+ indent: "none",
101
+ appendText: " "
102
+ }
94
103
  }
95
- };
96
- var information_for_contributors = [
97
- "This file has been converted from https://github.com/ocamllabs/vscode-ocaml-platform/blob/master/",
98
- "If you want to provide a fix or improvement, please create a pull request against the original repository.",
99
- "Once accepted there, we are happy to receive an update request."
100
104
  ];
101
105
  var atd = {
102
- name: name,
103
- scopeName: scopeName,
104
- fileTypes: fileTypes,
105
- patterns: patterns,
106
- repository: repository,
107
- information_for_contributors: information_for_contributors
106
+ autoClosingPairs: autoClosingPairs,
107
+ brackets: brackets,
108
+ comments: comments,
109
+ surroundingPairs: surroundingPairs,
110
+ indentationRules: indentationRules,
111
+ onEnterRules: onEnterRules
108
112
  };
109
113
 
110
- export { atd as default, fileTypes, information_for_contributors, name, patterns, repository, scopeName };
114
+ export { autoClosingPairs, brackets, comments, atd as default, indentationRules, onEnterRules, surroundingPairs };