@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
@@ -104,13 +104,94 @@ var folding = {
104
104
  end: "^\\s*//\\s*#?endregion\\b"
105
105
  }
106
106
  };
107
+ var wordPattern = {
108
+ pattern: "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)"
109
+ };
110
+ var indentationRules = {
111
+ decreaseIndentPattern: {
112
+ pattern: "^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"
113
+ },
114
+ increaseIndentPattern: {
115
+ pattern: "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
116
+ },
117
+ unIndentedLinePattern: {
118
+ pattern: "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
119
+ }
120
+ };
121
+ var onEnterRules = [
122
+ {
123
+ beforeText: {
124
+ pattern: "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
125
+ },
126
+ afterText: {
127
+ pattern: "^\\s*\\*/$"
128
+ },
129
+ action: {
130
+ indent: "indentOutdent",
131
+ appendText: " * "
132
+ }
133
+ },
134
+ {
135
+ beforeText: {
136
+ pattern: "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
137
+ },
138
+ action: {
139
+ indent: "none",
140
+ appendText: " * "
141
+ }
142
+ },
143
+ {
144
+ beforeText: {
145
+ pattern: "^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
146
+ },
147
+ previousLineText: {
148
+ pattern: "(?=^(\\s*(/\\*\\*|\\*)).*)(?=(?!(\\s*\\*/)))"
149
+ },
150
+ action: {
151
+ indent: "none",
152
+ appendText: "* "
153
+ }
154
+ },
155
+ {
156
+ beforeText: {
157
+ pattern: "^(\\t|[ ])*[ ]\\*/\\s*$"
158
+ },
159
+ action: {
160
+ indent: "none",
161
+ removeText: 1
162
+ }
163
+ },
164
+ {
165
+ beforeText: {
166
+ pattern: "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$"
167
+ },
168
+ action: {
169
+ indent: "none",
170
+ removeText: 1
171
+ }
172
+ },
173
+ {
174
+ beforeText: {
175
+ pattern: "^\\s*(\\bcase\\s.+:|\\bdefault:)$"
176
+ },
177
+ afterText: {
178
+ pattern: "^(?!\\s*(\\bcase\\b|\\bdefault\\b))"
179
+ },
180
+ action: {
181
+ indent: "indent"
182
+ }
183
+ }
184
+ ];
107
185
  var typescript = {
108
186
  comments: comments,
109
187
  brackets: brackets,
110
188
  autoClosingPairs: autoClosingPairs,
111
189
  surroundingPairs: surroundingPairs,
112
190
  autoCloseBefore: autoCloseBefore,
113
- folding: folding
191
+ folding: folding,
192
+ wordPattern: wordPattern,
193
+ indentationRules: indentationRules,
194
+ onEnterRules: onEnterRules
114
195
  };
115
196
 
116
- export { autoCloseBefore, autoClosingPairs, brackets, comments, typescript as default, folding, surroundingPairs };
197
+ export { autoCloseBefore, autoClosingPairs, brackets, comments, typescript as default, folding, indentationRules, onEnterRules, surroundingPairs, wordPattern };
@@ -0,0 +1,312 @@
1
+ var Constructor = {
2
+ prefix: "ctor",
3
+ body: [
4
+ "/**",
5
+ " *",
6
+ " */",
7
+ "constructor() {",
8
+ "\tsuper();",
9
+ "\t$0",
10
+ "}"
11
+ ],
12
+ description: "Constructor"
13
+ };
14
+ var typescript = {
15
+ Constructor: Constructor,
16
+ "Class Definition": {
17
+ prefix: "class",
18
+ body: [
19
+ "class ${1:name} {",
20
+ "\tconstructor(${2:parameters}) {",
21
+ "\t\t$0",
22
+ "\t}",
23
+ "}"
24
+ ],
25
+ description: "Class Definition"
26
+ },
27
+ "Public Method Definition": {
28
+ prefix: "public method",
29
+ body: [
30
+ "/**",
31
+ " * ${1:name}",
32
+ " */",
33
+ "public ${1:name}() {",
34
+ "\t$0",
35
+ "}"
36
+ ],
37
+ description: "Public Method Definition"
38
+ },
39
+ "Private Method Definition": {
40
+ prefix: "private method",
41
+ body: [
42
+ "private ${1:name}() {",
43
+ "\t$0",
44
+ "}"
45
+ ],
46
+ description: "Private Method Definition"
47
+ },
48
+ "Import external module.": {
49
+ prefix: "import statement",
50
+ body: [
51
+ "import { $0 } from \"${1:module}\";"
52
+ ],
53
+ description: "Import external module."
54
+ },
55
+ "Property getter": {
56
+ prefix: "get",
57
+ body: [
58
+ "",
59
+ "public get ${1:value}() : ${2:string} {",
60
+ "\t${3:return $0}",
61
+ "}",
62
+ ""
63
+ ],
64
+ description: "Property getter"
65
+ },
66
+ "Log to the console": {
67
+ prefix: "log",
68
+ body: [
69
+ "console.log($1);",
70
+ "$0"
71
+ ],
72
+ description: "Log to the console"
73
+ },
74
+ "Log warning to console": {
75
+ prefix: "warn",
76
+ body: [
77
+ "console.warn($1);",
78
+ "$0"
79
+ ],
80
+ description: "Log warning to the console"
81
+ },
82
+ "Log error to console": {
83
+ prefix: "error",
84
+ body: [
85
+ "console.error($1);",
86
+ "$0"
87
+ ],
88
+ description: "Log error to the console"
89
+ },
90
+ "Define a full property": {
91
+ prefix: "prop",
92
+ body: [
93
+ "",
94
+ "private _${1:value} : ${2:string};",
95
+ "public get ${1:value}() : ${2:string} {",
96
+ "\treturn this._${1:value};",
97
+ "}",
98
+ "public set ${1:value}(v : ${2:string}) {",
99
+ "\tthis._${1:value} = v;",
100
+ "}",
101
+ ""
102
+ ],
103
+ description: "Define a full property"
104
+ },
105
+ "Triple-slash reference": {
106
+ prefix: "ref",
107
+ body: [
108
+ "/// <reference path=\"$1\" />",
109
+ "$0"
110
+ ],
111
+ description: "Triple-slash reference"
112
+ },
113
+ "Property setter": {
114
+ prefix: "set",
115
+ body: [
116
+ "",
117
+ "public set ${1:value}(v : ${2:string}) {",
118
+ "\tthis.$3 = v;",
119
+ "}",
120
+ ""
121
+ ],
122
+ description: "Property setter"
123
+ },
124
+ "Throw Exception": {
125
+ prefix: "throw",
126
+ body: [
127
+ "throw new Error(\"$1\");",
128
+ "$0"
129
+ ],
130
+ description: "Throw Exception"
131
+ },
132
+ "For Loop": {
133
+ prefix: "for",
134
+ body: [
135
+ "for (let ${1:index} = 0; ${1:index} < ${2:array}.length; ${1:index}++) {",
136
+ "\tconst ${3:element} = ${2:array}[${1:index}];",
137
+ "\t$TM_SELECTED_TEXT$0",
138
+ "}"
139
+ ],
140
+ description: "For Loop"
141
+ },
142
+ "For-Each Loop using =>": {
143
+ prefix: "foreach =>",
144
+ body: [
145
+ "${1:array}.forEach(${2:element} => {",
146
+ "\t$TM_SELECTED_TEXT$0",
147
+ "});"
148
+ ],
149
+ description: "For-Each Loop using =>"
150
+ },
151
+ "For-In Loop": {
152
+ prefix: "forin",
153
+ body: [
154
+ "for (const ${1:key} in ${2:object}) {",
155
+ "\tif (Object.prototype.hasOwnProperty.call(${2:object}, ${1:key})) {",
156
+ "\t\tconst ${3:element} = ${2:object}[${1:key}];",
157
+ "\t\t$TM_SELECTED_TEXT$0",
158
+ "\t}",
159
+ "}"
160
+ ],
161
+ description: "For-In Loop"
162
+ },
163
+ "For-Of Loop": {
164
+ prefix: "forof",
165
+ body: [
166
+ "for (const ${1:iterator} of ${2:object}) {",
167
+ "\t$TM_SELECTED_TEXT$0",
168
+ "}"
169
+ ],
170
+ description: "For-Of Loop"
171
+ },
172
+ "For-Await-Of Loop": {
173
+ prefix: "forawaitof",
174
+ body: [
175
+ "for await (const ${1:iterator} of ${2:object}) {",
176
+ "\t$TM_SELECTED_TEXT$0",
177
+ "}"
178
+ ],
179
+ description: "For-Await-Of Loop"
180
+ },
181
+ "Function Statement": {
182
+ prefix: "function",
183
+ body: [
184
+ "function ${1:name}(${2:params}:${3:type}) {",
185
+ "\t$TM_SELECTED_TEXT$0",
186
+ "}"
187
+ ],
188
+ description: "Function Statement"
189
+ },
190
+ "If Statement": {
191
+ prefix: "if",
192
+ body: [
193
+ "if (${1:condition}) {",
194
+ "\t$TM_SELECTED_TEXT$0",
195
+ "}"
196
+ ],
197
+ description: "If Statement"
198
+ },
199
+ "If-Else Statement": {
200
+ prefix: "ifelse",
201
+ body: [
202
+ "if (${1:condition}) {",
203
+ "\t$TM_SELECTED_TEXT$0",
204
+ "} else {",
205
+ "\t",
206
+ "}"
207
+ ],
208
+ description: "If-Else Statement"
209
+ },
210
+ "New Statement": {
211
+ prefix: "new",
212
+ body: [
213
+ "const ${1:name} = new ${2:type}(${3:arguments});$0"
214
+ ],
215
+ description: "New Statement"
216
+ },
217
+ "Switch Statement": {
218
+ prefix: "switch",
219
+ body: [
220
+ "switch (${1:key}) {",
221
+ "\tcase ${2:value}:",
222
+ "\t\t$0",
223
+ "\t\tbreak;",
224
+ "",
225
+ "\tdefault:",
226
+ "\t\tbreak;",
227
+ "}"
228
+ ],
229
+ description: "Switch Statement"
230
+ },
231
+ "While Statement": {
232
+ prefix: "while",
233
+ body: [
234
+ "while (${1:condition}) {",
235
+ "\t$TM_SELECTED_TEXT$0",
236
+ "}"
237
+ ],
238
+ description: "While Statement"
239
+ },
240
+ "Do-While Statement": {
241
+ prefix: "dowhile",
242
+ body: [
243
+ "do {",
244
+ "\t$TM_SELECTED_TEXT$0",
245
+ "} while (${1:condition});"
246
+ ],
247
+ description: "Do-While Statement"
248
+ },
249
+ "Try-Catch Statement": {
250
+ prefix: "trycatch",
251
+ body: [
252
+ "try {",
253
+ "\t$TM_SELECTED_TEXT$0",
254
+ "} catch (${1:error}) {",
255
+ "\t",
256
+ "}"
257
+ ],
258
+ description: "Try-Catch Statement"
259
+ },
260
+ "Set Timeout Function": {
261
+ prefix: "settimeout",
262
+ body: [
263
+ "setTimeout(() => {",
264
+ "\t$TM_SELECTED_TEXT$0",
265
+ "}, ${1:timeout});"
266
+ ],
267
+ description: "Set Timeout Function"
268
+ },
269
+ "Region Start": {
270
+ prefix: "#region",
271
+ body: [
272
+ "//#region $0"
273
+ ],
274
+ description: "Folding Region Start"
275
+ },
276
+ "Region End": {
277
+ prefix: "#endregion",
278
+ body: [
279
+ "//#endregion"
280
+ ],
281
+ description: "Folding Region End"
282
+ },
283
+ "new Promise": {
284
+ prefix: "newpromise",
285
+ body: [
286
+ "new Promise<${1:void}>((resolve, reject) => {",
287
+ "\t$TM_SELECTED_TEXT$0",
288
+ "})"
289
+ ],
290
+ description: "Create a new Promise"
291
+ },
292
+ "Async Function Statement": {
293
+ prefix: "async function",
294
+ body: [
295
+ "async function ${1:name}(${2:params}:${3:type}) {",
296
+ "\t$TM_SELECTED_TEXT$0",
297
+ "}"
298
+ ],
299
+ description: "Async Function Statement"
300
+ },
301
+ "Async Function Expression": {
302
+ prefix: "async arrow function",
303
+ body: [
304
+ "async (${1:params}:${2:type}) => {",
305
+ "\t$TM_SELECTED_TEXT$0",
306
+ "}"
307
+ ],
308
+ description: "Async Function Expression"
309
+ }
310
+ };
311
+
312
+ export { Constructor, typescript as default };
@@ -104,13 +104,94 @@ var folding = {
104
104
  end: "^\\s*//\\s*#?endregion\\b"
105
105
  }
106
106
  };
107
+ var wordPattern = {
108
+ pattern: "(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>/\\?\\s]+)"
109
+ };
110
+ var indentationRules = {
111
+ decreaseIndentPattern: {
112
+ pattern: "^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"
113
+ },
114
+ increaseIndentPattern: {
115
+ pattern: "^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"
116
+ },
117
+ unIndentedLinePattern: {
118
+ pattern: "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
119
+ }
120
+ };
121
+ var onEnterRules = [
122
+ {
123
+ beforeText: {
124
+ pattern: "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
125
+ },
126
+ afterText: {
127
+ pattern: "^\\s*\\*/$"
128
+ },
129
+ action: {
130
+ indent: "indentOutdent",
131
+ appendText: " * "
132
+ }
133
+ },
134
+ {
135
+ beforeText: {
136
+ pattern: "^\\s*/\\*\\*(?!/)([^\\*]|\\*(?!/))*$"
137
+ },
138
+ action: {
139
+ indent: "none",
140
+ appendText: " * "
141
+ }
142
+ },
143
+ {
144
+ beforeText: {
145
+ pattern: "^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$"
146
+ },
147
+ previousLineText: {
148
+ pattern: "(?=^(\\s*(/\\*\\*|\\*)).*)(?=(?!(\\s*\\*/)))"
149
+ },
150
+ action: {
151
+ indent: "none",
152
+ appendText: "* "
153
+ }
154
+ },
155
+ {
156
+ beforeText: {
157
+ pattern: "^(\\t|[ ])*[ ]\\*/\\s*$"
158
+ },
159
+ action: {
160
+ indent: "none",
161
+ removeText: 1
162
+ }
163
+ },
164
+ {
165
+ beforeText: {
166
+ pattern: "^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$"
167
+ },
168
+ action: {
169
+ indent: "none",
170
+ removeText: 1
171
+ }
172
+ },
173
+ {
174
+ beforeText: {
175
+ pattern: "^\\s*(\\bcase\\s.+:|\\bdefault:)$"
176
+ },
177
+ afterText: {
178
+ pattern: "^(?!\\s*(\\bcase\\b|\\bdefault\\b))"
179
+ },
180
+ action: {
181
+ indent: "indent"
182
+ }
183
+ }
184
+ ];
107
185
  var typescriptreact = {
108
186
  comments: comments,
109
187
  brackets: brackets,
110
188
  autoClosingPairs: autoClosingPairs,
111
189
  surroundingPairs: surroundingPairs,
112
190
  autoCloseBefore: autoCloseBefore,
113
- folding: folding
191
+ folding: folding,
192
+ wordPattern: wordPattern,
193
+ indentationRules: indentationRules,
194
+ onEnterRules: onEnterRules
114
195
  };
115
196
 
116
- export { autoCloseBefore, autoClosingPairs, brackets, comments, typescriptreact as default, folding, surroundingPairs };
197
+ export { autoCloseBefore, autoClosingPairs, brackets, comments, typescriptreact as default, folding, indentationRules, onEnterRules, surroundingPairs, wordPattern };