@wyltils/ems-editor 1.0.6 → 1.0.7

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 (95) hide show
  1. package/dist/index.es.js +27111 -6
  2. package/dist/index.umd.js +47 -1278
  3. package/dist/style.css +1 -1
  4. package/package.json +3 -2
  5. package/dist/abap-CrvW7_qN.mjs +0 -1398
  6. package/dist/apex-BAOI8p1v.mjs +0 -327
  7. package/dist/assets/css.worker-Cb0JI69t.js +0 -93
  8. package/dist/assets/html.worker-BNFZMwEc.js +0 -470
  9. package/dist/assets/json.worker-BCybXpia.js +0 -58
  10. package/dist/assets/ts.worker-DAVh1bw1.js +0 -67731
  11. package/dist/azcli-BlCk_UqW.mjs +0 -68
  12. package/dist/bat-DPoEelVx.mjs +0 -100
  13. package/dist/bicep-Cp1F394l.mjs +0 -102
  14. package/dist/cameligo-CWqtSlQs.mjs +0 -174
  15. package/dist/clojure-CKBp32Gf.mjs +0 -761
  16. package/dist/coffee-CDo6vc-J.mjs +0 -232
  17. package/dist/cpp-DokufPgf.mjs +0 -389
  18. package/dist/csharp-BQi3szM0.mjs +0 -326
  19. package/dist/csp-BSGtCCZ-.mjs +0 -53
  20. package/dist/css-DEPFDJfb.mjs +0 -187
  21. package/dist/cssMode-BQWHP5tX.mjs +0 -141
  22. package/dist/cypher-DAb1vOxS.mjs +0 -263
  23. package/dist/dart-C8p4jewR.mjs +0 -281
  24. package/dist/dockerfile-DP0iLFPN.mjs +0 -130
  25. package/dist/ecl-BDQHA6fi.mjs +0 -456
  26. package/dist/elixir-D4II6kDM.mjs +0 -569
  27. package/dist/flow9-StcnL-VB.mjs +0 -142
  28. package/dist/freemarker2-CNxGutTH.mjs +0 -982
  29. package/dist/fsharp-DdUVp3EN.mjs +0 -217
  30. package/dist/go-D1-I258M.mjs +0 -218
  31. package/dist/graphql-DWkL3f8U.mjs +0 -151
  32. package/dist/handlebars-BeGl4mC9.mjs +0 -412
  33. package/dist/hcl-D_0MNifv.mjs +0 -183
  34. package/dist/html-DGPY2Tu6.mjs +0 -301
  35. package/dist/htmlMode-C5Eyce4S.mjs +0 -152
  36. package/dist/index-B-_8GbpD.mjs +0 -154049
  37. package/dist/ini-C4I2-MT7.mjs +0 -71
  38. package/dist/java-OBvaP_SS.mjs +0 -232
  39. package/dist/javascript-CCdDl_k1.mjs +0 -70
  40. package/dist/jsonMode-B3tZf1PM.mjs +0 -569
  41. package/dist/julia-BmDH8Kkf.mjs +0 -511
  42. package/dist/kotlin-Dhu5AGOD.mjs +0 -252
  43. package/dist/less-CzmjXREq.mjs +0 -162
  44. package/dist/lexon-CV2c4pN9.mjs +0 -157
  45. package/dist/liquid-DDpDjRxF.mjs +0 -233
  46. package/dist/lspLanguageFeatures-CYdvP1CQ.mjs +0 -1458
  47. package/dist/lua-CFY5U8qF.mjs +0 -162
  48. package/dist/m3-BL_AnZVh.mjs +0 -210
  49. package/dist/markdown-CWKQPXCv.mjs +0 -229
  50. package/dist/mdx-DFVVosUt.mjs +0 -158
  51. package/dist/mips-ButYmJ5E.mjs +0 -198
  52. package/dist/msdax-C3cnXqDh.mjs +0 -375
  53. package/dist/mysql-YlSHaf6G.mjs +0 -878
  54. package/dist/objective-c-Dwnlproe.mjs +0 -183
  55. package/dist/pascal-UzGbSWEN.mjs +0 -251
  56. package/dist/pascaligo-CslTgu68.mjs +0 -164
  57. package/dist/perl-oj6r_mgw.mjs +0 -626
  58. package/dist/pgsql-DSBO0Mev.mjs +0 -851
  59. package/dist/php-YzCD--7j.mjs +0 -500
  60. package/dist/pla-CmylB8vQ.mjs +0 -137
  61. package/dist/postiats-CLFW5gNY.mjs +0 -907
  62. package/dist/powerquery-CmOWUvlh.mjs +0 -890
  63. package/dist/powershell-fHQcmBLK.mjs +0 -239
  64. package/dist/protobuf-p5BArb-9.mjs +0 -420
  65. package/dist/pug-gVdUDvqf.mjs +0 -402
  66. package/dist/python-C50ouaEE.mjs +0 -294
  67. package/dist/qsharp-DnrWSUlt.mjs +0 -301
  68. package/dist/r-Cv309K2z.mjs +0 -243
  69. package/dist/razor-BE2SSaVN.mjs +0 -543
  70. package/dist/redis-DTcS4wMj.mjs +0 -302
  71. package/dist/redshift-hLxZVESM.mjs +0 -809
  72. package/dist/restructuredtext-C898lK4f.mjs +0 -174
  73. package/dist/ruby-CgKtnJIQ.mjs +0 -511
  74. package/dist/rust-bj8oxVnh.mjs +0 -343
  75. package/dist/sb-DWynz26l.mjs +0 -115
  76. package/dist/scala-BL5z1UEd.mjs +0 -370
  77. package/dist/scheme-DUJsH6VU.mjs +0 -108
  78. package/dist/scss-CxjmhvaL.mjs +0 -262
  79. package/dist/shell-D14Zs1dF.mjs +0 -221
  80. package/dist/solidity-WyRm-BGK.mjs +0 -1367
  81. package/dist/sophia-CKk-_Oa5.mjs +0 -199
  82. package/dist/sparql-DHtmINMZ.mjs +0 -201
  83. package/dist/sql-Dqaj5JHC.mjs +0 -853
  84. package/dist/st-Bj2IIaop.mjs +0 -416
  85. package/dist/swift-DwxP72iM.mjs +0 -312
  86. package/dist/systemverilog-D7wJfuql.mjs +0 -576
  87. package/dist/tcl-0ApMt-eC.mjs +0 -232
  88. package/dist/tsMode-_WUnM9ng.mjs +0 -946
  89. package/dist/twig-DxwbdmvQ.mjs +0 -392
  90. package/dist/typescript-Dzb6O-fI.mjs +0 -336
  91. package/dist/typespec-Fd-JwSuS.mjs +0 -117
  92. package/dist/vb-CxuyYE1I.mjs +0 -372
  93. package/dist/wgsl-DoEGc31J.mjs +0 -439
  94. package/dist/xml-DnKaDwqq.mjs +0 -88
  95. package/dist/yaml-LPMg8Vdp.mjs +0 -199
@@ -1,301 +0,0 @@
1
- import { l as e } from "./index-B-_8GbpD.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
- ], i = {
20
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
21
- comments: {
22
- blockComment: ["<!--", "-->"]
23
- },
24
- brackets: [
25
- ["<!--", "-->"],
26
- ["<", ">"],
27
- ["{", "}"],
28
- ["(", ")"]
29
- ],
30
- autoClosingPairs: [
31
- { open: "{", close: "}" },
32
- { open: "[", close: "]" },
33
- { open: "(", close: ")" },
34
- { open: '"', close: '"' },
35
- { open: "'", close: "'" }
36
- ],
37
- surroundingPairs: [
38
- { open: '"', close: '"' },
39
- { open: "'", close: "'" },
40
- { open: "{", close: "}" },
41
- { open: "[", close: "]" },
42
- { open: "(", close: ")" },
43
- { open: "<", close: ">" }
44
- ],
45
- onEnterRules: [
46
- {
47
- beforeText: new RegExp(
48
- `<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,
49
- "i"
50
- ),
51
- afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
52
- action: {
53
- indentAction: e.IndentAction.IndentOutdent
54
- }
55
- },
56
- {
57
- beforeText: new RegExp(
58
- `<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
59
- "i"
60
- ),
61
- action: { indentAction: e.IndentAction.Indent }
62
- }
63
- ],
64
- folding: {
65
- markers: {
66
- start: new RegExp("^\\s*<!--\\s*#region\\b.*-->"),
67
- end: new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")
68
- }
69
- }
70
- }, r = {
71
- defaultToken: "",
72
- tokenPostfix: ".html",
73
- ignoreCase: !0,
74
- // The main tokenizer for our languages
75
- tokenizer: {
76
- root: [
77
- [/<!DOCTYPE/, "metatag", "@doctype"],
78
- [/<!--/, "comment", "@comment"],
79
- [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter", "tag", "", "delimiter"]],
80
- [/(<)(script)/, ["delimiter", { token: "tag", next: "@script" }]],
81
- [/(<)(style)/, ["delimiter", { token: "tag", next: "@style" }]],
82
- [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
83
- [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
84
- [/</, "delimiter"],
85
- [/[^<]+/]
86
- // text
87
- ],
88
- doctype: [
89
- [/[^>]+/, "metatag.content"],
90
- [/>/, "metatag", "@pop"]
91
- ],
92
- comment: [
93
- [/-->/, "comment", "@pop"],
94
- [/[^-]+/, "comment.content"],
95
- [/./, "comment.content"]
96
- ],
97
- otherTag: [
98
- [/\/?>/, "delimiter", "@pop"],
99
- [/"([^"]*)"/, "attribute.value"],
100
- [/'([^']*)'/, "attribute.value"],
101
- [/[\w\-]+/, "attribute.name"],
102
- [/=/, "delimiter"],
103
- [/[ \t\r\n]+/]
104
- // whitespace
105
- ],
106
- // -- BEGIN <script> tags handling
107
- // After <script
108
- script: [
109
- [/type/, "attribute.name", "@scriptAfterType"],
110
- [/"([^"]*)"/, "attribute.value"],
111
- [/'([^']*)'/, "attribute.value"],
112
- [/[\w\-]+/, "attribute.name"],
113
- [/=/, "delimiter"],
114
- [
115
- />/,
116
- {
117
- token: "delimiter",
118
- next: "@scriptEmbedded",
119
- nextEmbedded: "text/javascript"
120
- }
121
- ],
122
- [/[ \t\r\n]+/],
123
- // whitespace
124
- [/(<\/)(script\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
125
- ],
126
- // After <script ... type
127
- scriptAfterType: [
128
- [/=/, "delimiter", "@scriptAfterTypeEquals"],
129
- [
130
- />/,
131
- {
132
- token: "delimiter",
133
- next: "@scriptEmbedded",
134
- nextEmbedded: "text/javascript"
135
- }
136
- ],
137
- // cover invalid e.g. <script type>
138
- [/[ \t\r\n]+/],
139
- // whitespace
140
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
141
- ],
142
- // After <script ... type =
143
- scriptAfterTypeEquals: [
144
- [
145
- /"module"/,
146
- {
147
- token: "attribute.value",
148
- switchTo: "@scriptWithCustomType.text/javascript"
149
- }
150
- ],
151
- [
152
- /'module'/,
153
- {
154
- token: "attribute.value",
155
- switchTo: "@scriptWithCustomType.text/javascript"
156
- }
157
- ],
158
- [
159
- /"([^"]*)"/,
160
- {
161
- token: "attribute.value",
162
- switchTo: "@scriptWithCustomType.$1"
163
- }
164
- ],
165
- [
166
- /'([^']*)'/,
167
- {
168
- token: "attribute.value",
169
- switchTo: "@scriptWithCustomType.$1"
170
- }
171
- ],
172
- [
173
- />/,
174
- {
175
- token: "delimiter",
176
- next: "@scriptEmbedded",
177
- nextEmbedded: "text/javascript"
178
- }
179
- ],
180
- // cover invalid e.g. <script type=>
181
- [/[ \t\r\n]+/],
182
- // whitespace
183
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
184
- ],
185
- // After <script ... type = $S2
186
- scriptWithCustomType: [
187
- [
188
- />/,
189
- {
190
- token: "delimiter",
191
- next: "@scriptEmbedded.$S2",
192
- nextEmbedded: "$S2"
193
- }
194
- ],
195
- [/"([^"]*)"/, "attribute.value"],
196
- [/'([^']*)'/, "attribute.value"],
197
- [/[\w\-]+/, "attribute.name"],
198
- [/=/, "delimiter"],
199
- [/[ \t\r\n]+/],
200
- // whitespace
201
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
202
- ],
203
- scriptEmbedded: [
204
- [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
205
- [/[^<]+/, ""]
206
- ],
207
- // -- END <script> tags handling
208
- // -- BEGIN <style> tags handling
209
- // After <style
210
- style: [
211
- [/type/, "attribute.name", "@styleAfterType"],
212
- [/"([^"]*)"/, "attribute.value"],
213
- [/'([^']*)'/, "attribute.value"],
214
- [/[\w\-]+/, "attribute.name"],
215
- [/=/, "delimiter"],
216
- [
217
- />/,
218
- {
219
- token: "delimiter",
220
- next: "@styleEmbedded",
221
- nextEmbedded: "text/css"
222
- }
223
- ],
224
- [/[ \t\r\n]+/],
225
- // whitespace
226
- [/(<\/)(style\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
227
- ],
228
- // After <style ... type
229
- styleAfterType: [
230
- [/=/, "delimiter", "@styleAfterTypeEquals"],
231
- [
232
- />/,
233
- {
234
- token: "delimiter",
235
- next: "@styleEmbedded",
236
- nextEmbedded: "text/css"
237
- }
238
- ],
239
- // cover invalid e.g. <style type>
240
- [/[ \t\r\n]+/],
241
- // whitespace
242
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
243
- ],
244
- // After <style ... type =
245
- styleAfterTypeEquals: [
246
- [
247
- /"([^"]*)"/,
248
- {
249
- token: "attribute.value",
250
- switchTo: "@styleWithCustomType.$1"
251
- }
252
- ],
253
- [
254
- /'([^']*)'/,
255
- {
256
- token: "attribute.value",
257
- switchTo: "@styleWithCustomType.$1"
258
- }
259
- ],
260
- [
261
- />/,
262
- {
263
- token: "delimiter",
264
- next: "@styleEmbedded",
265
- nextEmbedded: "text/css"
266
- }
267
- ],
268
- // cover invalid e.g. <style type=>
269
- [/[ \t\r\n]+/],
270
- // whitespace
271
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
272
- ],
273
- // After <style ... type = $S2
274
- styleWithCustomType: [
275
- [
276
- />/,
277
- {
278
- token: "delimiter",
279
- next: "@styleEmbedded.$S2",
280
- nextEmbedded: "$S2"
281
- }
282
- ],
283
- [/"([^"]*)"/, "attribute.value"],
284
- [/'([^']*)'/, "attribute.value"],
285
- [/[\w\-]+/, "attribute.name"],
286
- [/=/, "delimiter"],
287
- [/[ \t\r\n]+/],
288
- // whitespace
289
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
290
- ],
291
- styleEmbedded: [
292
- [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
293
- [/[^<]+/, ""]
294
- ]
295
- // -- END <style> tags handling
296
- }
297
- };
298
- export {
299
- i as conf,
300
- r as language
301
- };
@@ -1,152 +0,0 @@
1
- import { c as D, l as t } from "./index-B-_8GbpD.mjs";
2
- import { H as d, D as l, h as c, F as u, b as h, S as m, c as p, f as w, g as _, C as R } from "./lspLanguageFeatures-CYdvP1CQ.mjs";
3
- import { a as E, e as H, d as b, R as y, i as T, j as U, t as x, k as M } from "./lspLanguageFeatures-CYdvP1CQ.mjs";
4
- const I = 2 * 60 * 1e3;
5
- class f {
6
- constructor(n) {
7
- this._defaults = n, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
8
- }
9
- _stopWorker() {
10
- this._worker && (this._worker.dispose(), this._worker = null), this._client = null;
11
- }
12
- dispose() {
13
- clearInterval(this._idleCheckInterval), this._configChangeListener.dispose(), this._stopWorker();
14
- }
15
- _checkIfIdle() {
16
- if (!this._worker)
17
- return;
18
- Date.now() - this._lastUsedTime > I && this._stopWorker();
19
- }
20
- _getClient() {
21
- return this._lastUsedTime = Date.now(), this._client || (this._worker = D({
22
- // module that exports the create() method and returns a `HTMLWorker` instance
23
- moduleId: "vs/language/html/htmlWorker",
24
- createWorker: () => new Worker(new URL(
25
- /* @vite-ignore */
26
- "/assets/html.worker-BNFZMwEc.js",
27
- import.meta.url
28
- ), { type: "module" }),
29
- // passed in to the create() method
30
- createData: {
31
- languageSettings: this._defaults.options,
32
- languageId: this._defaults.languageId
33
- },
34
- label: this._defaults.languageId
35
- }), this._client = this._worker.getProxy()), this._client;
36
- }
37
- getLanguageServiceWorker(...n) {
38
- let e;
39
- return this._getClient().then((r) => {
40
- e = r;
41
- }).then((r) => {
42
- if (this._worker)
43
- return this._worker.withSyncedResources(n);
44
- }).then((r) => e);
45
- }
46
- }
47
- class v extends R {
48
- constructor(n) {
49
- super(n, [".", ":", "<", '"', "=", "/"]);
50
- }
51
- }
52
- function C(i) {
53
- const n = new f(i), e = (...s) => n.getLanguageServiceWorker(...s);
54
- let r = i.languageId;
55
- t.registerCompletionItemProvider(r, new v(e)), t.registerHoverProvider(r, new d(e)), t.registerDocumentHighlightProvider(
56
- r,
57
- new l(e)
58
- ), t.registerLinkProvider(r, new c(e)), t.registerFoldingRangeProvider(
59
- r,
60
- new u(e)
61
- ), t.registerDocumentSymbolProvider(
62
- r,
63
- new h(e)
64
- ), t.registerSelectionRangeProvider(
65
- r,
66
- new m(e)
67
- ), t.registerRenameProvider(r, new p(e)), r === "html" && (t.registerDocumentFormattingEditProvider(
68
- r,
69
- new w(e)
70
- ), t.registerDocumentRangeFormattingEditProvider(
71
- r,
72
- new _(e)
73
- ));
74
- }
75
- function F(i) {
76
- const n = [], e = [], r = new f(i);
77
- n.push(r);
78
- const s = (...o) => r.getLanguageServiceWorker(...o);
79
- function P() {
80
- const { languageId: o, modeConfiguration: a } = i;
81
- k(e), a.completionItems && e.push(
82
- t.registerCompletionItemProvider(o, new v(s))
83
- ), a.hovers && e.push(
84
- t.registerHoverProvider(o, new d(s))
85
- ), a.documentHighlights && e.push(
86
- t.registerDocumentHighlightProvider(
87
- o,
88
- new l(s)
89
- )
90
- ), a.links && e.push(
91
- t.registerLinkProvider(o, new c(s))
92
- ), a.documentSymbols && e.push(
93
- t.registerDocumentSymbolProvider(
94
- o,
95
- new h(s)
96
- )
97
- ), a.rename && e.push(
98
- t.registerRenameProvider(o, new p(s))
99
- ), a.foldingRanges && e.push(
100
- t.registerFoldingRangeProvider(
101
- o,
102
- new u(s)
103
- )
104
- ), a.selectionRanges && e.push(
105
- t.registerSelectionRangeProvider(
106
- o,
107
- new m(s)
108
- )
109
- ), a.documentFormattingEdits && e.push(
110
- t.registerDocumentFormattingEditProvider(
111
- o,
112
- new w(s)
113
- )
114
- ), a.documentRangeFormattingEdits && e.push(
115
- t.registerDocumentRangeFormattingEditProvider(
116
- o,
117
- new _(s)
118
- )
119
- );
120
- }
121
- return P(), n.push(g(e)), g(n);
122
- }
123
- function g(i) {
124
- return { dispose: () => k(i) };
125
- }
126
- function k(i) {
127
- for (; i.length; )
128
- i.pop().dispose();
129
- }
130
- export {
131
- R as CompletionAdapter,
132
- E as DefinitionAdapter,
133
- H as DiagnosticsAdapter,
134
- b as DocumentColorAdapter,
135
- w as DocumentFormattingEditProvider,
136
- l as DocumentHighlightAdapter,
137
- c as DocumentLinkAdapter,
138
- _ as DocumentRangeFormattingEditProvider,
139
- h as DocumentSymbolAdapter,
140
- u as FoldingRangeAdapter,
141
- d as HoverAdapter,
142
- y as ReferenceAdapter,
143
- p as RenameAdapter,
144
- m as SelectionRangeAdapter,
145
- f as WorkerManager,
146
- T as fromPosition,
147
- U as fromRange,
148
- F as setupMode,
149
- C as setupMode1,
150
- x as toRange,
151
- M as toTextEdit
152
- };