monacozen 0.0.1 → 0.1.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 (109) hide show
  1. package/README.md +124 -0
  2. package/assets/antimono-ClsI0fxy.js +5 -0
  3. package/assets/antimono-zBXMptjq.css +1 -0
  4. package/assets/azcli-ue5GhsHI.js +55 -0
  5. package/assets/bat-C6DzPBcU.js +125 -0
  6. package/assets/bicep-B6UDBWZN.js +220 -0
  7. package/assets/cameligo-BoKy-zSd.js +191 -0
  8. package/assets/clojure-D8WHGr6v.js +148 -0
  9. package/assets/coffee-C16Mnhbm.js +262 -0
  10. package/assets/cpp-_HbkGdoj.js +232 -0
  11. package/assets/csharp-DeGXkEgi.js +262 -0
  12. package/assets/csp-DGVEba9U.js +48 -0
  13. package/assets/css-DmO2GtiT.js +286 -0
  14. package/assets/css.worker-B59bB4vF.js +6 -0
  15. package/assets/css.worker-zFzGcGyJ.js +96 -0
  16. package/assets/cssMode-B-yiAIn5.js +65 -0
  17. package/assets/cypher-5654EJL_.js +214 -0
  18. package/assets/dart-BjXVSQM-.js +238 -0
  19. package/assets/dist-Bx9hOuoB.js +624 -0
  20. package/assets/dockerfile-DSA8TJLS.js +193 -0
  21. package/assets/ecl-DoDWSDGs.js +228 -0
  22. package/assets/editor.api-C_6h_pYy.js +83476 -0
  23. package/assets/editorWebWorkerMain-Cpqca1A3.js +6 -0
  24. package/assets/editorWebWorkerMain-_4oyTYIl.js +33 -0
  25. package/assets/elixir-CzC02SL7.js +525 -0
  26. package/assets/freemarker2-Jvnudjht.js +718 -0
  27. package/assets/fsharp-DRGCXPNW.js +149 -0
  28. package/assets/go-CyErB8P9.js +167 -0
  29. package/assets/graphql-CNnvnjR8.js +176 -0
  30. package/assets/handlebars-B9HHtHT5.js +412 -0
  31. package/assets/hcl-D4a6HBjk.js +221 -0
  32. package/assets/html-B5_5MvV-.js +333 -0
  33. package/assets/html.worker-Czi9KUKj.js +6 -0
  34. package/assets/html.worker-D4M1xqlZ.js +509 -0
  35. package/assets/htmlMode-DcETbRqN.js +74 -0
  36. package/assets/ini-CpSjysbn.js +96 -0
  37. package/assets/java-DkRrYYRp.js +175 -0
  38. package/assets/javascript-Da2MNB2t.js +20 -0
  39. package/assets/json.worker-D3-21m4I.js +65 -0
  40. package/assets/json.worker-pkLWnKxn.js +6 -0
  41. package/assets/jsonMode-BtwFVp_X.js +450 -0
  42. package/assets/julia-DXDdnD4p.js +416 -0
  43. package/assets/kotlin-BNDyMshT.js +184 -0
  44. package/assets/less-3yDKfG4U.js +244 -0
  45. package/assets/liquid-DCciKNzb.js +199 -0
  46. package/assets/lspLanguageFeatures-CAn_K3Js.js +1455 -0
  47. package/assets/lua-CqDy9oHE.js +202 -0
  48. package/assets/m3-DyBtJGhR.js +195 -0
  49. package/assets/main-16cPxgwS.js +107 -0
  50. package/assets/main-CB71Lf5W.js +129 -0
  51. package/assets/main-HEYSEiwe.js +66 -0
  52. package/assets/markdown-DIkeztiD.js +264 -0
  53. package/assets/mdx-BcOG7QFm.js +329 -0
  54. package/assets/mips-BUbWxz0r.js +130 -0
  55. package/assets/monaco-BMsB0TPD.js +39430 -0
  56. package/assets/monaco-ffd8b062.css +3 -0
  57. package/assets/msdax-95fojGvn.js +158 -0
  58. package/assets/mysql-CX3tETwr.js +170 -0
  59. package/assets/objective-c-CK2i53vc.js +146 -0
  60. package/assets/pascal-wnGRqmNG.js +178 -0
  61. package/assets/pascaligo-DR2NqTqc.js +203 -0
  62. package/assets/perl-DXuijcFO.js +318 -0
  63. package/assets/pgsql-BFvD7ctB.js +160 -0
  64. package/assets/php-FZHoZ5C_.js +473 -0
  65. package/assets/pla-Cmb_VVG6.js +148 -0
  66. package/assets/postiats-DUwtyBVk.js +506 -0
  67. package/assets/powerquery-wUlwxvME.js +192 -0
  68. package/assets/powershell-Wf4X7WOf.js +213 -0
  69. package/assets/protobuf-CcMDFVG6.js +661 -0
  70. package/assets/pug-OPBd_9cN.js +302 -0
  71. package/assets/python-D2Z49Cw8.js +254 -0
  72. package/assets/qsharp-C4P6iWbB.js +145 -0
  73. package/assets/r-FHjiK9Ff.js +191 -0
  74. package/assets/razor-CfcSDTvR.js +519 -0
  75. package/assets/redis-CLJ_Tkzp.js +125 -0
  76. package/assets/redshift-Cn0YgnO8.js +160 -0
  77. package/assets/restructuredtext-Ckzl4aRZ.js +289 -0
  78. package/assets/ruby-Dhjv9xsd.js +529 -0
  79. package/assets/rust-Bq7le2bN.js +180 -0
  80. package/assets/scala-Bth6QY64.js +553 -0
  81. package/assets/scheme-BHXdn3HT.js +172 -0
  82. package/assets/scss-DVPfVfp2.js +419 -0
  83. package/assets/shell-DYY2DoAm.js +225 -0
  84. package/assets/solidity-C2dWya5C.js +149 -0
  85. package/assets/sophia-BdPli0VA.js +149 -0
  86. package/assets/sparql-Ca6NBL_y.js +126 -0
  87. package/assets/sql-CE5EfRV1.js +173 -0
  88. package/assets/st-BKcHiAlg.js +478 -0
  89. package/assets/swift-v0LuaFKN.js +215 -0
  90. package/assets/systemverilog-BRC61WOW.js +300 -0
  91. package/assets/tcl-Xx48oN1j.js +225 -0
  92. package/assets/ts.worker-CokkJ1Lk.js +6 -0
  93. package/assets/ts.worker-De3FAST6.js +67741 -0
  94. package/assets/tsMode-cdcRizUc.js +567 -0
  95. package/assets/twig-Dq5WyzaF.js +390 -0
  96. package/assets/typescript-B25ZZJLy.js +257 -0
  97. package/assets/typespec-DVZXVZWY.js +236 -0
  98. package/assets/vb--Ows3SAS.js +262 -0
  99. package/assets/wgsl-gwRTfDFE.js +147 -0
  100. package/assets/workers-qpP7-_JR.js +48 -0
  101. package/assets/xml-BD6eVsMx.js +130 -0
  102. package/assets/yaml-unVkvP57.js +223 -0
  103. package/lib.d.ts +8379 -0
  104. package/package.json +1 -1
  105. package/src/main.js +24 -0
  106. package/index.d.ts +0 -6
  107. package/index.js +0 -1
  108. package/readme.md +0 -1
  109. /package/{license.txt → LICENSE} +0 -0
@@ -0,0 +1,390 @@
1
+ //#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/twig/twig.js
2
+ var e = {
3
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
4
+ comments: { blockComment: ["{#", "#}"] },
5
+ brackets: [
6
+ ["{#", "#}"],
7
+ ["{%", "%}"],
8
+ ["{{", "}}"],
9
+ ["(", ")"],
10
+ ["[", "]"],
11
+ ["<!--", "-->"],
12
+ ["<", ">"]
13
+ ],
14
+ autoClosingPairs: [
15
+ {
16
+ open: "{# ",
17
+ close: " #}"
18
+ },
19
+ {
20
+ open: "{% ",
21
+ close: " %}"
22
+ },
23
+ {
24
+ open: "{{ ",
25
+ close: " }}"
26
+ },
27
+ {
28
+ open: "[",
29
+ close: "]"
30
+ },
31
+ {
32
+ open: "(",
33
+ close: ")"
34
+ },
35
+ {
36
+ open: "\"",
37
+ close: "\""
38
+ },
39
+ {
40
+ open: "'",
41
+ close: "'"
42
+ }
43
+ ],
44
+ surroundingPairs: [
45
+ {
46
+ open: "\"",
47
+ close: "\""
48
+ },
49
+ {
50
+ open: "'",
51
+ close: "'"
52
+ },
53
+ {
54
+ open: "<",
55
+ close: ">"
56
+ }
57
+ ]
58
+ }, t = {
59
+ defaultToken: "",
60
+ tokenPostfix: "",
61
+ ignoreCase: !0,
62
+ keywords: /* @__PURE__ */ "apply.autoescape.block.deprecated.do.embed.extends.flush.for.from.if.import.include.macro.sandbox.set.use.verbatim.with.endapply.endautoescape.endblock.endembed.endfor.endif.endmacro.endsandbox.endset.endwith.true.false".split("."),
63
+ tokenizer: {
64
+ root: [
65
+ [/\s+/],
66
+ [
67
+ /{#/,
68
+ "comment.twig",
69
+ "@commentState"
70
+ ],
71
+ [
72
+ /{%[-~]?/,
73
+ "delimiter.twig",
74
+ "@blockState"
75
+ ],
76
+ [
77
+ /{{[-~]?/,
78
+ "delimiter.twig",
79
+ "@variableState"
80
+ ],
81
+ [
82
+ /<!DOCTYPE/,
83
+ "metatag.html",
84
+ "@doctype"
85
+ ],
86
+ [
87
+ /<!--/,
88
+ "comment.html",
89
+ "@comment"
90
+ ],
91
+ [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, [
92
+ "delimiter.html",
93
+ "tag.html",
94
+ "",
95
+ "delimiter.html"
96
+ ]],
97
+ [/(<)(script)/, ["delimiter.html", {
98
+ token: "tag.html",
99
+ next: "@script"
100
+ }]],
101
+ [/(<)(style)/, ["delimiter.html", {
102
+ token: "tag.html",
103
+ next: "@style"
104
+ }]],
105
+ [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", {
106
+ token: "tag.html",
107
+ next: "@otherTag"
108
+ }]],
109
+ [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", {
110
+ token: "tag.html",
111
+ next: "@otherTag"
112
+ }]],
113
+ [/</, "delimiter.html"],
114
+ [/[^<{]+/]
115
+ ],
116
+ commentState: [[
117
+ /#}/,
118
+ "comment.twig",
119
+ "@pop"
120
+ ], [/./, "comment.twig"]],
121
+ blockState: [
122
+ [
123
+ /[-~]?%}/,
124
+ "delimiter.twig",
125
+ "@pop"
126
+ ],
127
+ [/\s+/],
128
+ [/(verbatim)(\s*)([-~]?%})/, [
129
+ "keyword.twig",
130
+ "",
131
+ {
132
+ token: "delimiter.twig",
133
+ next: "@rawDataState"
134
+ }
135
+ ]],
136
+ { include: "expression" }
137
+ ],
138
+ rawDataState: [[/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/, [
139
+ "delimiter.twig",
140
+ "",
141
+ "keyword.twig",
142
+ "",
143
+ {
144
+ token: "delimiter.twig",
145
+ next: "@popall"
146
+ }
147
+ ]], [/./, "string.twig"]],
148
+ variableState: [[
149
+ /[-~]?}}/,
150
+ "delimiter.twig",
151
+ "@pop"
152
+ ], { include: "expression" }],
153
+ stringState: [
154
+ [
155
+ /"/,
156
+ "string.twig",
157
+ "@pop"
158
+ ],
159
+ [
160
+ /#{\s*/,
161
+ "string.twig",
162
+ "@interpolationState"
163
+ ],
164
+ [/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/, "string.twig"]
165
+ ],
166
+ interpolationState: [[
167
+ /}/,
168
+ "string.twig",
169
+ "@pop"
170
+ ], { include: "expression" }],
171
+ expression: [
172
+ [/\s+/],
173
+ [/\+|-|\/{1,2}|%|\*{1,2}/, "operators.twig"],
174
+ [/(and|or|not|b-and|b-xor|b-or)(\s+)/, ["operators.twig", ""]],
175
+ [/==|!=|<|>|>=|<=/, "operators.twig"],
176
+ [/(starts with|ends with|matches)(\s+)/, ["operators.twig", ""]],
177
+ [/(in)(\s+)/, ["operators.twig", ""]],
178
+ [/(is)(\s+)/, ["operators.twig", ""]],
179
+ [/\||~|:|\.{1,2}|\?{1,2}/, "operators.twig"],
180
+ [/[^\W\d][\w]*/, { cases: {
181
+ "@keywords": "keyword.twig",
182
+ "@default": "variable.twig"
183
+ } }],
184
+ [/\d+(\.\d+)?/, "number.twig"],
185
+ [/\(|\)|\[|\]|{|}|,/, "delimiter.twig"],
186
+ [/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/, "string.twig"],
187
+ [
188
+ /"/,
189
+ "string.twig",
190
+ "@stringState"
191
+ ],
192
+ [/=>/, "operators.twig"],
193
+ [/=/, "operators.twig"]
194
+ ],
195
+ doctype: [[/[^>]+/, "metatag.content.html"], [
196
+ />/,
197
+ "metatag.html",
198
+ "@pop"
199
+ ]],
200
+ comment: [
201
+ [
202
+ /-->/,
203
+ "comment.html",
204
+ "@pop"
205
+ ],
206
+ [/[^-]+/, "comment.content.html"],
207
+ [/./, "comment.content.html"]
208
+ ],
209
+ otherTag: [
210
+ [
211
+ /\/?>/,
212
+ "delimiter.html",
213
+ "@pop"
214
+ ],
215
+ [/"([^"]*)"/, "attribute.value.html"],
216
+ [/'([^']*)'/, "attribute.value.html"],
217
+ [/[\w\-]+/, "attribute.name.html"],
218
+ [/=/, "delimiter.html"],
219
+ [/[ \t\r\n]+/]
220
+ ],
221
+ script: [
222
+ [
223
+ /type/,
224
+ "attribute.name.html",
225
+ "@scriptAfterType"
226
+ ],
227
+ [/"([^"]*)"/, "attribute.value.html"],
228
+ [/'([^']*)'/, "attribute.value.html"],
229
+ [/[\w\-]+/, "attribute.name.html"],
230
+ [/=/, "delimiter.html"],
231
+ [/>/, {
232
+ token: "delimiter.html",
233
+ next: "@scriptEmbedded",
234
+ nextEmbedded: "text/javascript"
235
+ }],
236
+ [/[ \t\r\n]+/],
237
+ [/(<\/)(script\s*)(>)/, [
238
+ "delimiter.html",
239
+ "tag.html",
240
+ {
241
+ token: "delimiter.html",
242
+ next: "@pop"
243
+ }
244
+ ]]
245
+ ],
246
+ scriptAfterType: [
247
+ [
248
+ /=/,
249
+ "delimiter.html",
250
+ "@scriptAfterTypeEquals"
251
+ ],
252
+ [/>/, {
253
+ token: "delimiter.html",
254
+ next: "@scriptEmbedded",
255
+ nextEmbedded: "text/javascript"
256
+ }],
257
+ [/[ \t\r\n]+/],
258
+ [/<\/script\s*>/, {
259
+ token: "@rematch",
260
+ next: "@pop"
261
+ }]
262
+ ],
263
+ scriptAfterTypeEquals: [
264
+ [/"([^"]*)"/, {
265
+ token: "attribute.value.html",
266
+ switchTo: "@scriptWithCustomType.$1"
267
+ }],
268
+ [/'([^']*)'/, {
269
+ token: "attribute.value.html",
270
+ switchTo: "@scriptWithCustomType.$1"
271
+ }],
272
+ [/>/, {
273
+ token: "delimiter.html",
274
+ next: "@scriptEmbedded",
275
+ nextEmbedded: "text/javascript"
276
+ }],
277
+ [/[ \t\r\n]+/],
278
+ [/<\/script\s*>/, {
279
+ token: "@rematch",
280
+ next: "@pop"
281
+ }]
282
+ ],
283
+ scriptWithCustomType: [
284
+ [/>/, {
285
+ token: "delimiter.html",
286
+ next: "@scriptEmbedded.$S2",
287
+ nextEmbedded: "$S2"
288
+ }],
289
+ [/"([^"]*)"/, "attribute.value.html"],
290
+ [/'([^']*)'/, "attribute.value.html"],
291
+ [/[\w\-]+/, "attribute.name.html"],
292
+ [/=/, "delimiter.html"],
293
+ [/[ \t\r\n]+/],
294
+ [/<\/script\s*>/, {
295
+ token: "@rematch",
296
+ next: "@pop"
297
+ }]
298
+ ],
299
+ scriptEmbedded: [[/<\/script/, {
300
+ token: "@rematch",
301
+ next: "@pop",
302
+ nextEmbedded: "@pop"
303
+ }], [/[^<]+/, ""]],
304
+ style: [
305
+ [
306
+ /type/,
307
+ "attribute.name.html",
308
+ "@styleAfterType"
309
+ ],
310
+ [/"([^"]*)"/, "attribute.value.html"],
311
+ [/'([^']*)'/, "attribute.value.html"],
312
+ [/[\w\-]+/, "attribute.name.html"],
313
+ [/=/, "delimiter.html"],
314
+ [/>/, {
315
+ token: "delimiter.html",
316
+ next: "@styleEmbedded",
317
+ nextEmbedded: "text/css"
318
+ }],
319
+ [/[ \t\r\n]+/],
320
+ [/(<\/)(style\s*)(>)/, [
321
+ "delimiter.html",
322
+ "tag.html",
323
+ {
324
+ token: "delimiter.html",
325
+ next: "@pop"
326
+ }
327
+ ]]
328
+ ],
329
+ styleAfterType: [
330
+ [
331
+ /=/,
332
+ "delimiter.html",
333
+ "@styleAfterTypeEquals"
334
+ ],
335
+ [/>/, {
336
+ token: "delimiter.html",
337
+ next: "@styleEmbedded",
338
+ nextEmbedded: "text/css"
339
+ }],
340
+ [/[ \t\r\n]+/],
341
+ [/<\/style\s*>/, {
342
+ token: "@rematch",
343
+ next: "@pop"
344
+ }]
345
+ ],
346
+ styleAfterTypeEquals: [
347
+ [/"([^"]*)"/, {
348
+ token: "attribute.value.html",
349
+ switchTo: "@styleWithCustomType.$1"
350
+ }],
351
+ [/'([^']*)'/, {
352
+ token: "attribute.value.html",
353
+ switchTo: "@styleWithCustomType.$1"
354
+ }],
355
+ [/>/, {
356
+ token: "delimiter.html",
357
+ next: "@styleEmbedded",
358
+ nextEmbedded: "text/css"
359
+ }],
360
+ [/[ \t\r\n]+/],
361
+ [/<\/style\s*>/, {
362
+ token: "@rematch",
363
+ next: "@pop"
364
+ }]
365
+ ],
366
+ styleWithCustomType: [
367
+ [/>/, {
368
+ token: "delimiter.html",
369
+ next: "@styleEmbedded.$S2",
370
+ nextEmbedded: "$S2"
371
+ }],
372
+ [/"([^"]*)"/, "attribute.value.html"],
373
+ [/'([^']*)'/, "attribute.value.html"],
374
+ [/[\w\-]+/, "attribute.name.html"],
375
+ [/=/, "delimiter.html"],
376
+ [/[ \t\r\n]+/],
377
+ [/<\/style\s*>/, {
378
+ token: "@rematch",
379
+ next: "@pop"
380
+ }]
381
+ ],
382
+ styleEmbedded: [[/<\/style/, {
383
+ token: "@rematch",
384
+ next: "@pop",
385
+ nextEmbedded: "@pop"
386
+ }], [/[^<]+/, ""]]
387
+ }
388
+ };
389
+ //#endregion
390
+ export { e as conf, t as language };
@@ -0,0 +1,257 @@
1
+ import { m as e } from "./editor.api-C_6h_pYy.js";
2
+ //#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/typescript/typescript.js
3
+ var t = {
4
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
5
+ comments: {
6
+ lineComment: "//",
7
+ blockComment: ["/*", "*/"]
8
+ },
9
+ brackets: [
10
+ ["{", "}"],
11
+ ["[", "]"],
12
+ ["(", ")"]
13
+ ],
14
+ onEnterRules: [
15
+ {
16
+ beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
17
+ afterText: /^\s*\*\/$/,
18
+ action: {
19
+ indentAction: e.IndentAction.IndentOutdent,
20
+ appendText: " * "
21
+ }
22
+ },
23
+ {
24
+ beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
25
+ action: {
26
+ indentAction: e.IndentAction.None,
27
+ appendText: " * "
28
+ }
29
+ },
30
+ {
31
+ beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
32
+ action: {
33
+ indentAction: e.IndentAction.None,
34
+ appendText: "* "
35
+ }
36
+ },
37
+ {
38
+ beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
39
+ action: {
40
+ indentAction: e.IndentAction.None,
41
+ removeText: 1
42
+ }
43
+ }
44
+ ],
45
+ autoClosingPairs: [
46
+ {
47
+ open: "{",
48
+ close: "}"
49
+ },
50
+ {
51
+ open: "[",
52
+ close: "]"
53
+ },
54
+ {
55
+ open: "(",
56
+ close: ")"
57
+ },
58
+ {
59
+ open: "\"",
60
+ close: "\"",
61
+ notIn: ["string"]
62
+ },
63
+ {
64
+ open: "'",
65
+ close: "'",
66
+ notIn: ["string", "comment"]
67
+ },
68
+ {
69
+ open: "`",
70
+ close: "`",
71
+ notIn: ["string", "comment"]
72
+ },
73
+ {
74
+ open: "/**",
75
+ close: " */",
76
+ notIn: ["string"]
77
+ }
78
+ ],
79
+ folding: { markers: {
80
+ start: /* @__PURE__ */ RegExp("^\\s*//\\s*#?region\\b"),
81
+ end: /* @__PURE__ */ RegExp("^\\s*//\\s*#?endregion\\b")
82
+ } }
83
+ }, n = {
84
+ defaultToken: "invalid",
85
+ tokenPostfix: ".ts",
86
+ keywords: /* @__PURE__ */ "abstract.any.as.asserts.bigint.boolean.break.case.catch.class.continue.const.constructor.debugger.declare.default.delete.do.else.enum.export.extends.false.finally.for.from.function.get.if.implements.import.in.infer.instanceof.interface.is.keyof.let.module.namespace.never.new.null.number.object.out.package.private.protected.public.override.readonly.require.global.return.satisfies.set.static.string.super.switch.symbol.this.throw.true.try.type.typeof.undefined.unique.unknown.var.void.while.with.yield.async.await.of".split("."),
87
+ operators: /* @__PURE__ */ "<=.>=.==.!=.===.!==.=>.+.-.**.*./.%.++.--.<<.</.>>.>>>.&.|.^.!.~.&&.||.??.?.:.=.+=.-=.*=.**=./=.%=.<<=.>>=.>>>=.&=.|=.^=.@".split("."),
88
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
89
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
90
+ digits: /\d+(_+\d+)*/,
91
+ octaldigits: /[0-7]+(_+[0-7]+)*/,
92
+ binarydigits: /[0-1]+(_+[0-1]+)*/,
93
+ hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
94
+ regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
95
+ regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
96
+ tokenizer: {
97
+ root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
98
+ common: [
99
+ [/#?[a-z_$][\w$]*/, { cases: {
100
+ "@keywords": "keyword",
101
+ "@default": "identifier"
102
+ } }],
103
+ [/[A-Z][\w\$]*/, "type.identifier"],
104
+ { include: "@whitespace" },
105
+ [/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/, {
106
+ token: "regexp",
107
+ bracket: "@open",
108
+ next: "@regexp"
109
+ }],
110
+ [/[()\[\]]/, "@brackets"],
111
+ [/[<>](?!@symbols)/, "@brackets"],
112
+ [/!(?=([^=]|$))/, "delimiter"],
113
+ [/@symbols/, { cases: {
114
+ "@operators": "delimiter",
115
+ "@default": ""
116
+ } }],
117
+ [/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
118
+ [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
119
+ [/0[xX](@hexdigits)n?/, "number.hex"],
120
+ [/0[oO]?(@octaldigits)n?/, "number.octal"],
121
+ [/0[bB](@binarydigits)n?/, "number.binary"],
122
+ [/(@digits)n?/, "number"],
123
+ [/[;,.]/, "delimiter"],
124
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
125
+ [/'([^'\\]|\\.)*$/, "string.invalid"],
126
+ [
127
+ /"/,
128
+ "string",
129
+ "@string_double"
130
+ ],
131
+ [
132
+ /'/,
133
+ "string",
134
+ "@string_single"
135
+ ],
136
+ [
137
+ /`/,
138
+ "string",
139
+ "@string_backtick"
140
+ ]
141
+ ],
142
+ whitespace: [
143
+ [/[ \t\r\n]+/, ""],
144
+ [
145
+ /\/\*\*(?!\/)/,
146
+ "comment.doc",
147
+ "@jsdoc"
148
+ ],
149
+ [
150
+ /\/\*/,
151
+ "comment",
152
+ "@comment"
153
+ ],
154
+ [/\/\/.*$/, "comment"]
155
+ ],
156
+ comment: [
157
+ [/[^\/*]+/, "comment"],
158
+ [
159
+ /\*\//,
160
+ "comment",
161
+ "@pop"
162
+ ],
163
+ [/[\/*]/, "comment"]
164
+ ],
165
+ jsdoc: [
166
+ [/[^\/*]+/, "comment.doc"],
167
+ [
168
+ /\*\//,
169
+ "comment.doc",
170
+ "@pop"
171
+ ],
172
+ [/[\/*]/, "comment.doc"]
173
+ ],
174
+ regexp: [
175
+ [/(\{)(\d+(?:,\d*)?)(\})/, [
176
+ "regexp.escape.control",
177
+ "regexp.escape.control",
178
+ "regexp.escape.control"
179
+ ]],
180
+ [/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/, ["regexp.escape.control", {
181
+ token: "regexp.escape.control",
182
+ next: "@regexrange"
183
+ }]],
184
+ [/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
185
+ [/[()]/, "regexp.escape.control"],
186
+ [/@regexpctl/, "regexp.escape.control"],
187
+ [/[^\\\/]/, "regexp"],
188
+ [/@regexpesc/, "regexp.escape"],
189
+ [/\\\./, "regexp.invalid"],
190
+ [/(\/)([dgimsuy]*)/, [{
191
+ token: "regexp",
192
+ bracket: "@close",
193
+ next: "@pop"
194
+ }, "keyword.other"]]
195
+ ],
196
+ regexrange: [
197
+ [/-/, "regexp.escape.control"],
198
+ [/\^/, "regexp.invalid"],
199
+ [/@regexpesc/, "regexp.escape"],
200
+ [/[^\]]/, "regexp"],
201
+ [/\]/, {
202
+ token: "regexp.escape.control",
203
+ next: "@pop",
204
+ bracket: "@close"
205
+ }]
206
+ ],
207
+ string_double: [
208
+ [/[^\\"]+/, "string"],
209
+ [/@escapes/, "string.escape"],
210
+ [/\\./, "string.escape.invalid"],
211
+ [
212
+ /"/,
213
+ "string",
214
+ "@pop"
215
+ ]
216
+ ],
217
+ string_single: [
218
+ [/[^\\']+/, "string"],
219
+ [/@escapes/, "string.escape"],
220
+ [/\\./, "string.escape.invalid"],
221
+ [
222
+ /'/,
223
+ "string",
224
+ "@pop"
225
+ ]
226
+ ],
227
+ string_backtick: [
228
+ [/\$\{/, {
229
+ token: "delimiter.bracket",
230
+ next: "@bracketCounting"
231
+ }],
232
+ [/[^\\`$]+/, "string"],
233
+ [/@escapes/, "string.escape"],
234
+ [/\\./, "string.escape.invalid"],
235
+ [
236
+ /`/,
237
+ "string",
238
+ "@pop"
239
+ ]
240
+ ],
241
+ bracketCounting: [
242
+ [
243
+ /\{/,
244
+ "delimiter.bracket",
245
+ "@bracketCounting"
246
+ ],
247
+ [
248
+ /\}/,
249
+ "delimiter.bracket",
250
+ "@pop"
251
+ ],
252
+ { include: "common" }
253
+ ]
254
+ }
255
+ };
256
+ //#endregion
257
+ export { t as conf, n as language };