@kong-ui-public/monaco-editor 0.3.0 → 0.3.1-pr.2622.ca1f578c8.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.
- package/package.json +1 -1
- package/dist/abap-CrvW7_qN.js +0 -1398
- package/dist/apex-BAOI8p1v.js +0 -327
- package/dist/assets/css.worker-Cb0JI69t.js +0 -93
- package/dist/assets/editor.worker-DzMH9hFo.js +0 -26
- package/dist/assets/html.worker-BNFZMwEc.js +0 -470
- package/dist/assets/json.worker-BCybXpia.js +0 -58
- package/dist/assets/ts.worker-DAVh1bw1.js +0 -67731
- package/dist/azcli-BlCk_UqW.js +0 -68
- package/dist/bat-DPoEelVx.js +0 -100
- package/dist/bicep-Cp1F394l.js +0 -102
- package/dist/cameligo-CWqtSlQs.js +0 -174
- package/dist/clojure-CKBp32Gf.js +0 -761
- package/dist/coffee-CDo6vc-J.js +0 -232
- package/dist/cpp-DokufPgf.js +0 -389
- package/dist/csharp-BQi3szM0.js +0 -326
- package/dist/csp-BSGtCCZ-.js +0 -53
- package/dist/css-DEPFDJfb.js +0 -187
- package/dist/cssMode-BoaW_8EY.js +0 -141
- package/dist/cypher-DAb1vOxS.js +0 -263
- package/dist/dart-C8p4jewR.js +0 -281
- package/dist/dockerfile-DP0iLFPN.js +0 -130
- package/dist/ecl-BDQHA6fi.js +0 -456
- package/dist/elixir-D4II6kDM.js +0 -569
- package/dist/flow9-StcnL-VB.js +0 -142
- package/dist/freemarker2-DLxAEbra.js +0 -982
- package/dist/fsharp-DdUVp3EN.js +0 -217
- package/dist/go-D1-I258M.js +0 -218
- package/dist/graphql-DWkL3f8U.js +0 -151
- package/dist/handlebars-H1fAc7pY.js +0 -412
- package/dist/hcl-D_0MNifv.js +0 -183
- package/dist/html-Bjh5RSoV.js +0 -301
- package/dist/htmlMode-XE4-FvOp.js +0 -152
- package/dist/index-BtAApC8Z.js +0 -129109
- package/dist/ini-C4I2-MT7.js +0 -71
- package/dist/java-OBvaP_SS.js +0 -232
- package/dist/javascript-BL-y8a3N.js +0 -70
- package/dist/jsonMode-BO164Oml.js +0 -569
- package/dist/julia-BmDH8Kkf.js +0 -511
- package/dist/kotlin-Dhu5AGOD.js +0 -252
- package/dist/less-CzmjXREq.js +0 -162
- package/dist/lexon-CV2c4pN9.js +0 -157
- package/dist/liquid-B4OW2xCW.js +0 -233
- package/dist/lspLanguageFeatures-CLOLvtro.js +0 -1458
- package/dist/lua-CFY5U8qF.js +0 -162
- package/dist/m3-BL_AnZVh.js +0 -210
- package/dist/markdown-CWKQPXCv.js +0 -229
- package/dist/mdx-BscoYQtT.js +0 -158
- package/dist/mips-ButYmJ5E.js +0 -198
- package/dist/monaco-editor.es.js +0 -5
- package/dist/monaco-editor.umd.js +0 -1234
- package/dist/msdax-C3cnXqDh.js +0 -375
- package/dist/mysql-YlSHaf6G.js +0 -878
- package/dist/objective-c-Dwnlproe.js +0 -183
- package/dist/pascal-UzGbSWEN.js +0 -251
- package/dist/pascaligo-CslTgu68.js +0 -164
- package/dist/perl-oj6r_mgw.js +0 -626
- package/dist/pgsql-DSBO0Mev.js +0 -851
- package/dist/php-YzCD--7j.js +0 -500
- package/dist/pla-CmylB8vQ.js +0 -137
- package/dist/postiats-CLFW5gNY.js +0 -907
- package/dist/powerquery-CmOWUvlh.js +0 -890
- package/dist/powershell-fHQcmBLK.js +0 -239
- package/dist/protobuf-p5BArb-9.js +0 -420
- package/dist/pug-gVdUDvqf.js +0 -402
- package/dist/python-CdwN88xa.js +0 -294
- package/dist/qsharp-DnrWSUlt.js +0 -301
- package/dist/r-Cv309K2z.js +0 -243
- package/dist/razor-BzIEQn-i.js +0 -543
- package/dist/redis-DTcS4wMj.js +0 -302
- package/dist/redshift-hLxZVESM.js +0 -809
- package/dist/restructuredtext-C898lK4f.js +0 -174
- package/dist/ruby-CgKtnJIQ.js +0 -511
- package/dist/rust-bj8oxVnh.js +0 -343
- package/dist/sb-DWynz26l.js +0 -115
- package/dist/scala-BL5z1UEd.js +0 -370
- package/dist/scheme-DUJsH6VU.js +0 -108
- package/dist/scss-CxjmhvaL.js +0 -262
- package/dist/shell-D14Zs1dF.js +0 -221
- package/dist/solidity-WyRm-BGK.js +0 -1367
- package/dist/sophia-CKk-_Oa5.js +0 -199
- package/dist/sparql-DHtmINMZ.js +0 -201
- package/dist/sql-Dqaj5JHC.js +0 -853
- package/dist/st-Bj2IIaop.js +0 -416
- package/dist/style.css +0 -1
- package/dist/swift-DwxP72iM.js +0 -312
- package/dist/systemverilog-D7wJfuql.js +0 -576
- package/dist/tcl-0ApMt-eC.js +0 -232
- package/dist/tsMode-Bm7Ao8a0.js +0 -946
- package/dist/twig-DxwbdmvQ.js +0 -392
- package/dist/types/components/MonacoEditor.vue.d.ts +0 -52
- package/dist/types/components/MonacoEditor.vue.d.ts.map +0 -1
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts +0 -19
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/composables/useMonacoEditor.d.ts +0 -25
- package/dist/types/composables/useMonacoEditor.d.ts.map +0 -1
- package/dist/types/constants/index.d.ts +0 -3
- package/dist/types/constants/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/tests/mocks/monaco-editor-api.d.ts +0 -2
- package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -69
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/typescript-xVL7xVgf.js +0 -336
- package/dist/typespec-Fd-JwSuS.js +0 -117
- package/dist/vb-CxuyYE1I.js +0 -372
- package/dist/wgsl-DoEGc31J.js +0 -439
- package/dist/xml-5AZvXygb.js +0 -88
- package/dist/yaml-BpKYQQZ4.js +0 -199
package/dist/pug-gVdUDvqf.js
DELETED
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
comments: {
|
|
3
|
-
lineComment: "//"
|
|
4
|
-
},
|
|
5
|
-
brackets: [
|
|
6
|
-
["{", "}"],
|
|
7
|
-
["[", "]"],
|
|
8
|
-
["(", ")"]
|
|
9
|
-
],
|
|
10
|
-
autoClosingPairs: [
|
|
11
|
-
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
|
12
|
-
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
13
|
-
{ open: "{", close: "}", notIn: ["string", "comment"] },
|
|
14
|
-
{ open: "[", close: "]", notIn: ["string", "comment"] },
|
|
15
|
-
{ open: "(", close: ")", notIn: ["string", "comment"] }
|
|
16
|
-
],
|
|
17
|
-
folding: {
|
|
18
|
-
offSide: !0
|
|
19
|
-
}
|
|
20
|
-
}, t = {
|
|
21
|
-
defaultToken: "",
|
|
22
|
-
tokenPostfix: ".pug",
|
|
23
|
-
ignoreCase: !0,
|
|
24
|
-
brackets: [
|
|
25
|
-
{ token: "delimiter.curly", open: "{", close: "}" },
|
|
26
|
-
{ token: "delimiter.array", open: "[", close: "]" },
|
|
27
|
-
{ token: "delimiter.parenthesis", open: "(", close: ")" }
|
|
28
|
-
],
|
|
29
|
-
keywords: [
|
|
30
|
-
"append",
|
|
31
|
-
"block",
|
|
32
|
-
"case",
|
|
33
|
-
"default",
|
|
34
|
-
"doctype",
|
|
35
|
-
"each",
|
|
36
|
-
"else",
|
|
37
|
-
"extends",
|
|
38
|
-
"for",
|
|
39
|
-
"if",
|
|
40
|
-
"in",
|
|
41
|
-
"include",
|
|
42
|
-
"mixin",
|
|
43
|
-
"typeof",
|
|
44
|
-
"unless",
|
|
45
|
-
"var",
|
|
46
|
-
"when"
|
|
47
|
-
],
|
|
48
|
-
tags: [
|
|
49
|
-
"a",
|
|
50
|
-
"abbr",
|
|
51
|
-
"acronym",
|
|
52
|
-
"address",
|
|
53
|
-
"area",
|
|
54
|
-
"article",
|
|
55
|
-
"aside",
|
|
56
|
-
"audio",
|
|
57
|
-
"b",
|
|
58
|
-
"base",
|
|
59
|
-
"basefont",
|
|
60
|
-
"bdi",
|
|
61
|
-
"bdo",
|
|
62
|
-
"blockquote",
|
|
63
|
-
"body",
|
|
64
|
-
"br",
|
|
65
|
-
"button",
|
|
66
|
-
"canvas",
|
|
67
|
-
"caption",
|
|
68
|
-
"center",
|
|
69
|
-
"cite",
|
|
70
|
-
"code",
|
|
71
|
-
"col",
|
|
72
|
-
"colgroup",
|
|
73
|
-
"command",
|
|
74
|
-
"datalist",
|
|
75
|
-
"dd",
|
|
76
|
-
"del",
|
|
77
|
-
"details",
|
|
78
|
-
"dfn",
|
|
79
|
-
"div",
|
|
80
|
-
"dl",
|
|
81
|
-
"dt",
|
|
82
|
-
"em",
|
|
83
|
-
"embed",
|
|
84
|
-
"fieldset",
|
|
85
|
-
"figcaption",
|
|
86
|
-
"figure",
|
|
87
|
-
"font",
|
|
88
|
-
"footer",
|
|
89
|
-
"form",
|
|
90
|
-
"frame",
|
|
91
|
-
"frameset",
|
|
92
|
-
"h1",
|
|
93
|
-
"h2",
|
|
94
|
-
"h3",
|
|
95
|
-
"h4",
|
|
96
|
-
"h5",
|
|
97
|
-
"h6",
|
|
98
|
-
"head",
|
|
99
|
-
"header",
|
|
100
|
-
"hgroup",
|
|
101
|
-
"hr",
|
|
102
|
-
"html",
|
|
103
|
-
"i",
|
|
104
|
-
"iframe",
|
|
105
|
-
"img",
|
|
106
|
-
"input",
|
|
107
|
-
"ins",
|
|
108
|
-
"keygen",
|
|
109
|
-
"kbd",
|
|
110
|
-
"label",
|
|
111
|
-
"li",
|
|
112
|
-
"link",
|
|
113
|
-
"map",
|
|
114
|
-
"mark",
|
|
115
|
-
"menu",
|
|
116
|
-
"meta",
|
|
117
|
-
"meter",
|
|
118
|
-
"nav",
|
|
119
|
-
"noframes",
|
|
120
|
-
"noscript",
|
|
121
|
-
"object",
|
|
122
|
-
"ol",
|
|
123
|
-
"optgroup",
|
|
124
|
-
"option",
|
|
125
|
-
"output",
|
|
126
|
-
"p",
|
|
127
|
-
"param",
|
|
128
|
-
"pre",
|
|
129
|
-
"progress",
|
|
130
|
-
"q",
|
|
131
|
-
"rp",
|
|
132
|
-
"rt",
|
|
133
|
-
"ruby",
|
|
134
|
-
"s",
|
|
135
|
-
"samp",
|
|
136
|
-
"script",
|
|
137
|
-
"section",
|
|
138
|
-
"select",
|
|
139
|
-
"small",
|
|
140
|
-
"source",
|
|
141
|
-
"span",
|
|
142
|
-
"strike",
|
|
143
|
-
"strong",
|
|
144
|
-
"style",
|
|
145
|
-
"sub",
|
|
146
|
-
"summary",
|
|
147
|
-
"sup",
|
|
148
|
-
"table",
|
|
149
|
-
"tbody",
|
|
150
|
-
"td",
|
|
151
|
-
"textarea",
|
|
152
|
-
"tfoot",
|
|
153
|
-
"th",
|
|
154
|
-
"thead",
|
|
155
|
-
"time",
|
|
156
|
-
"title",
|
|
157
|
-
"tr",
|
|
158
|
-
"tracks",
|
|
159
|
-
"tt",
|
|
160
|
-
"u",
|
|
161
|
-
"ul",
|
|
162
|
-
"video",
|
|
163
|
-
"wbr"
|
|
164
|
-
],
|
|
165
|
-
// we include these common regular expressions
|
|
166
|
-
symbols: /[\+\-\*\%\&\|\!\=\/\.\,\:]+/,
|
|
167
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
168
|
-
tokenizer: {
|
|
169
|
-
root: [
|
|
170
|
-
// Tag or a keyword at start
|
|
171
|
-
[
|
|
172
|
-
/^(\s*)([a-zA-Z_-][\w-]*)/,
|
|
173
|
-
{
|
|
174
|
-
cases: {
|
|
175
|
-
"$2@tags": {
|
|
176
|
-
cases: {
|
|
177
|
-
"@eos": ["", "tag"],
|
|
178
|
-
"@default": ["", { token: "tag", next: "@tag.$1" }]
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
"$2@keywords": ["", { token: "keyword.$2" }],
|
|
182
|
-
"@default": ["", ""]
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
],
|
|
186
|
-
// id
|
|
187
|
-
[
|
|
188
|
-
/^(\s*)(#[a-zA-Z_-][\w-]*)/,
|
|
189
|
-
{
|
|
190
|
-
cases: {
|
|
191
|
-
"@eos": ["", "tag.id"],
|
|
192
|
-
"@default": ["", { token: "tag.id", next: "@tag.$1" }]
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
// class
|
|
197
|
-
[
|
|
198
|
-
/^(\s*)(\.[a-zA-Z_-][\w-]*)/,
|
|
199
|
-
{
|
|
200
|
-
cases: {
|
|
201
|
-
"@eos": ["", "tag.class"],
|
|
202
|
-
"@default": ["", { token: "tag.class", next: "@tag.$1" }]
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
],
|
|
206
|
-
// plain text with pipe
|
|
207
|
-
[/^(\s*)(\|.*)$/, ""],
|
|
208
|
-
{ include: "@whitespace" },
|
|
209
|
-
// keywords
|
|
210
|
-
[
|
|
211
|
-
/[a-zA-Z_$][\w$]*/,
|
|
212
|
-
{
|
|
213
|
-
cases: {
|
|
214
|
-
"@keywords": { token: "keyword.$0" },
|
|
215
|
-
"@default": ""
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
],
|
|
219
|
-
// delimiters and operators
|
|
220
|
-
[/[{}()\[\]]/, "@brackets"],
|
|
221
|
-
[/@symbols/, "delimiter"],
|
|
222
|
-
// numbers
|
|
223
|
-
[/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
224
|
-
[/\d+/, "number"],
|
|
225
|
-
// strings:
|
|
226
|
-
[/"/, "string", '@string."'],
|
|
227
|
-
[/'/, "string", "@string.'"]
|
|
228
|
-
],
|
|
229
|
-
tag: [
|
|
230
|
-
[/(\.)(\s*$)/, [{ token: "delimiter", next: "@blockText.$S2." }, ""]],
|
|
231
|
-
[/\s+/, { token: "", next: "@simpleText" }],
|
|
232
|
-
// id
|
|
233
|
-
[
|
|
234
|
-
/#[a-zA-Z_-][\w-]*/,
|
|
235
|
-
{
|
|
236
|
-
cases: {
|
|
237
|
-
"@eos": { token: "tag.id", next: "@pop" },
|
|
238
|
-
"@default": "tag.id"
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
],
|
|
242
|
-
// class
|
|
243
|
-
[
|
|
244
|
-
/\.[a-zA-Z_-][\w-]*/,
|
|
245
|
-
{
|
|
246
|
-
cases: {
|
|
247
|
-
"@eos": { token: "tag.class", next: "@pop" },
|
|
248
|
-
"@default": "tag.class"
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
// attributes
|
|
253
|
-
[/\(/, { token: "delimiter.parenthesis", next: "@attributeList" }]
|
|
254
|
-
],
|
|
255
|
-
simpleText: [
|
|
256
|
-
[/[^#]+$/, { token: "", next: "@popall" }],
|
|
257
|
-
[/[^#]+/, { token: "" }],
|
|
258
|
-
// interpolation
|
|
259
|
-
[
|
|
260
|
-
/(#{)([^}]*)(})/,
|
|
261
|
-
{
|
|
262
|
-
cases: {
|
|
263
|
-
"@eos": [
|
|
264
|
-
"interpolation.delimiter",
|
|
265
|
-
"interpolation",
|
|
266
|
-
{
|
|
267
|
-
token: "interpolation.delimiter",
|
|
268
|
-
next: "@popall"
|
|
269
|
-
}
|
|
270
|
-
],
|
|
271
|
-
"@default": ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
],
|
|
275
|
-
[/#$/, { token: "", next: "@popall" }],
|
|
276
|
-
[/#/, ""]
|
|
277
|
-
],
|
|
278
|
-
attributeList: [
|
|
279
|
-
[/\s+/, ""],
|
|
280
|
-
[
|
|
281
|
-
/(\w+)(\s*=\s*)("|')/,
|
|
282
|
-
["attribute.name", "delimiter", { token: "attribute.value", next: "@value.$3" }]
|
|
283
|
-
],
|
|
284
|
-
[/\w+/, "attribute.name"],
|
|
285
|
-
[
|
|
286
|
-
/,/,
|
|
287
|
-
{
|
|
288
|
-
cases: {
|
|
289
|
-
"@eos": {
|
|
290
|
-
token: "attribute.delimiter",
|
|
291
|
-
next: "@popall"
|
|
292
|
-
},
|
|
293
|
-
"@default": "attribute.delimiter"
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
],
|
|
297
|
-
[/\)$/, { token: "delimiter.parenthesis", next: "@popall" }],
|
|
298
|
-
[/\)/, { token: "delimiter.parenthesis", next: "@pop" }]
|
|
299
|
-
],
|
|
300
|
-
whitespace: [
|
|
301
|
-
[/^(\s*)(\/\/.*)$/, { token: "comment", next: "@blockText.$1.comment" }],
|
|
302
|
-
[/[ \t\r\n]+/, ""],
|
|
303
|
-
[/<!--/, { token: "comment", next: "@comment" }]
|
|
304
|
-
],
|
|
305
|
-
blockText: [
|
|
306
|
-
[
|
|
307
|
-
/^\s+.*$/,
|
|
308
|
-
{
|
|
309
|
-
cases: {
|
|
310
|
-
"($S2\\s+.*$)": { token: "$S3" },
|
|
311
|
-
"@default": { token: "@rematch", next: "@popall" }
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
],
|
|
315
|
-
[/./, { token: "@rematch", next: "@popall" }]
|
|
316
|
-
],
|
|
317
|
-
comment: [
|
|
318
|
-
[/[^<\-]+/, "comment.content"],
|
|
319
|
-
[/-->/, { token: "comment", next: "@pop" }],
|
|
320
|
-
[/<!--/, "comment.content.invalid"],
|
|
321
|
-
[/[<\-]/, "comment.content"]
|
|
322
|
-
],
|
|
323
|
-
string: [
|
|
324
|
-
[
|
|
325
|
-
/[^\\"'#]+/,
|
|
326
|
-
{
|
|
327
|
-
cases: {
|
|
328
|
-
"@eos": { token: "string", next: "@popall" },
|
|
329
|
-
"@default": "string"
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
],
|
|
333
|
-
[
|
|
334
|
-
/@escapes/,
|
|
335
|
-
{
|
|
336
|
-
cases: {
|
|
337
|
-
"@eos": { token: "string.escape", next: "@popall" },
|
|
338
|
-
"@default": "string.escape"
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
],
|
|
342
|
-
[
|
|
343
|
-
/\\./,
|
|
344
|
-
{
|
|
345
|
-
cases: {
|
|
346
|
-
"@eos": {
|
|
347
|
-
token: "string.escape.invalid",
|
|
348
|
-
next: "@popall"
|
|
349
|
-
},
|
|
350
|
-
"@default": "string.escape.invalid"
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
],
|
|
354
|
-
// interpolation
|
|
355
|
-
[/(#{)([^}]*)(})/, ["interpolation.delimiter", "interpolation", "interpolation.delimiter"]],
|
|
356
|
-
[/#/, "string"],
|
|
357
|
-
[
|
|
358
|
-
/["']/,
|
|
359
|
-
{
|
|
360
|
-
cases: {
|
|
361
|
-
"$#==$S2": { token: "string", next: "@pop" },
|
|
362
|
-
"@default": { token: "string" }
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
]
|
|
366
|
-
],
|
|
367
|
-
// Almost identical to above, except for escapes and the output token
|
|
368
|
-
value: [
|
|
369
|
-
[
|
|
370
|
-
/[^\\"']+/,
|
|
371
|
-
{
|
|
372
|
-
cases: {
|
|
373
|
-
"@eos": { token: "attribute.value", next: "@popall" },
|
|
374
|
-
"@default": "attribute.value"
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
],
|
|
378
|
-
[
|
|
379
|
-
/\\./,
|
|
380
|
-
{
|
|
381
|
-
cases: {
|
|
382
|
-
"@eos": { token: "attribute.value", next: "@popall" },
|
|
383
|
-
"@default": "attribute.value"
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
],
|
|
387
|
-
[
|
|
388
|
-
/["']/,
|
|
389
|
-
{
|
|
390
|
-
cases: {
|
|
391
|
-
"$#==$S2": { token: "attribute.value", next: "@pop" },
|
|
392
|
-
"@default": { token: "attribute.value" }
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
]
|
|
396
|
-
]
|
|
397
|
-
}
|
|
398
|
-
};
|
|
399
|
-
export {
|
|
400
|
-
e as conf,
|
|
401
|
-
t as language
|
|
402
|
-
};
|
package/dist/python-CdwN88xa.js
DELETED
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
import { l as e } from "./index-BtAApC8Z.js";
|
|
2
|
-
const t = {
|
|
3
|
-
comments: {
|
|
4
|
-
lineComment: "#",
|
|
5
|
-
blockComment: ["'''", "'''"]
|
|
6
|
-
},
|
|
7
|
-
brackets: [
|
|
8
|
-
["{", "}"],
|
|
9
|
-
["[", "]"],
|
|
10
|
-
["(", ")"]
|
|
11
|
-
],
|
|
12
|
-
autoClosingPairs: [
|
|
13
|
-
{ open: "{", close: "}" },
|
|
14
|
-
{ open: "[", close: "]" },
|
|
15
|
-
{ open: "(", close: ")" },
|
|
16
|
-
{ open: '"', close: '"', notIn: ["string"] },
|
|
17
|
-
{ open: "'", close: "'", notIn: ["string", "comment"] }
|
|
18
|
-
],
|
|
19
|
-
surroundingPairs: [
|
|
20
|
-
{ open: "{", close: "}" },
|
|
21
|
-
{ open: "[", close: "]" },
|
|
22
|
-
{ open: "(", close: ")" },
|
|
23
|
-
{ open: '"', close: '"' },
|
|
24
|
-
{ open: "'", close: "'" }
|
|
25
|
-
],
|
|
26
|
-
onEnterRules: [
|
|
27
|
-
{
|
|
28
|
-
beforeText: new RegExp(
|
|
29
|
-
"^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"
|
|
30
|
-
),
|
|
31
|
-
action: { indentAction: e.IndentAction.Indent }
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
folding: {
|
|
35
|
-
offSide: !0,
|
|
36
|
-
markers: {
|
|
37
|
-
start: new RegExp("^\\s*#region\\b"),
|
|
38
|
-
end: new RegExp("^\\s*#endregion\\b")
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}, s = {
|
|
42
|
-
defaultToken: "",
|
|
43
|
-
tokenPostfix: ".python",
|
|
44
|
-
keywords: [
|
|
45
|
-
// This section is the result of running
|
|
46
|
-
// `import keyword; for k in sorted(keyword.kwlist + keyword.softkwlist): print(" '" + k + "',")`
|
|
47
|
-
// in a Python REPL,
|
|
48
|
-
// though note that the output from Python 3 is not a strict superset of the
|
|
49
|
-
// output from Python 2.
|
|
50
|
-
"False",
|
|
51
|
-
// promoted to keyword.kwlist in Python 3
|
|
52
|
-
"None",
|
|
53
|
-
// promoted to keyword.kwlist in Python 3
|
|
54
|
-
"True",
|
|
55
|
-
// promoted to keyword.kwlist in Python 3
|
|
56
|
-
"_",
|
|
57
|
-
// new in Python 3.10
|
|
58
|
-
"and",
|
|
59
|
-
"as",
|
|
60
|
-
"assert",
|
|
61
|
-
"async",
|
|
62
|
-
// new in Python 3
|
|
63
|
-
"await",
|
|
64
|
-
// new in Python 3
|
|
65
|
-
"break",
|
|
66
|
-
"case",
|
|
67
|
-
// new in Python 3.10
|
|
68
|
-
"class",
|
|
69
|
-
"continue",
|
|
70
|
-
"def",
|
|
71
|
-
"del",
|
|
72
|
-
"elif",
|
|
73
|
-
"else",
|
|
74
|
-
"except",
|
|
75
|
-
"exec",
|
|
76
|
-
// Python 2, but not 3.
|
|
77
|
-
"finally",
|
|
78
|
-
"for",
|
|
79
|
-
"from",
|
|
80
|
-
"global",
|
|
81
|
-
"if",
|
|
82
|
-
"import",
|
|
83
|
-
"in",
|
|
84
|
-
"is",
|
|
85
|
-
"lambda",
|
|
86
|
-
"match",
|
|
87
|
-
// new in Python 3.10
|
|
88
|
-
"nonlocal",
|
|
89
|
-
// new in Python 3
|
|
90
|
-
"not",
|
|
91
|
-
"or",
|
|
92
|
-
"pass",
|
|
93
|
-
"print",
|
|
94
|
-
// Python 2, but not 3.
|
|
95
|
-
"raise",
|
|
96
|
-
"return",
|
|
97
|
-
"try",
|
|
98
|
-
"type",
|
|
99
|
-
// new in Python 3.12
|
|
100
|
-
"while",
|
|
101
|
-
"with",
|
|
102
|
-
"yield",
|
|
103
|
-
"int",
|
|
104
|
-
"float",
|
|
105
|
-
"long",
|
|
106
|
-
"complex",
|
|
107
|
-
"hex",
|
|
108
|
-
"abs",
|
|
109
|
-
"all",
|
|
110
|
-
"any",
|
|
111
|
-
"apply",
|
|
112
|
-
"basestring",
|
|
113
|
-
"bin",
|
|
114
|
-
"bool",
|
|
115
|
-
"buffer",
|
|
116
|
-
"bytearray",
|
|
117
|
-
"callable",
|
|
118
|
-
"chr",
|
|
119
|
-
"classmethod",
|
|
120
|
-
"cmp",
|
|
121
|
-
"coerce",
|
|
122
|
-
"compile",
|
|
123
|
-
"complex",
|
|
124
|
-
"delattr",
|
|
125
|
-
"dict",
|
|
126
|
-
"dir",
|
|
127
|
-
"divmod",
|
|
128
|
-
"enumerate",
|
|
129
|
-
"eval",
|
|
130
|
-
"execfile",
|
|
131
|
-
"file",
|
|
132
|
-
"filter",
|
|
133
|
-
"format",
|
|
134
|
-
"frozenset",
|
|
135
|
-
"getattr",
|
|
136
|
-
"globals",
|
|
137
|
-
"hasattr",
|
|
138
|
-
"hash",
|
|
139
|
-
"help",
|
|
140
|
-
"id",
|
|
141
|
-
"input",
|
|
142
|
-
"intern",
|
|
143
|
-
"isinstance",
|
|
144
|
-
"issubclass",
|
|
145
|
-
"iter",
|
|
146
|
-
"len",
|
|
147
|
-
"locals",
|
|
148
|
-
"list",
|
|
149
|
-
"map",
|
|
150
|
-
"max",
|
|
151
|
-
"memoryview",
|
|
152
|
-
"min",
|
|
153
|
-
"next",
|
|
154
|
-
"object",
|
|
155
|
-
"oct",
|
|
156
|
-
"open",
|
|
157
|
-
"ord",
|
|
158
|
-
"pow",
|
|
159
|
-
"print",
|
|
160
|
-
"property",
|
|
161
|
-
"reversed",
|
|
162
|
-
"range",
|
|
163
|
-
"raw_input",
|
|
164
|
-
"reduce",
|
|
165
|
-
"reload",
|
|
166
|
-
"repr",
|
|
167
|
-
"reversed",
|
|
168
|
-
"round",
|
|
169
|
-
"self",
|
|
170
|
-
"set",
|
|
171
|
-
"setattr",
|
|
172
|
-
"slice",
|
|
173
|
-
"sorted",
|
|
174
|
-
"staticmethod",
|
|
175
|
-
"str",
|
|
176
|
-
"sum",
|
|
177
|
-
"super",
|
|
178
|
-
"tuple",
|
|
179
|
-
"type",
|
|
180
|
-
"unichr",
|
|
181
|
-
"unicode",
|
|
182
|
-
"vars",
|
|
183
|
-
"xrange",
|
|
184
|
-
"zip",
|
|
185
|
-
"__dict__",
|
|
186
|
-
"__methods__",
|
|
187
|
-
"__members__",
|
|
188
|
-
"__class__",
|
|
189
|
-
"__bases__",
|
|
190
|
-
"__name__",
|
|
191
|
-
"__mro__",
|
|
192
|
-
"__subclasses__",
|
|
193
|
-
"__init__",
|
|
194
|
-
"__import__"
|
|
195
|
-
],
|
|
196
|
-
brackets: [
|
|
197
|
-
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
198
|
-
{ open: "[", close: "]", token: "delimiter.bracket" },
|
|
199
|
-
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
200
|
-
],
|
|
201
|
-
tokenizer: {
|
|
202
|
-
root: [
|
|
203
|
-
{ include: "@whitespace" },
|
|
204
|
-
{ include: "@numbers" },
|
|
205
|
-
{ include: "@strings" },
|
|
206
|
-
[/[,:;]/, "delimiter"],
|
|
207
|
-
[/[{}\[\]()]/, "@brackets"],
|
|
208
|
-
[/@[a-zA-Z_]\w*/, "tag"],
|
|
209
|
-
[
|
|
210
|
-
/[a-zA-Z_]\w*/,
|
|
211
|
-
{
|
|
212
|
-
cases: {
|
|
213
|
-
"@keywords": "keyword",
|
|
214
|
-
"@default": "identifier"
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
]
|
|
218
|
-
],
|
|
219
|
-
// Deal with white space, including single and multi-line comments
|
|
220
|
-
whitespace: [
|
|
221
|
-
[/\s+/, "white"],
|
|
222
|
-
[/(^#.*$)/, "comment"],
|
|
223
|
-
[/'''/, "string", "@endDocString"],
|
|
224
|
-
[/"""/, "string", "@endDblDocString"]
|
|
225
|
-
],
|
|
226
|
-
endDocString: [
|
|
227
|
-
[/[^']+/, "string"],
|
|
228
|
-
[/\\'/, "string"],
|
|
229
|
-
[/'''/, "string", "@popall"],
|
|
230
|
-
[/'/, "string"]
|
|
231
|
-
],
|
|
232
|
-
endDblDocString: [
|
|
233
|
-
[/[^"]+/, "string"],
|
|
234
|
-
[/\\"/, "string"],
|
|
235
|
-
[/"""/, "string", "@popall"],
|
|
236
|
-
[/"/, "string"]
|
|
237
|
-
],
|
|
238
|
-
// Recognize hex, negatives, decimals, imaginaries, longs, and scientific notation
|
|
239
|
-
numbers: [
|
|
240
|
-
[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/, "number.hex"],
|
|
241
|
-
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/, "number"]
|
|
242
|
-
],
|
|
243
|
-
// Recognize strings, including those broken across lines with \ (but not without)
|
|
244
|
-
strings: [
|
|
245
|
-
[/'$/, "string.escape", "@popall"],
|
|
246
|
-
[/f'{1,3}/, "string.escape", "@fStringBody"],
|
|
247
|
-
[/'/, "string.escape", "@stringBody"],
|
|
248
|
-
[/"$/, "string.escape", "@popall"],
|
|
249
|
-
[/f"{1,3}/, "string.escape", "@fDblStringBody"],
|
|
250
|
-
[/"/, "string.escape", "@dblStringBody"]
|
|
251
|
-
],
|
|
252
|
-
fStringBody: [
|
|
253
|
-
[/[^\\'\{\}]+$/, "string", "@popall"],
|
|
254
|
-
[/[^\\'\{\}]+/, "string"],
|
|
255
|
-
[/\{[^\}':!=]+/, "identifier", "@fStringDetail"],
|
|
256
|
-
[/\\./, "string"],
|
|
257
|
-
[/'/, "string.escape", "@popall"],
|
|
258
|
-
[/\\$/, "string"]
|
|
259
|
-
],
|
|
260
|
-
stringBody: [
|
|
261
|
-
[/[^\\']+$/, "string", "@popall"],
|
|
262
|
-
[/[^\\']+/, "string"],
|
|
263
|
-
[/\\./, "string"],
|
|
264
|
-
[/'/, "string.escape", "@popall"],
|
|
265
|
-
[/\\$/, "string"]
|
|
266
|
-
],
|
|
267
|
-
fDblStringBody: [
|
|
268
|
-
[/[^\\"\{\}]+$/, "string", "@popall"],
|
|
269
|
-
[/[^\\"\{\}]+/, "string"],
|
|
270
|
-
[/\{[^\}':!=]+/, "identifier", "@fStringDetail"],
|
|
271
|
-
[/\\./, "string"],
|
|
272
|
-
[/"/, "string.escape", "@popall"],
|
|
273
|
-
[/\\$/, "string"]
|
|
274
|
-
],
|
|
275
|
-
dblStringBody: [
|
|
276
|
-
[/[^\\"]+$/, "string", "@popall"],
|
|
277
|
-
[/[^\\"]+/, "string"],
|
|
278
|
-
[/\\./, "string"],
|
|
279
|
-
[/"/, "string.escape", "@popall"],
|
|
280
|
-
[/\\$/, "string"]
|
|
281
|
-
],
|
|
282
|
-
fStringDetail: [
|
|
283
|
-
[/[:][^}]+/, "string"],
|
|
284
|
-
[/[!][ars]/, "string"],
|
|
285
|
-
// only !a, !r, !s are supported by f-strings: https://docs.python.org/3/tutorial/inputoutput.html#formatted-string-literals
|
|
286
|
-
[/=/, "string"],
|
|
287
|
-
[/\}/, "identifier", "@pop"]
|
|
288
|
-
]
|
|
289
|
-
}
|
|
290
|
-
};
|
|
291
|
-
export {
|
|
292
|
-
t as conf,
|
|
293
|
-
s as language
|
|
294
|
-
};
|