st-comp 0.0.102 → 0.0.103
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/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +1 -1
- package/es/{index-07e788d7.js → index-776a02be.js} +22873 -24765
- package/es/index-86920308.cjs +655 -0
- package/es/{python-a0dc573a.cjs → python-5b7987de.cjs} +3 -3
- package/{lib/python-f9f99019.js → es/python-b27949fe.js} +8 -34
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +198 -201
- package/lib/{index-6ec98685.js → index-03c4eb8b.js} +35494 -37386
- package/{es/python-86b2bf30.js → lib/python-d247bec1.js} +13 -37
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/es/index-47fc965e.cjs +0 -658
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-86920308.cjs");require("vue");/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
-
*-----------------------------------------------------------------------------*/var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,
|
|
6
|
+
*-----------------------------------------------------------------------------*/var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,o=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!d.call(t,r)&&r!==n&&l(t,r,{get:()=>e[r],enumerable:!(s=c(e,r))||s.enumerable});return t},g=(t,e,n)=>(o(t,e,"default"),n&&o(n,e,"default")),i={};g(i,a.monaco_editor_core_star);var _={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},m={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};exports.conf=_;exports.language=m;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { m as a } from "./index-
|
|
1
|
+
import { m as a } from "./index-776a02be.js";
|
|
2
2
|
import "vue";
|
|
3
|
-
import "echarts";
|
|
4
3
|
/*!-----------------------------------------------------------------------------
|
|
5
4
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6
|
-
* Version: 0.
|
|
5
|
+
* Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d)
|
|
7
6
|
* Released under the MIT license
|
|
8
7
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
9
8
|
*-----------------------------------------------------------------------------*/
|
|
10
|
-
var l = Object.defineProperty,
|
|
9
|
+
var l = Object.defineProperty, c = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, o = (t, e, n, s) => {
|
|
11
10
|
if (e && typeof e == "object" || typeof e == "function")
|
|
12
|
-
for (let r of
|
|
13
|
-
!
|
|
11
|
+
for (let r of p(e))
|
|
12
|
+
!d.call(t, r) && r !== n && l(t, r, { get: () => e[r], enumerable: !(s = c(e, r)) || s.enumerable });
|
|
14
13
|
return t;
|
|
15
|
-
},
|
|
16
|
-
|
|
14
|
+
}, _ = (t, e, n) => (o(t, e, "default"), n && o(n, e, "default")), i = {};
|
|
15
|
+
_(i, a);
|
|
17
16
|
var b = {
|
|
18
17
|
comments: {
|
|
19
18
|
lineComment: "#",
|
|
@@ -43,7 +42,7 @@ var b = {
|
|
|
43
42
|
beforeText: new RegExp(
|
|
44
43
|
"^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"
|
|
45
44
|
),
|
|
46
|
-
action: { indentAction:
|
|
45
|
+
action: { indentAction: i.languages.IndentAction.Indent }
|
|
47
46
|
}
|
|
48
47
|
],
|
|
49
48
|
folding: {
|
|
@@ -258,20 +257,10 @@ var b = {
|
|
|
258
257
|
// Recognize strings, including those broken across lines with \ (but not without)
|
|
259
258
|
strings: [
|
|
260
259
|
[/'$/, "string.escape", "@popall"],
|
|
261
|
-
[/f'{1,3}/, "string.escape", "@fStringBody"],
|
|
262
260
|
[/'/, "string.escape", "@stringBody"],
|
|
263
261
|
[/"$/, "string.escape", "@popall"],
|
|
264
|
-
[/f"{1,3}/, "string.escape", "@fDblStringBody"],
|
|
265
262
|
[/"/, "string.escape", "@dblStringBody"]
|
|
266
263
|
],
|
|
267
|
-
fStringBody: [
|
|
268
|
-
[/[^\\'\{\}]+$/, "string", "@popall"],
|
|
269
|
-
[/[^\\'\{\}]+/, "string"],
|
|
270
|
-
[/\{[^\}':!=]+/, "identifier", "@fStringDetail"],
|
|
271
|
-
[/\\./, "string"],
|
|
272
|
-
[/'/, "string.escape", "@popall"],
|
|
273
|
-
[/\\$/, "string"]
|
|
274
|
-
],
|
|
275
264
|
stringBody: [
|
|
276
265
|
[/[^\\']+$/, "string", "@popall"],
|
|
277
266
|
[/[^\\']+/, "string"],
|
|
@@ -279,27 +268,12 @@ var b = {
|
|
|
279
268
|
[/'/, "string.escape", "@popall"],
|
|
280
269
|
[/\\$/, "string"]
|
|
281
270
|
],
|
|
282
|
-
fDblStringBody: [
|
|
283
|
-
[/[^\\"\{\}]+$/, "string", "@popall"],
|
|
284
|
-
[/[^\\"\{\}]+/, "string"],
|
|
285
|
-
[/\{[^\}':!=]+/, "identifier", "@fStringDetail"],
|
|
286
|
-
[/\\./, "string"],
|
|
287
|
-
[/"/, "string.escape", "@popall"],
|
|
288
|
-
[/\\$/, "string"]
|
|
289
|
-
],
|
|
290
271
|
dblStringBody: [
|
|
291
272
|
[/[^\\"]+$/, "string", "@popall"],
|
|
292
273
|
[/[^\\"]+/, "string"],
|
|
293
274
|
[/\\./, "string"],
|
|
294
275
|
[/"/, "string.escape", "@popall"],
|
|
295
276
|
[/\\$/, "string"]
|
|
296
|
-
],
|
|
297
|
-
fStringDetail: [
|
|
298
|
-
[/[:][^}]+/, "string"],
|
|
299
|
-
[/[!][ars]/, "string"],
|
|
300
|
-
// only !a, !r, !s are supported by f-strings: https://docs.python.org/3/tutorial/inputoutput.html#formatted-string-literals
|
|
301
|
-
[/=/, "string"],
|
|
302
|
-
[/\}/, "identifier", "@pop"]
|
|
303
277
|
]
|
|
304
278
|
}
|
|
305
279
|
};
|