monacozen 0.0.1 → 0.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 (91) hide show
  1. package/README.md +219 -0
  2. package/assets/antimono-ClsI0fxy.js +5 -0
  3. package/assets/antimono-zBXMptjq.css +1 -0
  4. package/assets/bat-T2vjbQzY.js +125 -0
  5. package/assets/bicep-B6UDBWZN.js +220 -0
  6. package/assets/clojure-BvXzD8Uz.js +148 -0
  7. package/assets/coffee-D_yet6sT.js +262 -0
  8. package/assets/cpp-CsfEADPM.js +232 -0
  9. package/assets/csharp-jw3fFksF.js +262 -0
  10. package/assets/css-FsiUe-xI.js +286 -0
  11. package/assets/css.worker-BIsSvM_Q.js +96 -0
  12. package/assets/css.worker-BSHdDU9y.js +6 -0
  13. package/assets/cssMode-7U-ime2d.js +65 -0
  14. package/assets/cypher-B8DgU2PH.js +214 -0
  15. package/assets/dart-D1x60wEn.js +238 -0
  16. package/assets/dist-Bx9hOuoB.js +624 -0
  17. package/assets/dockerfile-DSHxsy4G.js +193 -0
  18. package/assets/editor.api-ZYFspLPt.js +85776 -0
  19. package/assets/editorWebWorkerMain-BioN9fGU.js +33 -0
  20. package/assets/editorWebWorkerMain-DXr8-Jst.js +6 -0
  21. package/assets/elixir-Cr7BtjRU.js +525 -0
  22. package/assets/fsharp-CeVKIr0d.js +149 -0
  23. package/assets/go-BL4_0srD.js +167 -0
  24. package/assets/graphql-mhWekwK0.js +176 -0
  25. package/assets/handlebars-rQdtgZoQ.js +412 -0
  26. package/assets/hcl-CfyDj6z_.js +221 -0
  27. package/assets/html-DIDrd2Z7.js +333 -0
  28. package/assets/html.worker-BrBx6eB3.js +6 -0
  29. package/assets/html.worker-CEvqvEpu.js +509 -0
  30. package/assets/htmlMode-i6u-9r7u.js +74 -0
  31. package/assets/ini-DhiXkl_g.js +96 -0
  32. package/assets/java-Ct9YHm5L.js +175 -0
  33. package/assets/javascript-By915NHa.js +20 -0
  34. package/assets/json.worker-B0PzJ5jL.js +6 -0
  35. package/assets/json.worker-CAiVr-gV.js +65 -0
  36. package/assets/jsonMode-DAP8CNa2.js +450 -0
  37. package/assets/julia-BAYXm_pL.js +416 -0
  38. package/assets/kotlin-JEujETri.js +184 -0
  39. package/assets/less-oHZXXDVD.js +244 -0
  40. package/assets/liquid-Cvs1eMgo.js +199 -0
  41. package/assets/lspLanguageFeatures-D6P77uh_.js +1455 -0
  42. package/assets/lua-B3ViXcD8.js +202 -0
  43. package/assets/main-16cPxgwS.js +107 -0
  44. package/assets/main-CB71Lf5W.js +129 -0
  45. package/assets/main-HEYSEiwe.js +66 -0
  46. package/assets/markdown-Ggb6Rgvc.js +264 -0
  47. package/assets/mdx-Ce7sXDA4.js +329 -0
  48. package/assets/mips-cYdfQChM.js +130 -0
  49. package/assets/monaco-d37b1a8f.css +3 -0
  50. package/assets/monaco-o5F6wkXp.js +40865 -0
  51. package/assets/mysql-nklBC2QL.js +170 -0
  52. package/assets/objective-c-x5BzCYEv.js +146 -0
  53. package/assets/pascal-DWL5ya_C.js +178 -0
  54. package/assets/perl-CbRoLks6.js +318 -0
  55. package/assets/pgsql-CVS-AsDB.js +160 -0
  56. package/assets/php-6gZIubF1.js +473 -0
  57. package/assets/powershell-DKgJI7BG.js +213 -0
  58. package/assets/protobuf-N0VyW3k9.js +661 -0
  59. package/assets/pug-BIMEUctf.js +302 -0
  60. package/assets/python-BKt2Winm.js +254 -0
  61. package/assets/r-Cb2uCcX6.js +191 -0
  62. package/assets/redis-D1CRAuQ1.js +125 -0
  63. package/assets/ruby-BzpgsYNr.js +529 -0
  64. package/assets/rust-CkIXqWDr.js +180 -0
  65. package/assets/scala-CnJ7htCu.js +553 -0
  66. package/assets/scss-xP2eAFyY.js +419 -0
  67. package/assets/shell-JSjWPSrk.js +225 -0
  68. package/assets/solidity-C8AFhoIi.js +149 -0
  69. package/assets/sql-DqW-LmZI.js +173 -0
  70. package/assets/swift-BcHKQY-M.js +215 -0
  71. package/assets/systemverilog-Dmu-Ht4V.js +300 -0
  72. package/assets/ts.worker-BAchZA3W.js +6 -0
  73. package/assets/ts.worker-DZhhT1EO.js +67741 -0
  74. package/assets/tsMode-C_Fsqh0j.js +566 -0
  75. package/assets/twig-Bj4rwioa.js +390 -0
  76. package/assets/typescript-Djsb1cC9.js +257 -0
  77. package/assets/typespec-xwJ6QpRP.js +236 -0
  78. package/assets/vb-CMxAjmFH.js +262 -0
  79. package/assets/wgsl-CTYGQRo2.js +147 -0
  80. package/assets/xml-D7cJD5hW.js +130 -0
  81. package/assets/yaml-B8A0QdVf.js +223 -0
  82. package/assets/yaml.worker-Crtsysk5.js +474 -0
  83. package/assets/yaml.worker-DZ36155v.js +6 -0
  84. package/lib.d.ts +8403 -0
  85. package/lib.js +2 -0
  86. package/package.json +1 -1
  87. package/src/main.js +29 -0
  88. package/index.d.ts +0 -6
  89. package/index.js +0 -1
  90. package/readme.md +0 -1
  91. /package/{license.txt → LICENSE} +0 -0
@@ -0,0 +1,473 @@
1
+ //#region node_modules/.bun/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/definitions/php/php.js
2
+ var e = {
3
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
4
+ comments: {
5
+ lineComment: "//",
6
+ blockComment: ["/*", "*/"]
7
+ },
8
+ brackets: [
9
+ ["{", "}"],
10
+ ["[", "]"],
11
+ ["(", ")"]
12
+ ],
13
+ autoClosingPairs: [
14
+ {
15
+ open: "{",
16
+ close: "}",
17
+ notIn: ["string"]
18
+ },
19
+ {
20
+ open: "[",
21
+ close: "]",
22
+ notIn: ["string"]
23
+ },
24
+ {
25
+ open: "(",
26
+ close: ")",
27
+ notIn: ["string"]
28
+ },
29
+ {
30
+ open: "\"",
31
+ close: "\"",
32
+ notIn: ["string"]
33
+ },
34
+ {
35
+ open: "'",
36
+ close: "'",
37
+ notIn: ["string", "comment"]
38
+ }
39
+ ],
40
+ folding: { markers: {
41
+ start: /* @__PURE__ */ RegExp("^\\s*(#|//)region\\b"),
42
+ end: /* @__PURE__ */ RegExp("^\\s*(#|//)endregion\\b")
43
+ } }
44
+ }, t = {
45
+ defaultToken: "",
46
+ tokenPostfix: "",
47
+ tokenizer: {
48
+ root: [
49
+ [/<\?((php)|=)?/, {
50
+ token: "@rematch",
51
+ switchTo: "@phpInSimpleState.root"
52
+ }],
53
+ [
54
+ /<!DOCTYPE/,
55
+ "metatag.html",
56
+ "@doctype"
57
+ ],
58
+ [
59
+ /<!--/,
60
+ "comment.html",
61
+ "@comment"
62
+ ],
63
+ [/(<)(\w+)(\/>)/, [
64
+ "delimiter.html",
65
+ "tag.html",
66
+ "delimiter.html"
67
+ ]],
68
+ [/(<)(script)/, ["delimiter.html", {
69
+ token: "tag.html",
70
+ next: "@script"
71
+ }]],
72
+ [/(<)(style)/, ["delimiter.html", {
73
+ token: "tag.html",
74
+ next: "@style"
75
+ }]],
76
+ [/(<)([:\w]+)/, ["delimiter.html", {
77
+ token: "tag.html",
78
+ next: "@otherTag"
79
+ }]],
80
+ [/(<\/)(\w+)/, ["delimiter.html", {
81
+ token: "tag.html",
82
+ next: "@otherTag"
83
+ }]],
84
+ [/</, "delimiter.html"],
85
+ [/[^<]+/]
86
+ ],
87
+ doctype: [
88
+ [/<\?((php)|=)?/, {
89
+ token: "@rematch",
90
+ switchTo: "@phpInSimpleState.comment"
91
+ }],
92
+ [/[^>]+/, "metatag.content.html"],
93
+ [
94
+ />/,
95
+ "metatag.html",
96
+ "@pop"
97
+ ]
98
+ ],
99
+ comment: [
100
+ [/<\?((php)|=)?/, {
101
+ token: "@rematch",
102
+ switchTo: "@phpInSimpleState.comment"
103
+ }],
104
+ [
105
+ /-->/,
106
+ "comment.html",
107
+ "@pop"
108
+ ],
109
+ [/[^-]+/, "comment.content.html"],
110
+ [/./, "comment.content.html"]
111
+ ],
112
+ otherTag: [
113
+ [/<\?((php)|=)?/, {
114
+ token: "@rematch",
115
+ switchTo: "@phpInSimpleState.otherTag"
116
+ }],
117
+ [
118
+ /\/?>/,
119
+ "delimiter.html",
120
+ "@pop"
121
+ ],
122
+ [/"([^"]*)"/, "attribute.value"],
123
+ [/'([^']*)'/, "attribute.value"],
124
+ [/[\w\-]+/, "attribute.name"],
125
+ [/=/, "delimiter"],
126
+ [/[ \t\r\n]+/]
127
+ ],
128
+ script: [
129
+ [/<\?((php)|=)?/, {
130
+ token: "@rematch",
131
+ switchTo: "@phpInSimpleState.script"
132
+ }],
133
+ [
134
+ /type/,
135
+ "attribute.name",
136
+ "@scriptAfterType"
137
+ ],
138
+ [/"([^"]*)"/, "attribute.value"],
139
+ [/'([^']*)'/, "attribute.value"],
140
+ [/[\w\-]+/, "attribute.name"],
141
+ [/=/, "delimiter"],
142
+ [/>/, {
143
+ token: "delimiter.html",
144
+ next: "@scriptEmbedded.text/javascript",
145
+ nextEmbedded: "text/javascript"
146
+ }],
147
+ [/[ \t\r\n]+/],
148
+ [/(<\/)(script\s*)(>)/, [
149
+ "delimiter.html",
150
+ "tag.html",
151
+ {
152
+ token: "delimiter.html",
153
+ next: "@pop"
154
+ }
155
+ ]]
156
+ ],
157
+ scriptAfterType: [
158
+ [/<\?((php)|=)?/, {
159
+ token: "@rematch",
160
+ switchTo: "@phpInSimpleState.scriptAfterType"
161
+ }],
162
+ [
163
+ /=/,
164
+ "delimiter",
165
+ "@scriptAfterTypeEquals"
166
+ ],
167
+ [/>/, {
168
+ token: "delimiter.html",
169
+ next: "@scriptEmbedded.text/javascript",
170
+ nextEmbedded: "text/javascript"
171
+ }],
172
+ [/[ \t\r\n]+/],
173
+ [/<\/script\s*>/, {
174
+ token: "@rematch",
175
+ next: "@pop"
176
+ }]
177
+ ],
178
+ scriptAfterTypeEquals: [
179
+ [/<\?((php)|=)?/, {
180
+ token: "@rematch",
181
+ switchTo: "@phpInSimpleState.scriptAfterTypeEquals"
182
+ }],
183
+ [/"([^"]*)"/, {
184
+ token: "attribute.value",
185
+ switchTo: "@scriptWithCustomType.$1"
186
+ }],
187
+ [/'([^']*)'/, {
188
+ token: "attribute.value",
189
+ switchTo: "@scriptWithCustomType.$1"
190
+ }],
191
+ [/>/, {
192
+ token: "delimiter.html",
193
+ next: "@scriptEmbedded.text/javascript",
194
+ nextEmbedded: "text/javascript"
195
+ }],
196
+ [/[ \t\r\n]+/],
197
+ [/<\/script\s*>/, {
198
+ token: "@rematch",
199
+ next: "@pop"
200
+ }]
201
+ ],
202
+ scriptWithCustomType: [
203
+ [/<\?((php)|=)?/, {
204
+ token: "@rematch",
205
+ switchTo: "@phpInSimpleState.scriptWithCustomType.$S2"
206
+ }],
207
+ [/>/, {
208
+ token: "delimiter.html",
209
+ next: "@scriptEmbedded.$S2",
210
+ nextEmbedded: "$S2"
211
+ }],
212
+ [/"([^"]*)"/, "attribute.value"],
213
+ [/'([^']*)'/, "attribute.value"],
214
+ [/[\w\-]+/, "attribute.name"],
215
+ [/=/, "delimiter"],
216
+ [/[ \t\r\n]+/],
217
+ [/<\/script\s*>/, {
218
+ token: "@rematch",
219
+ next: "@pop"
220
+ }]
221
+ ],
222
+ scriptEmbedded: [[/<\?((php)|=)?/, {
223
+ token: "@rematch",
224
+ switchTo: "@phpInEmbeddedState.scriptEmbedded.$S2",
225
+ nextEmbedded: "@pop"
226
+ }], [/<\/script/, {
227
+ token: "@rematch",
228
+ next: "@pop",
229
+ nextEmbedded: "@pop"
230
+ }]],
231
+ style: [
232
+ [/<\?((php)|=)?/, {
233
+ token: "@rematch",
234
+ switchTo: "@phpInSimpleState.style"
235
+ }],
236
+ [
237
+ /type/,
238
+ "attribute.name",
239
+ "@styleAfterType"
240
+ ],
241
+ [/"([^"]*)"/, "attribute.value"],
242
+ [/'([^']*)'/, "attribute.value"],
243
+ [/[\w\-]+/, "attribute.name"],
244
+ [/=/, "delimiter"],
245
+ [/>/, {
246
+ token: "delimiter.html",
247
+ next: "@styleEmbedded.text/css",
248
+ nextEmbedded: "text/css"
249
+ }],
250
+ [/[ \t\r\n]+/],
251
+ [/(<\/)(style\s*)(>)/, [
252
+ "delimiter.html",
253
+ "tag.html",
254
+ {
255
+ token: "delimiter.html",
256
+ next: "@pop"
257
+ }
258
+ ]]
259
+ ],
260
+ styleAfterType: [
261
+ [/<\?((php)|=)?/, {
262
+ token: "@rematch",
263
+ switchTo: "@phpInSimpleState.styleAfterType"
264
+ }],
265
+ [
266
+ /=/,
267
+ "delimiter",
268
+ "@styleAfterTypeEquals"
269
+ ],
270
+ [/>/, {
271
+ token: "delimiter.html",
272
+ next: "@styleEmbedded.text/css",
273
+ nextEmbedded: "text/css"
274
+ }],
275
+ [/[ \t\r\n]+/],
276
+ [/<\/style\s*>/, {
277
+ token: "@rematch",
278
+ next: "@pop"
279
+ }]
280
+ ],
281
+ styleAfterTypeEquals: [
282
+ [/<\?((php)|=)?/, {
283
+ token: "@rematch",
284
+ switchTo: "@phpInSimpleState.styleAfterTypeEquals"
285
+ }],
286
+ [/"([^"]*)"/, {
287
+ token: "attribute.value",
288
+ switchTo: "@styleWithCustomType.$1"
289
+ }],
290
+ [/'([^']*)'/, {
291
+ token: "attribute.value",
292
+ switchTo: "@styleWithCustomType.$1"
293
+ }],
294
+ [/>/, {
295
+ token: "delimiter.html",
296
+ next: "@styleEmbedded.text/css",
297
+ nextEmbedded: "text/css"
298
+ }],
299
+ [/[ \t\r\n]+/],
300
+ [/<\/style\s*>/, {
301
+ token: "@rematch",
302
+ next: "@pop"
303
+ }]
304
+ ],
305
+ styleWithCustomType: [
306
+ [/<\?((php)|=)?/, {
307
+ token: "@rematch",
308
+ switchTo: "@phpInSimpleState.styleWithCustomType.$S2"
309
+ }],
310
+ [/>/, {
311
+ token: "delimiter.html",
312
+ next: "@styleEmbedded.$S2",
313
+ nextEmbedded: "$S2"
314
+ }],
315
+ [/"([^"]*)"/, "attribute.value"],
316
+ [/'([^']*)'/, "attribute.value"],
317
+ [/[\w\-]+/, "attribute.name"],
318
+ [/=/, "delimiter"],
319
+ [/[ \t\r\n]+/],
320
+ [/<\/style\s*>/, {
321
+ token: "@rematch",
322
+ next: "@pop"
323
+ }]
324
+ ],
325
+ styleEmbedded: [[/<\?((php)|=)?/, {
326
+ token: "@rematch",
327
+ switchTo: "@phpInEmbeddedState.styleEmbedded.$S2",
328
+ nextEmbedded: "@pop"
329
+ }], [/<\/style/, {
330
+ token: "@rematch",
331
+ next: "@pop",
332
+ nextEmbedded: "@pop"
333
+ }]],
334
+ phpInSimpleState: [
335
+ [/<\?((php)|=)?/, "metatag.php"],
336
+ [/\?>/, {
337
+ token: "metatag.php",
338
+ switchTo: "@$S2.$S3"
339
+ }],
340
+ { include: "phpRoot" }
341
+ ],
342
+ phpInEmbeddedState: [
343
+ [/<\?((php)|=)?/, "metatag.php"],
344
+ [/\?>/, {
345
+ token: "metatag.php",
346
+ switchTo: "@$S2.$S3",
347
+ nextEmbedded: "$S3"
348
+ }],
349
+ { include: "phpRoot" }
350
+ ],
351
+ phpRoot: [
352
+ [/[a-zA-Z_]\w*/, { cases: {
353
+ "@phpKeywords": { token: "keyword.php" },
354
+ "@phpCompileTimeConstants": { token: "constant.php" },
355
+ "@default": "identifier.php"
356
+ } }],
357
+ [/[$a-zA-Z_]\w*/, { cases: {
358
+ "@phpPreDefinedVariables": { token: "variable.predefined.php" },
359
+ "@default": "variable.php"
360
+ } }],
361
+ [/[{}]/, "delimiter.bracket.php"],
362
+ [/[\[\]]/, "delimiter.array.php"],
363
+ [/[()]/, "delimiter.parenthesis.php"],
364
+ [/[ \t\r\n]+/],
365
+ [/(#|\/\/)$/, "comment.php"],
366
+ [
367
+ /(#|\/\/)/,
368
+ "comment.php",
369
+ "@phpLineComment"
370
+ ],
371
+ [
372
+ /\/\*/,
373
+ "comment.php",
374
+ "@phpComment"
375
+ ],
376
+ [
377
+ /"/,
378
+ "string.php",
379
+ "@phpDoubleQuoteString"
380
+ ],
381
+ [
382
+ /'/,
383
+ "string.php",
384
+ "@phpSingleQuoteString"
385
+ ],
386
+ [/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/, "delimiter.php"],
387
+ [/\d*\d+[eE]([\-+]?\d+)?/, "number.float.php"],
388
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.php"],
389
+ [/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.php"],
390
+ [/0[0-7']*[0-7]/, "number.octal.php"],
391
+ [/0[bB][0-1']*[0-1]/, "number.binary.php"],
392
+ [/\d[\d']*/, "number.php"],
393
+ [/\d/, "number.php"]
394
+ ],
395
+ phpComment: [
396
+ [
397
+ /\*\//,
398
+ "comment.php",
399
+ "@pop"
400
+ ],
401
+ [/[^*]+/, "comment.php"],
402
+ [/./, "comment.php"]
403
+ ],
404
+ phpLineComment: [
405
+ [/\?>/, {
406
+ token: "@rematch",
407
+ next: "@pop"
408
+ }],
409
+ [
410
+ /.$/,
411
+ "comment.php",
412
+ "@pop"
413
+ ],
414
+ [
415
+ /[^?]+$/,
416
+ "comment.php",
417
+ "@pop"
418
+ ],
419
+ [/[^?]+/, "comment.php"],
420
+ [/./, "comment.php"]
421
+ ],
422
+ phpDoubleQuoteString: [
423
+ [/[^\\"]+/, "string.php"],
424
+ [/@escapes/, "string.escape.php"],
425
+ [/\\./, "string.escape.invalid.php"],
426
+ [
427
+ /"/,
428
+ "string.php",
429
+ "@pop"
430
+ ]
431
+ ],
432
+ phpSingleQuoteString: [
433
+ [/[^\\']+/, "string.php"],
434
+ [/@escapes/, "string.escape.php"],
435
+ [/\\./, "string.escape.invalid.php"],
436
+ [
437
+ /'/,
438
+ "string.php",
439
+ "@pop"
440
+ ]
441
+ ]
442
+ },
443
+ phpKeywords: /* @__PURE__ */ "abstract.and.array.as.break.callable.case.catch.cfunction.class.clone.const.continue.declare.default.do.else.elseif.enddeclare.endfor.endforeach.endif.endswitch.endwhile.extends.false.final.for.foreach.function.global.goto.if.implements.interface.instanceof.insteadof.namespace.new.null.object.old_function.or.private.protected.public.resource.static.switch.throw.trait.try.true.use.var.while.xor.die.echo.empty.exit.eval.include.include_once.isset.list.require.require_once.return.print.unset.yield.__construct".split("."),
444
+ phpCompileTimeConstants: [
445
+ "__CLASS__",
446
+ "__DIR__",
447
+ "__FILE__",
448
+ "__LINE__",
449
+ "__NAMESPACE__",
450
+ "__METHOD__",
451
+ "__FUNCTION__",
452
+ "__TRAIT__"
453
+ ],
454
+ phpPreDefinedVariables: [
455
+ "$GLOBALS",
456
+ "$_SERVER",
457
+ "$_GET",
458
+ "$_POST",
459
+ "$_FILES",
460
+ "$_REQUEST",
461
+ "$_SESSION",
462
+ "$_ENV",
463
+ "$_COOKIE",
464
+ "$php_errormsg",
465
+ "$HTTP_RAW_POST_DATA",
466
+ "$http_response_header",
467
+ "$argc",
468
+ "$argv"
469
+ ],
470
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
471
+ };
472
+ //#endregion
473
+ export { e as conf, t as language };
@@ -0,0 +1,213 @@
1
+ //#region node_modules/.bun/monaco-editor@0.57.0/node_modules/monaco-editor/esm/vs/languages/definitions/powershell/powershell.js
2
+ var e = {
3
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
4
+ comments: {
5
+ lineComment: "#",
6
+ blockComment: ["<#", "#>"]
7
+ },
8
+ brackets: [
9
+ ["{", "}"],
10
+ ["[", "]"],
11
+ ["(", ")"]
12
+ ],
13
+ autoClosingPairs: [
14
+ {
15
+ open: "{",
16
+ close: "}"
17
+ },
18
+ {
19
+ open: "[",
20
+ close: "]"
21
+ },
22
+ {
23
+ open: "(",
24
+ close: ")"
25
+ },
26
+ {
27
+ open: "\"",
28
+ close: "\"",
29
+ notIn: ["string"]
30
+ },
31
+ {
32
+ open: "'",
33
+ close: "'",
34
+ notIn: ["string", "comment"]
35
+ }
36
+ ],
37
+ surroundingPairs: [
38
+ {
39
+ open: "{",
40
+ close: "}"
41
+ },
42
+ {
43
+ open: "[",
44
+ close: "]"
45
+ },
46
+ {
47
+ open: "(",
48
+ close: ")"
49
+ },
50
+ {
51
+ open: "\"",
52
+ close: "\""
53
+ },
54
+ {
55
+ open: "'",
56
+ close: "'"
57
+ }
58
+ ],
59
+ folding: { markers: {
60
+ start: /* @__PURE__ */ RegExp("^\\s*#region\\b"),
61
+ end: /* @__PURE__ */ RegExp("^\\s*#endregion\\b")
62
+ } }
63
+ }, t = {
64
+ defaultToken: "",
65
+ ignoreCase: !0,
66
+ tokenPostfix: ".ps1",
67
+ brackets: [
68
+ {
69
+ token: "delimiter.curly",
70
+ open: "{",
71
+ close: "}"
72
+ },
73
+ {
74
+ token: "delimiter.square",
75
+ open: "[",
76
+ close: "]"
77
+ },
78
+ {
79
+ token: "delimiter.parenthesis",
80
+ open: "(",
81
+ close: ")"
82
+ }
83
+ ],
84
+ keywords: /* @__PURE__ */ "begin.break.catch.class.continue.data.define.do.dynamicparam.else.elseif.end.exit.filter.finally.for.foreach.from.function.if.in.param.process.return.switch.throw.trap.try.until.using.var.while.workflow.parallel.sequence.inlinescript.configuration".split("."),
85
+ helpKeywords: /SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,
86
+ symbols: /[=><!~?&%|+\-*\/\^;\.,]+/,
87
+ escapes: /`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
88
+ tokenizer: {
89
+ root: [
90
+ [/[a-zA-Z_][\w-]*/, { cases: {
91
+ "@keywords": { token: "keyword.$0" },
92
+ "@default": ""
93
+ } }],
94
+ [/[ \t\r\n]+/, ""],
95
+ [/^:\w*/, "metatag"],
96
+ [/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/, "variable"],
97
+ [
98
+ /<#/,
99
+ "comment",
100
+ "@comment"
101
+ ],
102
+ [/#.*$/, "comment"],
103
+ [/[{}()\[\]]/, "@brackets"],
104
+ [/@symbols/, "delimiter"],
105
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
106
+ [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
107
+ [/\d+?/, "number"],
108
+ [/[;,.]/, "delimiter"],
109
+ [
110
+ /\@"/,
111
+ "string",
112
+ "@herestring.\""
113
+ ],
114
+ [
115
+ /\@'/,
116
+ "string",
117
+ "@herestring.'"
118
+ ],
119
+ [/"/, { cases: {
120
+ "@eos": "string",
121
+ "@default": {
122
+ token: "string",
123
+ next: "@string.\""
124
+ }
125
+ } }],
126
+ [/'/, { cases: {
127
+ "@eos": "string",
128
+ "@default": {
129
+ token: "string",
130
+ next: "@string.'"
131
+ }
132
+ } }]
133
+ ],
134
+ string: [
135
+ [/[^"'\$`]+/, { cases: {
136
+ "@eos": {
137
+ token: "string",
138
+ next: "@popall"
139
+ },
140
+ "@default": "string"
141
+ } }],
142
+ [/@escapes/, { cases: {
143
+ "@eos": {
144
+ token: "string.escape",
145
+ next: "@popall"
146
+ },
147
+ "@default": "string.escape"
148
+ } }],
149
+ [/`./, { cases: {
150
+ "@eos": {
151
+ token: "string.escape.invalid",
152
+ next: "@popall"
153
+ },
154
+ "@default": "string.escape.invalid"
155
+ } }],
156
+ [/\$[\w]+$/, { cases: {
157
+ "$S2==\"": {
158
+ token: "variable",
159
+ next: "@popall"
160
+ },
161
+ "@default": {
162
+ token: "string",
163
+ next: "@popall"
164
+ }
165
+ } }],
166
+ [/\$[\w]+/, { cases: {
167
+ "$S2==\"": "variable",
168
+ "@default": "string"
169
+ } }],
170
+ [/["']/, { cases: {
171
+ "$#==$S2": {
172
+ token: "string",
173
+ next: "@pop"
174
+ },
175
+ "@default": { cases: {
176
+ "@eos": {
177
+ token: "string",
178
+ next: "@popall"
179
+ },
180
+ "@default": "string"
181
+ } }
182
+ } }]
183
+ ],
184
+ herestring: [
185
+ [/^\s*(["'])@/, { cases: {
186
+ "$1==$S2": {
187
+ token: "string",
188
+ next: "@pop"
189
+ },
190
+ "@default": "string"
191
+ } }],
192
+ [/[^\$`]+/, "string"],
193
+ [/@escapes/, "string.escape"],
194
+ [/`./, "string.escape.invalid"],
195
+ [/\$[\w]+/, { cases: {
196
+ "$S2==\"": "variable",
197
+ "@default": "string"
198
+ } }]
199
+ ],
200
+ comment: [
201
+ [/[^#\.]+/, "comment"],
202
+ [
203
+ /#>/,
204
+ "comment",
205
+ "@pop"
206
+ ],
207
+ [/(\.)(@helpKeywords)(?!\w)/, { token: "comment.keyword.$2" }],
208
+ [/[\.#]/, "comment"]
209
+ ]
210
+ }
211
+ };
212
+ //#endregion
213
+ export { e as conf, t as language };