@codingame/monaco-vscode-standalone-languages 3.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 (163) hide show
  1. package/_.contribution.js +74 -0
  2. package/abap/abap.contribution.js +19 -0
  3. package/abap/abap.js +1406 -0
  4. package/apex/apex.contribution.js +20 -0
  5. package/apex/apex.js +338 -0
  6. package/azcli/azcli.contribution.js +19 -0
  7. package/azcli/azcli.js +76 -0
  8. package/bat/bat.contribution.js +19 -0
  9. package/bat/bat.js +108 -0
  10. package/bicep/bicep.contribution.js +19 -0
  11. package/bicep/bicep.js +117 -0
  12. package/cameligo/cameligo.contribution.js +19 -0
  13. package/cameligo/cameligo.js +182 -0
  14. package/clojure/clojure.contribution.js +19 -0
  15. package/clojure/clojure.js +769 -0
  16. package/coffee/coffee.contribution.js +20 -0
  17. package/coffee/coffee.js +240 -0
  18. package/cpp/cpp.contribution.js +29 -0
  19. package/cpp/cpp.js +409 -0
  20. package/csharp/csharp.contribution.js +19 -0
  21. package/csharp/csharp.js +334 -0
  22. package/csp/csp.contribution.js +19 -0
  23. package/csp/csp.js +61 -0
  24. package/css/css.contribution.js +20 -0
  25. package/css/css.js +193 -0
  26. package/cypher/cypher.contribution.js +19 -0
  27. package/cypher/cypher.js +271 -0
  28. package/dart/dart.contribution.js +20 -0
  29. package/dart/dart.js +289 -0
  30. package/dockerfile/dockerfile.contribution.js +20 -0
  31. package/dockerfile/dockerfile.js +138 -0
  32. package/ecl/ecl.contribution.js +19 -0
  33. package/ecl/ecl.js +464 -0
  34. package/elixir/elixir.contribution.js +19 -0
  35. package/elixir/elixir.js +577 -0
  36. package/flow9/flow9.contribution.js +19 -0
  37. package/flow9/flow9.js +150 -0
  38. package/freemarker2/freemarker2.contribution.js +73 -0
  39. package/freemarker2/freemarker2.js +1016 -0
  40. package/fsharp/fsharp.contribution.js +19 -0
  41. package/fsharp/fsharp.js +225 -0
  42. package/go/go.contribution.js +19 -0
  43. package/go/go.js +226 -0
  44. package/graphql/graphql.contribution.js +20 -0
  45. package/graphql/graphql.js +159 -0
  46. package/handlebars/handlebars.contribution.js +20 -0
  47. package/handlebars/handlebars.js +439 -0
  48. package/hcl/hcl.contribution.js +19 -0
  49. package/hcl/hcl.js +191 -0
  50. package/html/html.contribution.js +20 -0
  51. package/html/html.js +328 -0
  52. package/index.js +81 -0
  53. package/ini/ini.contribution.js +20 -0
  54. package/ini/ini.js +79 -0
  55. package/java/java.contribution.js +20 -0
  56. package/java/java.js +240 -0
  57. package/javascript/javascript.contribution.js +22 -0
  58. package/javascript/javascript.js +77 -0
  59. package/julia/julia.contribution.js +19 -0
  60. package/julia/julia.js +519 -0
  61. package/kotlin/kotlin.contribution.js +20 -0
  62. package/kotlin/kotlin.js +261 -0
  63. package/less/less.contribution.js +20 -0
  64. package/less/less.js +169 -0
  65. package/lexon/lexon.contribution.js +19 -0
  66. package/lexon/lexon.js +165 -0
  67. package/liquid/liquid.contribution.js +20 -0
  68. package/liquid/liquid.js +260 -0
  69. package/lua/lua.contribution.js +19 -0
  70. package/lua/lua.js +170 -0
  71. package/m3/m3.contribution.js +19 -0
  72. package/m3/m3.js +218 -0
  73. package/markdown/markdown.contribution.js +19 -0
  74. package/markdown/markdown.js +237 -0
  75. package/mdx/mdx.contribution.js +19 -0
  76. package/mdx/mdx.js +184 -0
  77. package/mips/mips.contribution.js +20 -0
  78. package/mips/mips.js +206 -0
  79. package/msdax/msdax.contribution.js +19 -0
  80. package/msdax/msdax.js +383 -0
  81. package/mysql/mysql.contribution.js +19 -0
  82. package/mysql/mysql.js +886 -0
  83. package/objective-c/objective-c.contribution.js +19 -0
  84. package/objective-c/objective-c.js +191 -0
  85. package/package.json +23 -0
  86. package/pascal/pascal.contribution.js +20 -0
  87. package/pascal/pascal.js +259 -0
  88. package/pascaligo/pascaligo.contribution.js +19 -0
  89. package/pascaligo/pascaligo.js +172 -0
  90. package/perl/perl.contribution.js +19 -0
  91. package/perl/perl.js +634 -0
  92. package/pgsql/pgsql.contribution.js +19 -0
  93. package/pgsql/pgsql.js +859 -0
  94. package/php/php.contribution.js +20 -0
  95. package/php/php.js +508 -0
  96. package/pla/pla.contribution.js +18 -0
  97. package/pla/pla.js +145 -0
  98. package/postiats/postiats.contribution.js +19 -0
  99. package/postiats/postiats.js +915 -0
  100. package/powerquery/powerquery.contribution.js +19 -0
  101. package/powerquery/powerquery.js +898 -0
  102. package/powershell/powershell.contribution.js +19 -0
  103. package/powershell/powershell.js +247 -0
  104. package/protobuf/protobuf.contribution.js +19 -0
  105. package/protobuf/protobuf.js +428 -0
  106. package/pug/pug.contribution.js +19 -0
  107. package/pug/pug.js +410 -0
  108. package/python/python.contribution.js +20 -0
  109. package/python/python.js +295 -0
  110. package/qsharp/qsharp.contribution.js +19 -0
  111. package/qsharp/qsharp.js +293 -0
  112. package/r/r.contribution.js +19 -0
  113. package/r/r.js +251 -0
  114. package/razor/razor.contribution.js +20 -0
  115. package/razor/razor.js +570 -0
  116. package/redis/redis.contribution.js +19 -0
  117. package/redis/redis.js +310 -0
  118. package/redshift/redshift.contribution.js +19 -0
  119. package/redshift/redshift.js +817 -0
  120. package/restructuredtext/restructuredtext.contribution.js +19 -0
  121. package/restructuredtext/restructuredtext.js +182 -0
  122. package/ruby/ruby.contribution.js +20 -0
  123. package/ruby/ruby.js +519 -0
  124. package/rust/rust.contribution.js +19 -0
  125. package/rust/rust.js +351 -0
  126. package/sb/sb.contribution.js +19 -0
  127. package/sb/sb.js +123 -0
  128. package/scala/scala.contribution.js +20 -0
  129. package/scala/scala.js +378 -0
  130. package/scheme/scheme.contribution.js +19 -0
  131. package/scheme/scheme.js +116 -0
  132. package/scss/scss.contribution.js +20 -0
  133. package/scss/scss.js +268 -0
  134. package/shell/shell.contribution.js +19 -0
  135. package/shell/shell.js +229 -0
  136. package/solidity/solidity.contribution.js +19 -0
  137. package/solidity/solidity.js +1375 -0
  138. package/sophia/sophia.contribution.js +19 -0
  139. package/sophia/sophia.js +207 -0
  140. package/sparql/sparql.contribution.js +19 -0
  141. package/sparql/sparql.js +209 -0
  142. package/sql/sql.contribution.js +19 -0
  143. package/sql/sql.js +861 -0
  144. package/st/st.contribution.js +19 -0
  145. package/st/st.js +424 -0
  146. package/swift/swift.contribution.js +20 -0
  147. package/swift/swift.js +320 -0
  148. package/systemverilog/systemverilog.contribution.js +29 -0
  149. package/systemverilog/systemverilog.js +584 -0
  150. package/tcl/tcl.contribution.js +19 -0
  151. package/tcl/tcl.js +240 -0
  152. package/twig/twig.contribution.js +20 -0
  153. package/twig/twig.js +400 -0
  154. package/typescript/typescript.contribution.js +20 -0
  155. package/typescript/typescript.js +362 -0
  156. package/vb/vb.contribution.js +19 -0
  157. package/vb/vb.js +380 -0
  158. package/wgsl/wgsl.contribution.js +19 -0
  159. package/wgsl/wgsl.js +461 -0
  160. package/xml/xml.contribution.js +39 -0
  161. package/xml/xml.js +114 -0
  162. package/yaml/yaml.contribution.js +20 -0
  163. package/yaml/yaml.js +225 -0
package/razor/razor.js ADDED
@@ -0,0 +1,570 @@
1
+ import * as monaco_editor_core_star from 'monaco-editor';
2
+
3
+ /*!-----------------------------------------------------------------------------
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Version: 0.47.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 && __copyProps(secondTarget, mod, "default"));
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 };
@@ -0,0 +1,19 @@
1
+ import { registerLanguage } from '../_.contribution.js';
2
+
3
+ /*!-----------------------------------------------------------------------------
4
+ * Copyright (c) Microsoft Corporation. All rights reserved.
5
+ * Version: 0.47.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
+ });