@codingame/monaco-vscode-standalone-languages 23.1.0 → 23.2.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 (165) hide show
  1. package/index.js +48 -82
  2. package/package.json +2 -2
  3. package/_.contribution.js +0 -74
  4. package/abap/abap.contribution.js +0 -19
  5. package/abap/abap.js +0 -1406
  6. package/apex/apex.contribution.js +0 -20
  7. package/apex/apex.js +0 -338
  8. package/azcli/azcli.contribution.js +0 -19
  9. package/azcli/azcli.js +0 -76
  10. package/bat/bat.contribution.js +0 -19
  11. package/bat/bat.js +0 -108
  12. package/bicep/bicep.contribution.js +0 -19
  13. package/bicep/bicep.js +0 -117
  14. package/cameligo/cameligo.contribution.js +0 -19
  15. package/cameligo/cameligo.js +0 -182
  16. package/clojure/clojure.contribution.js +0 -19
  17. package/clojure/clojure.js +0 -769
  18. package/coffee/coffee.contribution.js +0 -20
  19. package/coffee/coffee.js +0 -240
  20. package/cpp/cpp.contribution.js +0 -29
  21. package/cpp/cpp.js +0 -397
  22. package/csharp/csharp.contribution.js +0 -19
  23. package/csharp/csharp.js +0 -334
  24. package/csp/csp.contribution.js +0 -19
  25. package/csp/csp.js +0 -61
  26. package/css/css.contribution.js +0 -20
  27. package/css/css.js +0 -193
  28. package/cypher/cypher.contribution.js +0 -19
  29. package/cypher/cypher.js +0 -271
  30. package/dart/dart.contribution.js +0 -20
  31. package/dart/dart.js +0 -289
  32. package/dockerfile/dockerfile.contribution.js +0 -20
  33. package/dockerfile/dockerfile.js +0 -138
  34. package/ecl/ecl.contribution.js +0 -19
  35. package/ecl/ecl.js +0 -464
  36. package/elixir/elixir.contribution.js +0 -19
  37. package/elixir/elixir.js +0 -577
  38. package/flow9/flow9.contribution.js +0 -19
  39. package/flow9/flow9.js +0 -150
  40. package/freemarker2/freemarker2.contribution.js +0 -73
  41. package/freemarker2/freemarker2.js +0 -1016
  42. package/fsharp/fsharp.contribution.js +0 -19
  43. package/fsharp/fsharp.js +0 -225
  44. package/go/go.contribution.js +0 -19
  45. package/go/go.js +0 -226
  46. package/graphql/graphql.contribution.js +0 -20
  47. package/graphql/graphql.js +0 -159
  48. package/handlebars/handlebars.contribution.js +0 -20
  49. package/handlebars/handlebars.js +0 -439
  50. package/hcl/hcl.contribution.js +0 -19
  51. package/hcl/hcl.js +0 -191
  52. package/html/html.contribution.js +0 -20
  53. package/html/html.js +0 -328
  54. package/ini/ini.contribution.js +0 -20
  55. package/ini/ini.js +0 -79
  56. package/java/java.contribution.js +0 -20
  57. package/java/java.js +0 -240
  58. package/javascript/javascript.contribution.js +0 -22
  59. package/javascript/javascript.js +0 -77
  60. package/julia/julia.contribution.js +0 -19
  61. package/julia/julia.js +0 -519
  62. package/kotlin/kotlin.contribution.js +0 -20
  63. package/kotlin/kotlin.js +0 -261
  64. package/less/less.contribution.js +0 -20
  65. package/less/less.js +0 -169
  66. package/lexon/lexon.contribution.js +0 -19
  67. package/lexon/lexon.js +0 -165
  68. package/liquid/liquid.contribution.js +0 -20
  69. package/liquid/liquid.js +0 -260
  70. package/lua/lua.contribution.js +0 -19
  71. package/lua/lua.js +0 -170
  72. package/m3/m3.contribution.js +0 -19
  73. package/m3/m3.js +0 -218
  74. package/markdown/markdown.contribution.js +0 -19
  75. package/markdown/markdown.js +0 -237
  76. package/mdx/mdx.contribution.js +0 -19
  77. package/mdx/mdx.js +0 -184
  78. package/mips/mips.contribution.js +0 -20
  79. package/mips/mips.js +0 -206
  80. package/msdax/msdax.contribution.js +0 -19
  81. package/msdax/msdax.js +0 -383
  82. package/mysql/mysql.contribution.js +0 -19
  83. package/mysql/mysql.js +0 -886
  84. package/objective-c/objective-c.contribution.js +0 -19
  85. package/objective-c/objective-c.js +0 -191
  86. package/pascal/pascal.contribution.js +0 -20
  87. package/pascal/pascal.js +0 -259
  88. package/pascaligo/pascaligo.contribution.js +0 -19
  89. package/pascaligo/pascaligo.js +0 -172
  90. package/perl/perl.contribution.js +0 -19
  91. package/perl/perl.js +0 -634
  92. package/pgsql/pgsql.contribution.js +0 -19
  93. package/pgsql/pgsql.js +0 -859
  94. package/php/php.contribution.js +0 -20
  95. package/php/php.js +0 -508
  96. package/pla/pla.contribution.js +0 -18
  97. package/pla/pla.js +0 -145
  98. package/postiats/postiats.contribution.js +0 -19
  99. package/postiats/postiats.js +0 -915
  100. package/powerquery/powerquery.contribution.js +0 -19
  101. package/powerquery/powerquery.js +0 -898
  102. package/powershell/powershell.contribution.js +0 -19
  103. package/powershell/powershell.js +0 -247
  104. package/protobuf/protobuf.contribution.js +0 -19
  105. package/protobuf/protobuf.js +0 -428
  106. package/pug/pug.contribution.js +0 -19
  107. package/pug/pug.js +0 -410
  108. package/python/python.contribution.js +0 -20
  109. package/python/python.js +0 -320
  110. package/qsharp/qsharp.contribution.js +0 -19
  111. package/qsharp/qsharp.js +0 -309
  112. package/r/r.contribution.js +0 -19
  113. package/r/r.js +0 -251
  114. package/razor/razor.contribution.js +0 -20
  115. package/razor/razor.js +0 -570
  116. package/redis/redis.contribution.js +0 -19
  117. package/redis/redis.js +0 -310
  118. package/redshift/redshift.contribution.js +0 -19
  119. package/redshift/redshift.js +0 -817
  120. package/restructuredtext/restructuredtext.contribution.js +0 -19
  121. package/restructuredtext/restructuredtext.js +0 -182
  122. package/ruby/ruby.contribution.js +0 -20
  123. package/ruby/ruby.js +0 -519
  124. package/rust/rust.contribution.js +0 -19
  125. package/rust/rust.js +0 -351
  126. package/sb/sb.contribution.js +0 -19
  127. package/sb/sb.js +0 -123
  128. package/scala/scala.contribution.js +0 -20
  129. package/scala/scala.js +0 -378
  130. package/scheme/scheme.contribution.js +0 -19
  131. package/scheme/scheme.js +0 -116
  132. package/scss/scss.contribution.js +0 -20
  133. package/scss/scss.js +0 -268
  134. package/shell/shell.contribution.js +0 -19
  135. package/shell/shell.js +0 -229
  136. package/solidity/solidity.contribution.js +0 -19
  137. package/solidity/solidity.js +0 -1375
  138. package/sophia/sophia.contribution.js +0 -19
  139. package/sophia/sophia.js +0 -207
  140. package/sparql/sparql.contribution.js +0 -19
  141. package/sparql/sparql.js +0 -209
  142. package/sql/sql.contribution.js +0 -19
  143. package/sql/sql.js +0 -861
  144. package/st/st.contribution.js +0 -19
  145. package/st/st.js +0 -424
  146. package/swift/swift.contribution.js +0 -20
  147. package/swift/swift.js +0 -320
  148. package/systemverilog/systemverilog.contribution.js +0 -29
  149. package/systemverilog/systemverilog.js +0 -584
  150. package/tcl/tcl.contribution.js +0 -19
  151. package/tcl/tcl.js +0 -240
  152. package/twig/twig.contribution.js +0 -20
  153. package/twig/twig.js +0 -400
  154. package/typescript/typescript.contribution.js +0 -20
  155. package/typescript/typescript.js +0 -362
  156. package/typespec/typespec.contribution.js +0 -19
  157. package/typespec/typespec.js +0 -135
  158. package/vb/vb.contribution.js +0 -19
  159. package/vb/vb.js +0 -380
  160. package/wgsl/wgsl.contribution.js +0 -19
  161. package/wgsl/wgsl.js +0 -461
  162. package/xml/xml.contribution.js +0 -39
  163. package/xml/xml.js +0 -114
  164. package/yaml/yaml.contribution.js +0 -20
  165. package/yaml/yaml.js +0 -225
package/razor/razor.js DELETED
@@ -1,570 +0,0 @@
1
- import * as monaco_editor_core_star from 'monaco-editor';
2
-
3
- /*!-----------------------------------------------------------------------------
4
- * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Version: 0.54.0(undefined)
6
- * Released under the MIT license
7
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
8
- *-----------------------------------------------------------------------------*/
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget);
23
-
24
- // src/fillers/monaco-editor-core.ts
25
- var monaco_editor_core_exports = {};
26
- __reExport(monaco_editor_core_exports, monaco_editor_core_star);
27
-
28
- // src/basic-languages/razor/razor.ts
29
- var EMPTY_ELEMENTS = [
30
- "area",
31
- "base",
32
- "br",
33
- "col",
34
- "embed",
35
- "hr",
36
- "img",
37
- "input",
38
- "keygen",
39
- "link",
40
- "menuitem",
41
- "meta",
42
- "param",
43
- "source",
44
- "track",
45
- "wbr"
46
- ];
47
- var conf = {
48
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
49
- comments: {
50
- blockComment: ["<!--", "-->"]
51
- },
52
- brackets: [
53
- ["<!--", "-->"],
54
- ["<", ">"],
55
- ["{", "}"],
56
- ["(", ")"]
57
- ],
58
- autoClosingPairs: [
59
- { open: "{", close: "}" },
60
- { open: "[", close: "]" },
61
- { open: "(", close: ")" },
62
- { open: '"', close: '"' },
63
- { open: "'", close: "'" }
64
- ],
65
- surroundingPairs: [
66
- { open: '"', close: '"' },
67
- { open: "'", close: "'" },
68
- { open: "<", close: ">" }
69
- ],
70
- onEnterRules: [
71
- {
72
- beforeText: new RegExp(
73
- `<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
74
- "i"
75
- ),
76
- afterText: /^<\/(\w[\w\d]*)\s*>$/i,
77
- action: {
78
- indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
79
- }
80
- },
81
- {
82
- beforeText: new RegExp(
83
- `<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
84
- "i"
85
- ),
86
- action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
87
- }
88
- ]
89
- };
90
- var language = {
91
- defaultToken: "",
92
- tokenPostfix: "",
93
- // ignoreCase: true,
94
- // The main tokenizer for our languages
95
- tokenizer: {
96
- root: [
97
- [/@@@@/],
98
- // text
99
- [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.root" }],
100
- [/<!DOCTYPE/, "metatag.html", "@doctype"],
101
- [/<!--/, "comment.html", "@comment"],
102
- [/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
103
- [/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
104
- [/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
105
- [/(<)([:\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
106
- [/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
107
- [/</, "delimiter.html"],
108
- [/[ \t\r\n]+/],
109
- // whitespace
110
- [/[^<@]+/]
111
- // text
112
- ],
113
- doctype: [
114
- [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.comment" }],
115
- [/[^>]+/, "metatag.content.html"],
116
- [/>/, "metatag.html", "@pop"]
117
- ],
118
- comment: [
119
- [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.comment" }],
120
- [/-->/, "comment.html", "@pop"],
121
- [/[^-]+/, "comment.content.html"],
122
- [/./, "comment.content.html"]
123
- ],
124
- otherTag: [
125
- [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.otherTag" }],
126
- [/\/?>/, "delimiter.html", "@pop"],
127
- [/"([^"]*)"/, "attribute.value"],
128
- [/'([^']*)'/, "attribute.value"],
129
- [/[\w\-]+/, "attribute.name"],
130
- [/=/, "delimiter"],
131
- [/[ \t\r\n]+/]
132
- // whitespace
133
- ],
134
- // -- BEGIN <script> tags handling
135
- // After <script
136
- script: [
137
- [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.script" }],
138
- [/type/, "attribute.name", "@scriptAfterType"],
139
- [/"([^"]*)"/, "attribute.value"],
140
- [/'([^']*)'/, "attribute.value"],
141
- [/[\w\-]+/, "attribute.name"],
142
- [/=/, "delimiter"],
143
- [
144
- />/,
145
- {
146
- token: "delimiter.html",
147
- next: "@scriptEmbedded.text/javascript",
148
- nextEmbedded: "text/javascript"
149
- }
150
- ],
151
- [/[ \t\r\n]+/],
152
- // whitespace
153
- [
154
- /(<\/)(script\s*)(>)/,
155
- ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
156
- ]
157
- ],
158
- // After <script ... type
159
- scriptAfterType: [
160
- [
161
- /@[^@]/,
162
- {
163
- token: "@rematch",
164
- switchTo: "@razorInSimpleState.scriptAfterType"
165
- }
166
- ],
167
- [/=/, "delimiter", "@scriptAfterTypeEquals"],
168
- [
169
- />/,
170
- {
171
- token: "delimiter.html",
172
- next: "@scriptEmbedded.text/javascript",
173
- nextEmbedded: "text/javascript"
174
- }
175
- ],
176
- // cover invalid e.g. <script type>
177
- [/[ \t\r\n]+/],
178
- // whitespace
179
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
180
- ],
181
- // After <script ... type =
182
- scriptAfterTypeEquals: [
183
- [
184
- /@[^@]/,
185
- {
186
- token: "@rematch",
187
- switchTo: "@razorInSimpleState.scriptAfterTypeEquals"
188
- }
189
- ],
190
- [
191
- /"([^"]*)"/,
192
- {
193
- token: "attribute.value",
194
- switchTo: "@scriptWithCustomType.$1"
195
- }
196
- ],
197
- [
198
- /'([^']*)'/,
199
- {
200
- token: "attribute.value",
201
- switchTo: "@scriptWithCustomType.$1"
202
- }
203
- ],
204
- [
205
- />/,
206
- {
207
- token: "delimiter.html",
208
- next: "@scriptEmbedded.text/javascript",
209
- nextEmbedded: "text/javascript"
210
- }
211
- ],
212
- // cover invalid e.g. <script type=>
213
- [/[ \t\r\n]+/],
214
- // whitespace
215
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
216
- ],
217
- // After <script ... type = $S2
218
- scriptWithCustomType: [
219
- [
220
- /@[^@]/,
221
- {
222
- token: "@rematch",
223
- switchTo: "@razorInSimpleState.scriptWithCustomType.$S2"
224
- }
225
- ],
226
- [
227
- />/,
228
- {
229
- token: "delimiter.html",
230
- next: "@scriptEmbedded.$S2",
231
- nextEmbedded: "$S2"
232
- }
233
- ],
234
- [/"([^"]*)"/, "attribute.value"],
235
- [/'([^']*)'/, "attribute.value"],
236
- [/[\w\-]+/, "attribute.name"],
237
- [/=/, "delimiter"],
238
- [/[ \t\r\n]+/],
239
- // whitespace
240
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
241
- ],
242
- scriptEmbedded: [
243
- [
244
- /@[^@]/,
245
- {
246
- token: "@rematch",
247
- switchTo: "@razorInEmbeddedState.scriptEmbedded.$S2",
248
- nextEmbedded: "@pop"
249
- }
250
- ],
251
- [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
252
- ],
253
- // -- END <script> tags handling
254
- // -- BEGIN <style> tags handling
255
- // After <style
256
- style: [
257
- [/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.style" }],
258
- [/type/, "attribute.name", "@styleAfterType"],
259
- [/"([^"]*)"/, "attribute.value"],
260
- [/'([^']*)'/, "attribute.value"],
261
- [/[\w\-]+/, "attribute.name"],
262
- [/=/, "delimiter"],
263
- [
264
- />/,
265
- {
266
- token: "delimiter.html",
267
- next: "@styleEmbedded.text/css",
268
- nextEmbedded: "text/css"
269
- }
270
- ],
271
- [/[ \t\r\n]+/],
272
- // whitespace
273
- [
274
- /(<\/)(style\s*)(>)/,
275
- ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
276
- ]
277
- ],
278
- // After <style ... type
279
- styleAfterType: [
280
- [
281
- /@[^@]/,
282
- {
283
- token: "@rematch",
284
- switchTo: "@razorInSimpleState.styleAfterType"
285
- }
286
- ],
287
- [/=/, "delimiter", "@styleAfterTypeEquals"],
288
- [
289
- />/,
290
- {
291
- token: "delimiter.html",
292
- next: "@styleEmbedded.text/css",
293
- nextEmbedded: "text/css"
294
- }
295
- ],
296
- // cover invalid e.g. <style type>
297
- [/[ \t\r\n]+/],
298
- // whitespace
299
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
300
- ],
301
- // After <style ... type =
302
- styleAfterTypeEquals: [
303
- [
304
- /@[^@]/,
305
- {
306
- token: "@rematch",
307
- switchTo: "@razorInSimpleState.styleAfterTypeEquals"
308
- }
309
- ],
310
- [
311
- /"([^"]*)"/,
312
- {
313
- token: "attribute.value",
314
- switchTo: "@styleWithCustomType.$1"
315
- }
316
- ],
317
- [
318
- /'([^']*)'/,
319
- {
320
- token: "attribute.value",
321
- switchTo: "@styleWithCustomType.$1"
322
- }
323
- ],
324
- [
325
- />/,
326
- {
327
- token: "delimiter.html",
328
- next: "@styleEmbedded.text/css",
329
- nextEmbedded: "text/css"
330
- }
331
- ],
332
- // cover invalid e.g. <style type=>
333
- [/[ \t\r\n]+/],
334
- // whitespace
335
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
336
- ],
337
- // After <style ... type = $S2
338
- styleWithCustomType: [
339
- [
340
- /@[^@]/,
341
- {
342
- token: "@rematch",
343
- switchTo: "@razorInSimpleState.styleWithCustomType.$S2"
344
- }
345
- ],
346
- [
347
- />/,
348
- {
349
- token: "delimiter.html",
350
- next: "@styleEmbedded.$S2",
351
- nextEmbedded: "$S2"
352
- }
353
- ],
354
- [/"([^"]*)"/, "attribute.value"],
355
- [/'([^']*)'/, "attribute.value"],
356
- [/[\w\-]+/, "attribute.name"],
357
- [/=/, "delimiter"],
358
- [/[ \t\r\n]+/],
359
- // whitespace
360
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
361
- ],
362
- styleEmbedded: [
363
- [
364
- /@[^@]/,
365
- {
366
- token: "@rematch",
367
- switchTo: "@razorInEmbeddedState.styleEmbedded.$S2",
368
- nextEmbedded: "@pop"
369
- }
370
- ],
371
- [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
372
- ],
373
- // -- END <style> tags handling
374
- razorInSimpleState: [
375
- [/@\*/, "comment.cs", "@razorBlockCommentTopLevel"],
376
- [/@[{(]/, "metatag.cs", "@razorRootTopLevel"],
377
- [/(@)(\s*[\w]+)/, ["metatag.cs", { token: "identifier.cs", switchTo: "@$S2.$S3" }]],
378
- [/[})]/, { token: "metatag.cs", switchTo: "@$S2.$S3" }],
379
- [/\*@/, { token: "comment.cs", switchTo: "@$S2.$S3" }]
380
- ],
381
- razorInEmbeddedState: [
382
- [/@\*/, "comment.cs", "@razorBlockCommentTopLevel"],
383
- [/@[{(]/, "metatag.cs", "@razorRootTopLevel"],
384
- [
385
- /(@)(\s*[\w]+)/,
386
- [
387
- "metatag.cs",
388
- {
389
- token: "identifier.cs",
390
- switchTo: "@$S2.$S3",
391
- nextEmbedded: "$S3"
392
- }
393
- ]
394
- ],
395
- [
396
- /[})]/,
397
- {
398
- token: "metatag.cs",
399
- switchTo: "@$S2.$S3",
400
- nextEmbedded: "$S3"
401
- }
402
- ],
403
- [
404
- /\*@/,
405
- {
406
- token: "comment.cs",
407
- switchTo: "@$S2.$S3",
408
- nextEmbedded: "$S3"
409
- }
410
- ]
411
- ],
412
- razorBlockCommentTopLevel: [
413
- [/\*@/, "@rematch", "@pop"],
414
- [/[^*]+/, "comment.cs"],
415
- [/./, "comment.cs"]
416
- ],
417
- razorBlockComment: [
418
- [/\*@/, "comment.cs", "@pop"],
419
- [/[^*]+/, "comment.cs"],
420
- [/./, "comment.cs"]
421
- ],
422
- razorRootTopLevel: [
423
- [/\{/, "delimiter.bracket.cs", "@razorRoot"],
424
- [/\(/, "delimiter.parenthesis.cs", "@razorRoot"],
425
- [/[})]/, "@rematch", "@pop"],
426
- { include: "razorCommon" }
427
- ],
428
- razorRoot: [
429
- [/\{/, "delimiter.bracket.cs", "@razorRoot"],
430
- [/\(/, "delimiter.parenthesis.cs", "@razorRoot"],
431
- [/\}/, "delimiter.bracket.cs", "@pop"],
432
- [/\)/, "delimiter.parenthesis.cs", "@pop"],
433
- { include: "razorCommon" }
434
- ],
435
- razorCommon: [
436
- [
437
- /[a-zA-Z_]\w*/,
438
- {
439
- cases: {
440
- "@razorKeywords": { token: "keyword.cs" },
441
- "@default": "identifier.cs"
442
- }
443
- }
444
- ],
445
- // brackets
446
- [/[\[\]]/, "delimiter.array.cs"],
447
- // whitespace
448
- [/[ \t\r\n]+/],
449
- // comments
450
- [/\/\/.*$/, "comment.cs"],
451
- [/@\*/, "comment.cs", "@razorBlockComment"],
452
- // strings
453
- [/"([^"]*)"/, "string.cs"],
454
- [/'([^']*)'/, "string.cs"],
455
- // simple html
456
- [/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
457
- [/(<)([\w\-]+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
458
- [/(<\/)([\w\-]+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
459
- // delimiters
460
- [/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, "delimiter.cs"],
461
- // numbers
462
- [/\d*\d+[eE]([\-+]?\d+)?/, "number.float.cs"],
463
- [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.cs"],
464
- [/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.cs"],
465
- [/0[0-7']*[0-7]/, "number.octal.cs"],
466
- [/0[bB][0-1']*[0-1]/, "number.binary.cs"],
467
- [/\d[\d']*/, "number.cs"],
468
- [/\d/, "number.cs"]
469
- ]
470
- },
471
- razorKeywords: [
472
- "abstract",
473
- "as",
474
- "async",
475
- "await",
476
- "base",
477
- "bool",
478
- "break",
479
- "by",
480
- "byte",
481
- "case",
482
- "catch",
483
- "char",
484
- "checked",
485
- "class",
486
- "const",
487
- "continue",
488
- "decimal",
489
- "default",
490
- "delegate",
491
- "do",
492
- "double",
493
- "descending",
494
- "explicit",
495
- "event",
496
- "extern",
497
- "else",
498
- "enum",
499
- "false",
500
- "finally",
501
- "fixed",
502
- "float",
503
- "for",
504
- "foreach",
505
- "from",
506
- "goto",
507
- "group",
508
- "if",
509
- "implicit",
510
- "in",
511
- "int",
512
- "interface",
513
- "internal",
514
- "into",
515
- "is",
516
- "lock",
517
- "long",
518
- "nameof",
519
- "new",
520
- "null",
521
- "namespace",
522
- "object",
523
- "operator",
524
- "out",
525
- "override",
526
- "orderby",
527
- "params",
528
- "private",
529
- "protected",
530
- "public",
531
- "readonly",
532
- "ref",
533
- "return",
534
- "switch",
535
- "struct",
536
- "sbyte",
537
- "sealed",
538
- "short",
539
- "sizeof",
540
- "stackalloc",
541
- "static",
542
- "string",
543
- "select",
544
- "this",
545
- "throw",
546
- "true",
547
- "try",
548
- "typeof",
549
- "uint",
550
- "ulong",
551
- "unchecked",
552
- "unsafe",
553
- "ushort",
554
- "using",
555
- "var",
556
- "virtual",
557
- "volatile",
558
- "void",
559
- "when",
560
- "while",
561
- "where",
562
- "yield",
563
- "model",
564
- "inject"
565
- // Razor specific
566
- ],
567
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
568
- };
569
-
570
- export { conf, language };
@@ -1,19 +0,0 @@
1
- import { registerLanguage } from '../_.contribution.js';
2
-
3
- /*!-----------------------------------------------------------------------------
4
- * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Version: 0.54.0(undefined)
6
- * Released under the MIT license
7
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
8
- *-----------------------------------------------------------------------------*/
9
-
10
- registerLanguage({
11
- id: "redis",
12
- extensions: [".redis"],
13
- aliases: ["redis"],
14
- loader: () => {
15
- {
16
- return import('./redis.js');
17
- }
18
- }
19
- });