st-comp 0.0.136 → 0.0.138
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/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +338 -339
- package/es/{index-776a02be.js → index-1f3f4b73.js} +2230 -2218
- package/es/{index-86920308.cjs → index-a28c8425.cjs} +84 -79
- package/es/lua-2361444a.js +168 -0
- package/es/lua-7e5aa405.cjs +6 -0
- package/es/{python-5b7987de.cjs → python-3b195519.cjs} +1 -1
- package/es/{python-b27949fe.js → python-ed83fe84.js} +1 -1
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +134 -124
- package/lib/{index-73a5840c.js → index-7519bd85.js} +6820 -6809
- package/lib/lua-2361444a.js +168 -0
- package/lib/{python-bb104d23.js → python-88e9d658.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/MonacoEditor/index.vue +1 -0
- package/packages/VarietySearch/index.vue +6 -1
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
comments: {
|
|
9
|
+
lineComment: "--",
|
|
10
|
+
blockComment: ["--[[", "]]"]
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{", "}"],
|
|
14
|
+
["[", "]"],
|
|
15
|
+
["(", ")"]
|
|
16
|
+
],
|
|
17
|
+
autoClosingPairs: [
|
|
18
|
+
{ open: "{", close: "}" },
|
|
19
|
+
{ open: "[", close: "]" },
|
|
20
|
+
{ open: "(", close: ")" },
|
|
21
|
+
{ open: '"', close: '"' },
|
|
22
|
+
{ open: "'", close: "'" }
|
|
23
|
+
],
|
|
24
|
+
surroundingPairs: [
|
|
25
|
+
{ open: "{", close: "}" },
|
|
26
|
+
{ open: "[", close: "]" },
|
|
27
|
+
{ open: "(", close: ")" },
|
|
28
|
+
{ open: '"', close: '"' },
|
|
29
|
+
{ open: "'", close: "'" }
|
|
30
|
+
]
|
|
31
|
+
}, o = {
|
|
32
|
+
defaultToken: "",
|
|
33
|
+
tokenPostfix: ".lua",
|
|
34
|
+
keywords: [
|
|
35
|
+
"and",
|
|
36
|
+
"break",
|
|
37
|
+
"do",
|
|
38
|
+
"else",
|
|
39
|
+
"elseif",
|
|
40
|
+
"end",
|
|
41
|
+
"false",
|
|
42
|
+
"for",
|
|
43
|
+
"function",
|
|
44
|
+
"goto",
|
|
45
|
+
"if",
|
|
46
|
+
"in",
|
|
47
|
+
"local",
|
|
48
|
+
"nil",
|
|
49
|
+
"not",
|
|
50
|
+
"or",
|
|
51
|
+
"repeat",
|
|
52
|
+
"return",
|
|
53
|
+
"then",
|
|
54
|
+
"true",
|
|
55
|
+
"until",
|
|
56
|
+
"while"
|
|
57
|
+
],
|
|
58
|
+
brackets: [
|
|
59
|
+
{ token: "delimiter.bracket", open: "{", close: "}" },
|
|
60
|
+
{ token: "delimiter.array", open: "[", close: "]" },
|
|
61
|
+
{ token: "delimiter.parenthesis", open: "(", close: ")" }
|
|
62
|
+
],
|
|
63
|
+
operators: [
|
|
64
|
+
"+",
|
|
65
|
+
"-",
|
|
66
|
+
"*",
|
|
67
|
+
"/",
|
|
68
|
+
"%",
|
|
69
|
+
"^",
|
|
70
|
+
"#",
|
|
71
|
+
"==",
|
|
72
|
+
"~=",
|
|
73
|
+
"<=",
|
|
74
|
+
">=",
|
|
75
|
+
"<",
|
|
76
|
+
">",
|
|
77
|
+
"=",
|
|
78
|
+
";",
|
|
79
|
+
":",
|
|
80
|
+
",",
|
|
81
|
+
".",
|
|
82
|
+
"..",
|
|
83
|
+
"..."
|
|
84
|
+
],
|
|
85
|
+
// we include these common regular expressions
|
|
86
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
87
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
88
|
+
// The main tokenizer for our languages
|
|
89
|
+
tokenizer: {
|
|
90
|
+
root: [
|
|
91
|
+
// identifiers and keywords
|
|
92
|
+
[
|
|
93
|
+
/[a-zA-Z_]\w*/,
|
|
94
|
+
{
|
|
95
|
+
cases: {
|
|
96
|
+
"@keywords": { token: "keyword.$0" },
|
|
97
|
+
"@default": "identifier"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
// whitespace
|
|
102
|
+
{ include: "@whitespace" },
|
|
103
|
+
// keys
|
|
104
|
+
[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["delimiter", "", "key", "", "delimiter"]],
|
|
105
|
+
[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/, ["@brackets", "", "key", "", "delimiter"]],
|
|
106
|
+
// delimiters and operators
|
|
107
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
108
|
+
[
|
|
109
|
+
/@symbols/,
|
|
110
|
+
{
|
|
111
|
+
cases: {
|
|
112
|
+
"@operators": "delimiter",
|
|
113
|
+
"@default": ""
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
// numbers
|
|
118
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
119
|
+
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
|
120
|
+
[/\d+?/, "number"],
|
|
121
|
+
// delimiter: after number because of .\d floats
|
|
122
|
+
[/[;,.]/, "delimiter"],
|
|
123
|
+
// strings: recover on non-terminated strings
|
|
124
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
125
|
+
// non-teminated string
|
|
126
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
127
|
+
// non-teminated string
|
|
128
|
+
[/"/, "string", '@string."'],
|
|
129
|
+
[/'/, "string", "@string.'"]
|
|
130
|
+
],
|
|
131
|
+
whitespace: [
|
|
132
|
+
[/[ \t\r\n]+/, ""],
|
|
133
|
+
[/--\[([=]*)\[/, "comment", "@comment.$1"],
|
|
134
|
+
[/--.*$/, "comment"]
|
|
135
|
+
],
|
|
136
|
+
comment: [
|
|
137
|
+
[/[^\]]+/, "comment"],
|
|
138
|
+
[
|
|
139
|
+
/\]([=]*)\]/,
|
|
140
|
+
{
|
|
141
|
+
cases: {
|
|
142
|
+
"$1==$S2": { token: "comment", next: "@pop" },
|
|
143
|
+
"@default": "comment"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
[/./, "comment"]
|
|
148
|
+
],
|
|
149
|
+
string: [
|
|
150
|
+
[/[^\\"']+/, "string"],
|
|
151
|
+
[/@escapes/, "string.escape"],
|
|
152
|
+
[/\\./, "string.escape.invalid"],
|
|
153
|
+
[
|
|
154
|
+
/["']/,
|
|
155
|
+
{
|
|
156
|
+
cases: {
|
|
157
|
+
"$#==$S2": { token: "string", next: "@pop" },
|
|
158
|
+
"@default": "string"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
export {
|
|
166
|
+
e as conf,
|
|
167
|
+
o as language
|
|
168
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["delimiter","","key","","delimiter"]],[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["@brackets","","key","","delimiter"]],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/--\[([=]*)\[/,"comment","@comment.$1"],[/--.*$/,"comment"]],comment:[[/[^\]]+/,"comment"],[/\]([=]*)\]/,{cases:{"$1==$S2":{token:"comment",next:"@pop"},"@default":"comment"}}],[/./,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}};exports.conf=e;exports.language=o;
|
|
@@ -1,4 +1,4 @@
|
|
|
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-a28c8425.cjs");require("vue");/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.47.0(69991d66135e4a1fc1cf0b1ac4ad25d429866a0d)
|
|
4
4
|
* Released under the MIT license
|