monaco-editor11 1.0.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 (106) hide show
  1. package/README.md +5 -0
  2. package/dist/App.vue.d.ts +2 -0
  3. package/dist/abap-CrvW7_qN.mjs +1398 -0
  4. package/dist/apex-BAOI8p1v.mjs +327 -0
  5. package/dist/assets/css.worker-C7FogG4G.js +93 -0
  6. package/dist/assets/editor.worker-iXcRX1Tq.js +26 -0
  7. package/dist/assets/html.worker-C8VxctEJ.js +470 -0
  8. package/dist/assets/json.worker-CMC9kgPL.js +58 -0
  9. package/dist/assets/ts.worker-CtTJ3hNN.js +67731 -0
  10. package/dist/azcli-BlCk_UqW.mjs +68 -0
  11. package/dist/bat-DPoEelVx.mjs +100 -0
  12. package/dist/bicep-Cp1F394l.mjs +102 -0
  13. package/dist/cameligo-CWqtSlQs.mjs +174 -0
  14. package/dist/clojure-CKBp32Gf.mjs +761 -0
  15. package/dist/coffee-CDo6vc-J.mjs +232 -0
  16. package/dist/cpp-DokufPgf.mjs +389 -0
  17. package/dist/csharp-BQi3szM0.mjs +326 -0
  18. package/dist/csp-BSGtCCZ-.mjs +53 -0
  19. package/dist/css-DEPFDJfb.mjs +187 -0
  20. package/dist/cssMode-BhKA1zSu.mjs +141 -0
  21. package/dist/cypher-DAb1vOxS.mjs +263 -0
  22. package/dist/dart-C8p4jewR.mjs +281 -0
  23. package/dist/dockerfile-DP0iLFPN.mjs +130 -0
  24. package/dist/ecl-BDQHA6fi.mjs +456 -0
  25. package/dist/elixir-D4II6kDM.mjs +569 -0
  26. package/dist/flow9-StcnL-VB.mjs +142 -0
  27. package/dist/freemarker2-ww_D58dk.mjs +982 -0
  28. package/dist/fsharp-DdUVp3EN.mjs +217 -0
  29. package/dist/go-D1-I258M.mjs +218 -0
  30. package/dist/graphql-DWkL3f8U.mjs +151 -0
  31. package/dist/handlebars-p6e472fk.mjs +412 -0
  32. package/dist/hb-vue3-print-nb.es.js +24 -0
  33. package/dist/hb-vue3-print-nb.umd.js +1234 -0
  34. package/dist/hcl-D_0MNifv.mjs +183 -0
  35. package/dist/html-RxjjEvRj.mjs +301 -0
  36. package/dist/htmlMode-CJ7jqvHB.mjs +152 -0
  37. package/dist/index copy.d.ts +7 -0
  38. package/dist/index-D22E33Ns.mjs +128804 -0
  39. package/dist/index.d.ts +9 -0
  40. package/dist/ini-C4I2-MT7.mjs +71 -0
  41. package/dist/java-OBvaP_SS.mjs +232 -0
  42. package/dist/javascript-4cugaJH-.mjs +70 -0
  43. package/dist/jsonMode-mEAKo0MB.mjs +577 -0
  44. package/dist/julia-BmDH8Kkf.mjs +511 -0
  45. package/dist/kotlin-Dhu5AGOD.mjs +252 -0
  46. package/dist/less-CzmjXREq.mjs +162 -0
  47. package/dist/lexon-CV2c4pN9.mjs +157 -0
  48. package/dist/liquid-CHAki8UD.mjs +233 -0
  49. package/dist/lspLanguageFeatures-B7Hqx8aW.mjs +1458 -0
  50. package/dist/lua-CFY5U8qF.mjs +162 -0
  51. package/dist/m3-BL_AnZVh.mjs +210 -0
  52. package/dist/main.d.ts +0 -0
  53. package/dist/markdown-CWKQPXCv.mjs +229 -0
  54. package/dist/mdx-zeC77g8c.mjs +158 -0
  55. package/dist/mips-ButYmJ5E.mjs +198 -0
  56. package/dist/monaco-editor11.css +1 -0
  57. package/dist/msdax-C3cnXqDh.mjs +375 -0
  58. package/dist/mysql-YlSHaf6G.mjs +878 -0
  59. package/dist/objective-c-Dwnlproe.mjs +183 -0
  60. package/dist/pascal-UzGbSWEN.mjs +251 -0
  61. package/dist/pascaligo-CslTgu68.mjs +164 -0
  62. package/dist/perl-oj6r_mgw.mjs +626 -0
  63. package/dist/pgsql-DSBO0Mev.mjs +851 -0
  64. package/dist/php-YzCD--7j.mjs +500 -0
  65. package/dist/pla-CmylB8vQ.mjs +137 -0
  66. package/dist/postiats-CLFW5gNY.mjs +907 -0
  67. package/dist/powerquery-CmOWUvlh.mjs +890 -0
  68. package/dist/powershell-fHQcmBLK.mjs +239 -0
  69. package/dist/protobuf-p5BArb-9.mjs +420 -0
  70. package/dist/pug-gVdUDvqf.mjs +402 -0
  71. package/dist/python-DULwfuw6.mjs +294 -0
  72. package/dist/qsharp-DnrWSUlt.mjs +301 -0
  73. package/dist/r-Cv309K2z.mjs +243 -0
  74. package/dist/razor-c0jgmA5G.mjs +543 -0
  75. package/dist/redis-DTcS4wMj.mjs +302 -0
  76. package/dist/redshift-hLxZVESM.mjs +809 -0
  77. package/dist/restructuredtext-C898lK4f.mjs +174 -0
  78. package/dist/router/index.d.ts +2 -0
  79. package/dist/ruby-CgKtnJIQ.mjs +511 -0
  80. package/dist/rust-bj8oxVnh.mjs +343 -0
  81. package/dist/sb-DWynz26l.mjs +115 -0
  82. package/dist/scala-BL5z1UEd.mjs +370 -0
  83. package/dist/scheme-DUJsH6VU.mjs +108 -0
  84. package/dist/scss-CxjmhvaL.mjs +262 -0
  85. package/dist/shell-D14Zs1dF.mjs +221 -0
  86. package/dist/solidity-WyRm-BGK.mjs +1367 -0
  87. package/dist/sophia-CKk-_Oa5.mjs +199 -0
  88. package/dist/sparql-DHtmINMZ.mjs +201 -0
  89. package/dist/sql-Dqaj5JHC.mjs +853 -0
  90. package/dist/st-Bj2IIaop.mjs +416 -0
  91. package/dist/store/index.d.ts +2 -0
  92. package/dist/store/modules/tableConfig.d.ts +7 -0
  93. package/dist/swift-DwxP72iM.mjs +312 -0
  94. package/dist/systemverilog-D7wJfuql.mjs +576 -0
  95. package/dist/tcl-0ApMt-eC.mjs +232 -0
  96. package/dist/tsMode-CepBtZtU.mjs +946 -0
  97. package/dist/twig-DxwbdmvQ.mjs +392 -0
  98. package/dist/typescript-hbfpGuFj.mjs +336 -0
  99. package/dist/typespec-Fd-JwSuS.mjs +117 -0
  100. package/dist/vb-CxuyYE1I.mjs +372 -0
  101. package/dist/views/Home.vue.d.ts +2 -0
  102. package/dist/vite.svg +1 -0
  103. package/dist/wgsl-DoEGc31J.mjs +439 -0
  104. package/dist/xml-DE69CcMx.mjs +88 -0
  105. package/dist/yaml-CdiGER8y.mjs +199 -0
  106. package/package.json +37 -0
@@ -0,0 +1,412 @@
1
+ import { l as e } from "./index-D22E33Ns.mjs";
2
+ const t = [
3
+ "area",
4
+ "base",
5
+ "br",
6
+ "col",
7
+ "embed",
8
+ "hr",
9
+ "img",
10
+ "input",
11
+ "keygen",
12
+ "link",
13
+ "menuitem",
14
+ "meta",
15
+ "param",
16
+ "source",
17
+ "track",
18
+ "wbr"
19
+ ], a = {
20
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
21
+ comments: {
22
+ blockComment: ["{{!--", "--}}"]
23
+ },
24
+ brackets: [
25
+ ["<!--", "-->"],
26
+ ["<", ">"],
27
+ ["{{", "}}"],
28
+ ["{", "}"],
29
+ ["(", ")"]
30
+ ],
31
+ autoClosingPairs: [
32
+ { open: "{", close: "}" },
33
+ { open: "[", close: "]" },
34
+ { open: "(", close: ")" },
35
+ { open: '"', close: '"' },
36
+ { open: "'", close: "'" }
37
+ ],
38
+ surroundingPairs: [
39
+ { open: "<", close: ">" },
40
+ { open: '"', close: '"' },
41
+ { open: "'", close: "'" }
42
+ ],
43
+ onEnterRules: [
44
+ {
45
+ beforeText: new RegExp(
46
+ `<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
47
+ "i"
48
+ ),
49
+ afterText: /^<\/(\w[\w\d]*)\s*>$/i,
50
+ action: {
51
+ indentAction: e.IndentAction.IndentOutdent
52
+ }
53
+ },
54
+ {
55
+ beforeText: new RegExp(
56
+ `<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
57
+ "i"
58
+ ),
59
+ action: { indentAction: e.IndentAction.Indent }
60
+ }
61
+ ]
62
+ }, m = {
63
+ defaultToken: "",
64
+ tokenPostfix: "",
65
+ // ignoreCase: true,
66
+ // The main tokenizer for our languages
67
+ tokenizer: {
68
+ root: [
69
+ [/\{\{!--/, "comment.block.start.handlebars", "@commentBlock"],
70
+ [/\{\{!/, "comment.start.handlebars", "@comment"],
71
+ [/\{\{/, { token: "@rematch", switchTo: "@handlebarsInSimpleState.root" }],
72
+ [/<!DOCTYPE/, "metatag.html", "@doctype"],
73
+ [/<!--/, "comment.html", "@commentHtml"],
74
+ [/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
75
+ [/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
76
+ [/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
77
+ [/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
78
+ [/(<\/)(\w+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
79
+ [/</, "delimiter.html"],
80
+ [/\{/, "delimiter.html"],
81
+ [/[^<{]+/]
82
+ // text
83
+ ],
84
+ doctype: [
85
+ [
86
+ /\{\{/,
87
+ {
88
+ token: "@rematch",
89
+ switchTo: "@handlebarsInSimpleState.comment"
90
+ }
91
+ ],
92
+ [/[^>]+/, "metatag.content.html"],
93
+ [/>/, "metatag.html", "@pop"]
94
+ ],
95
+ comment: [
96
+ [/\}\}/, "comment.end.handlebars", "@pop"],
97
+ [/./, "comment.content.handlebars"]
98
+ ],
99
+ commentBlock: [
100
+ [/--\}\}/, "comment.block.end.handlebars", "@pop"],
101
+ [/./, "comment.content.handlebars"]
102
+ ],
103
+ commentHtml: [
104
+ [
105
+ /\{\{/,
106
+ {
107
+ token: "@rematch",
108
+ switchTo: "@handlebarsInSimpleState.comment"
109
+ }
110
+ ],
111
+ [/-->/, "comment.html", "@pop"],
112
+ [/[^-]+/, "comment.content.html"],
113
+ [/./, "comment.content.html"]
114
+ ],
115
+ otherTag: [
116
+ [
117
+ /\{\{/,
118
+ {
119
+ token: "@rematch",
120
+ switchTo: "@handlebarsInSimpleState.otherTag"
121
+ }
122
+ ],
123
+ [/\/?>/, "delimiter.html", "@pop"],
124
+ [/"([^"]*)"/, "attribute.value"],
125
+ [/'([^']*)'/, "attribute.value"],
126
+ [/[\w\-]+/, "attribute.name"],
127
+ [/=/, "delimiter"],
128
+ [/[ \t\r\n]+/]
129
+ // whitespace
130
+ ],
131
+ // -- BEGIN <script> tags handling
132
+ // After <script
133
+ script: [
134
+ [
135
+ /\{\{/,
136
+ {
137
+ token: "@rematch",
138
+ switchTo: "@handlebarsInSimpleState.script"
139
+ }
140
+ ],
141
+ [/type/, "attribute.name", "@scriptAfterType"],
142
+ [/"([^"]*)"/, "attribute.value"],
143
+ [/'([^']*)'/, "attribute.value"],
144
+ [/[\w\-]+/, "attribute.name"],
145
+ [/=/, "delimiter"],
146
+ [
147
+ />/,
148
+ {
149
+ token: "delimiter.html",
150
+ next: "@scriptEmbedded.text/javascript",
151
+ nextEmbedded: "text/javascript"
152
+ }
153
+ ],
154
+ [/[ \t\r\n]+/],
155
+ // whitespace
156
+ [
157
+ /(<\/)(script\s*)(>)/,
158
+ ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
159
+ ]
160
+ ],
161
+ // After <script ... type
162
+ scriptAfterType: [
163
+ [
164
+ /\{\{/,
165
+ {
166
+ token: "@rematch",
167
+ switchTo: "@handlebarsInSimpleState.scriptAfterType"
168
+ }
169
+ ],
170
+ [/=/, "delimiter", "@scriptAfterTypeEquals"],
171
+ [
172
+ />/,
173
+ {
174
+ token: "delimiter.html",
175
+ next: "@scriptEmbedded.text/javascript",
176
+ nextEmbedded: "text/javascript"
177
+ }
178
+ ],
179
+ // cover invalid e.g. <script type>
180
+ [/[ \t\r\n]+/],
181
+ // whitespace
182
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
183
+ ],
184
+ // After <script ... type =
185
+ scriptAfterTypeEquals: [
186
+ [
187
+ /\{\{/,
188
+ {
189
+ token: "@rematch",
190
+ switchTo: "@handlebarsInSimpleState.scriptAfterTypeEquals"
191
+ }
192
+ ],
193
+ [
194
+ /"([^"]*)"/,
195
+ {
196
+ token: "attribute.value",
197
+ switchTo: "@scriptWithCustomType.$1"
198
+ }
199
+ ],
200
+ [
201
+ /'([^']*)'/,
202
+ {
203
+ token: "attribute.value",
204
+ switchTo: "@scriptWithCustomType.$1"
205
+ }
206
+ ],
207
+ [
208
+ />/,
209
+ {
210
+ token: "delimiter.html",
211
+ next: "@scriptEmbedded.text/javascript",
212
+ nextEmbedded: "text/javascript"
213
+ }
214
+ ],
215
+ // cover invalid e.g. <script type=>
216
+ [/[ \t\r\n]+/],
217
+ // whitespace
218
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
219
+ ],
220
+ // After <script ... type = $S2
221
+ scriptWithCustomType: [
222
+ [
223
+ /\{\{/,
224
+ {
225
+ token: "@rematch",
226
+ switchTo: "@handlebarsInSimpleState.scriptWithCustomType.$S2"
227
+ }
228
+ ],
229
+ [
230
+ />/,
231
+ {
232
+ token: "delimiter.html",
233
+ next: "@scriptEmbedded.$S2",
234
+ nextEmbedded: "$S2"
235
+ }
236
+ ],
237
+ [/"([^"]*)"/, "attribute.value"],
238
+ [/'([^']*)'/, "attribute.value"],
239
+ [/[\w\-]+/, "attribute.name"],
240
+ [/=/, "delimiter"],
241
+ [/[ \t\r\n]+/],
242
+ // whitespace
243
+ [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
244
+ ],
245
+ scriptEmbedded: [
246
+ [
247
+ /\{\{/,
248
+ {
249
+ token: "@rematch",
250
+ switchTo: "@handlebarsInEmbeddedState.scriptEmbedded.$S2",
251
+ nextEmbedded: "@pop"
252
+ }
253
+ ],
254
+ [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
255
+ ],
256
+ // -- END <script> tags handling
257
+ // -- BEGIN <style> tags handling
258
+ // After <style
259
+ style: [
260
+ [
261
+ /\{\{/,
262
+ {
263
+ token: "@rematch",
264
+ switchTo: "@handlebarsInSimpleState.style"
265
+ }
266
+ ],
267
+ [/type/, "attribute.name", "@styleAfterType"],
268
+ [/"([^"]*)"/, "attribute.value"],
269
+ [/'([^']*)'/, "attribute.value"],
270
+ [/[\w\-]+/, "attribute.name"],
271
+ [/=/, "delimiter"],
272
+ [
273
+ />/,
274
+ {
275
+ token: "delimiter.html",
276
+ next: "@styleEmbedded.text/css",
277
+ nextEmbedded: "text/css"
278
+ }
279
+ ],
280
+ [/[ \t\r\n]+/],
281
+ // whitespace
282
+ [
283
+ /(<\/)(style\s*)(>)/,
284
+ ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
285
+ ]
286
+ ],
287
+ // After <style ... type
288
+ styleAfterType: [
289
+ [
290
+ /\{\{/,
291
+ {
292
+ token: "@rematch",
293
+ switchTo: "@handlebarsInSimpleState.styleAfterType"
294
+ }
295
+ ],
296
+ [/=/, "delimiter", "@styleAfterTypeEquals"],
297
+ [
298
+ />/,
299
+ {
300
+ token: "delimiter.html",
301
+ next: "@styleEmbedded.text/css",
302
+ nextEmbedded: "text/css"
303
+ }
304
+ ],
305
+ // cover invalid e.g. <style type>
306
+ [/[ \t\r\n]+/],
307
+ // whitespace
308
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
309
+ ],
310
+ // After <style ... type =
311
+ styleAfterTypeEquals: [
312
+ [
313
+ /\{\{/,
314
+ {
315
+ token: "@rematch",
316
+ switchTo: "@handlebarsInSimpleState.styleAfterTypeEquals"
317
+ }
318
+ ],
319
+ [
320
+ /"([^"]*)"/,
321
+ {
322
+ token: "attribute.value",
323
+ switchTo: "@styleWithCustomType.$1"
324
+ }
325
+ ],
326
+ [
327
+ /'([^']*)'/,
328
+ {
329
+ token: "attribute.value",
330
+ switchTo: "@styleWithCustomType.$1"
331
+ }
332
+ ],
333
+ [
334
+ />/,
335
+ {
336
+ token: "delimiter.html",
337
+ next: "@styleEmbedded.text/css",
338
+ nextEmbedded: "text/css"
339
+ }
340
+ ],
341
+ // cover invalid e.g. <style type=>
342
+ [/[ \t\r\n]+/],
343
+ // whitespace
344
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
345
+ ],
346
+ // After <style ... type = $S2
347
+ styleWithCustomType: [
348
+ [
349
+ /\{\{/,
350
+ {
351
+ token: "@rematch",
352
+ switchTo: "@handlebarsInSimpleState.styleWithCustomType.$S2"
353
+ }
354
+ ],
355
+ [
356
+ />/,
357
+ {
358
+ token: "delimiter.html",
359
+ next: "@styleEmbedded.$S2",
360
+ nextEmbedded: "$S2"
361
+ }
362
+ ],
363
+ [/"([^"]*)"/, "attribute.value"],
364
+ [/'([^']*)'/, "attribute.value"],
365
+ [/[\w\-]+/, "attribute.name"],
366
+ [/=/, "delimiter"],
367
+ [/[ \t\r\n]+/],
368
+ // whitespace
369
+ [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
370
+ ],
371
+ styleEmbedded: [
372
+ [
373
+ /\{\{/,
374
+ {
375
+ token: "@rematch",
376
+ switchTo: "@handlebarsInEmbeddedState.styleEmbedded.$S2",
377
+ nextEmbedded: "@pop"
378
+ }
379
+ ],
380
+ [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
381
+ ],
382
+ // -- END <style> tags handling
383
+ handlebarsInSimpleState: [
384
+ [/\{\{\{?/, "delimiter.handlebars"],
385
+ [/\}\}\}?/, { token: "delimiter.handlebars", switchTo: "@$S2.$S3" }],
386
+ { include: "handlebarsRoot" }
387
+ ],
388
+ handlebarsInEmbeddedState: [
389
+ [/\{\{\{?/, "delimiter.handlebars"],
390
+ [
391
+ /\}\}\}?/,
392
+ {
393
+ token: "delimiter.handlebars",
394
+ switchTo: "@$S2.$S3",
395
+ nextEmbedded: "$S3"
396
+ }
397
+ ],
398
+ { include: "handlebarsRoot" }
399
+ ],
400
+ handlebarsRoot: [
401
+ [/"[^"]*"/, "string.handlebars"],
402
+ [/[#/][^\s}]+/, "keyword.helper.handlebars"],
403
+ [/else\b/, "keyword.helper.handlebars"],
404
+ [/[\s]+/],
405
+ [/[^}]/, "variable.parameter.handlebars"]
406
+ ]
407
+ }
408
+ };
409
+ export {
410
+ a as conf,
411
+ m as language
412
+ };
@@ -0,0 +1,24 @@
1
+ import { C as s, E as o, K as r, h as i, M as t, a as n, P as c, R as l, S as k, j as g, T as M, U as S, c as d, m, e as p, d as y, i as T, f as C, l as K, b as W, g as b } from "./index-D22E33Ns.mjs";
2
+ export {
3
+ s as CancellationTokenSource,
4
+ o as Emitter,
5
+ r as KeyCode,
6
+ i as KeyMod,
7
+ t as MarkerSeverity,
8
+ n as MarkerTag,
9
+ c as Position,
10
+ l as Range,
11
+ k as Selection,
12
+ g as SelectionDirection,
13
+ M as Token,
14
+ S as Uri,
15
+ d as createWebWorker,
16
+ m as css,
17
+ p as editor,
18
+ y as html,
19
+ T as initMonacoWorker,
20
+ C as json,
21
+ K as languages,
22
+ W as lsp,
23
+ b as typescript
24
+ };