act-plus 1.1.18 → 1.1.19
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/act-plus.js +5 -3
- package/act-plus.umd.cjs +1729 -16
- package/assets/editor.worker-df55e1ff.js +8 -0
- package/assets/ts.worker-e151483b.js +33972 -0
- package/lib/abap-1354785f.js +1314 -0
- package/lib/apex-279d4f27.js +315 -0
- package/lib/azcli-ba812c55.js +74 -0
- package/lib/bat-4d77495d.js +95 -0
- package/lib/bicep-7b240724.js +108 -0
- package/lib/cameligo-5d2daeb8.js +168 -0
- package/lib/clojure-b7ea12a3.js +754 -0
- package/lib/coffee-1a8cfbf4.js +228 -0
- package/lib/{configBtns-58f43801.js → configBtns-3772e689.js} +2 -2
- package/lib/{configFileds-b537fd99.js → configFileds-d0911c87.js} +3 -3
- package/lib/{configForm-b9e9ca98.js → configForm-ae4b725e.js} +1 -1
- package/lib/{configTable-bdb56a9e.js → configTable-879063d4.js} +31 -24
- package/lib/cpp-642b10c4.js +387 -0
- package/lib/csharp-d987ddad.js +320 -0
- package/lib/csp-96407af0.js +57 -0
- package/lib/css-5dd354ac.js +186 -0
- package/lib/cssMode-6d02ab39.js +1448 -0
- package/lib/cypher-11e5a4b6.js +262 -0
- package/lib/dart-5d209f63.js +270 -0
- package/lib/{dialogAddField-b60d14ab.js → dialogAddField-d6b18048.js} +69 -69
- package/lib/{dialogConfigBtn-f5f8703d.js → dialogConfigBtn-75e37dc9.js} +74 -78
- package/lib/dockerfile-8739cff7.js +132 -0
- package/lib/ecl-a20c5155.js +454 -0
- package/lib/elixir-8b028584.js +467 -0
- package/lib/{enum-99519ce0.js → enum-cc58b8fe.js} +25 -22
- package/lib/flow9-0dea2e73.js +141 -0
- package/lib/freemarker2-205877bf.js +646 -0
- package/lib/fsharp-49a70fad.js +210 -0
- package/lib/go-46e3b371.js +208 -0
- package/lib/graphql-51a577e5.js +141 -0
- package/lib/handlebars-2d920faa.js +394 -0
- package/lib/hcl-56b85754.js +177 -0
- package/lib/html-6b99359b.js +284 -0
- package/lib/htmlMode-498c17d9.js +1458 -0
- package/lib/index-68063c4c.js +96 -0
- package/lib/index-7c264775.js +192 -0
- package/lib/index-a36b2284.js +304 -0
- package/lib/index-aff95ab9.js +63 -0
- package/lib/index-da0a0bfe.js +162173 -0
- package/lib/index-e2f2023d.js +35 -0
- package/lib/{index-9e3ed108.js → index-fb2754ee.js} +1 -1
- package/lib/ini-1d58d82f.js +68 -0
- package/lib/java-cd017f60.js +221 -0
- package/lib/javascript-5e40fe11.js +78 -0
- package/lib/jsonMode-2a821e9e.js +1869 -0
- package/lib/julia-a0caf483.js +496 -0
- package/lib/kotlin-c6e52a56.js +245 -0
- package/lib/less-718543b4.js +168 -0
- package/lib/lexon-5e6e7a44.js +151 -0
- package/lib/liquid-dc78aaf7.js +241 -0
- package/lib/lua-f159160b.js +157 -0
- package/lib/m3-aadaf771.js +210 -0
- package/lib/markdown-9b448c46.js +202 -0
- package/lib/mips-161e49ce.js +194 -0
- package/lib/msdax-f65cb1e6.js +377 -0
- package/lib/mysql-24549dd1.js +875 -0
- package/lib/objective-c-e129a5ca.js +188 -0
- package/lib/pascal-4ccdf5ce.js +245 -0
- package/lib/pascaligo-a9603dcd.js +158 -0
- package/lib/perl-ba1fb97a.js +599 -0
- package/lib/pgsql-89978310.js +843 -0
- package/lib/php-987b9d87.js +471 -0
- package/lib/pla-96c2695d.js +131 -0
- package/lib/postiats-7b52ebac.js +544 -0
- package/lib/powerquery-8954ec26.js +890 -0
- package/lib/powershell-f00d0274.js +233 -0
- package/lib/protobuf-3eb85f80.js +422 -0
- package/lib/pug-6fab415a.js +393 -0
- package/lib/python-e55144b2.js +262 -0
- package/lib/qsharp-4792f872.js +282 -0
- package/lib/r-630f5d6b.js +245 -0
- package/lib/razor-1fb88f53.js +515 -0
- package/lib/redis-276b8288.js +298 -0
- package/lib/redshift-520a7359.js +806 -0
- package/lib/restructuredtext-4676a3fc.js +162 -0
- package/lib/ruby-764137cd.js +444 -0
- package/lib/rust-97f8f6e1.js +337 -0
- package/lib/sb-8c22f14c.js +110 -0
- package/lib/scala-c68c650c.js +353 -0
- package/lib/scheme-e6a52cb0.js +114 -0
- package/lib/scss-45104c77.js +244 -0
- package/lib/shell-09452d42.js +224 -0
- package/lib/solidity-d4979008.js +1351 -0
- package/lib/sophia-21995caf.js +190 -0
- package/lib/sparql-5088743c.js +193 -0
- package/lib/sql-63ec8e76.js +818 -0
- package/lib/st-fa9ab362.js +414 -0
- package/lib/swift-abdf1835.js +315 -0
- package/lib/systemverilog-a4f858ed.js +556 -0
- package/lib/tcl-8adf937f.js +232 -0
- package/lib/tsMode-8d12d976.js +792 -0
- package/lib/twig-404eb73e.js +323 -0
- package/lib/typescript-97ed77ae.js +330 -0
- package/lib/vb-e21e8153.js +364 -0
- package/lib/xml-e843c667.js +98 -0
- package/lib/yaml-62bcf3fa.js +187 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/lib/index-14f7a543.js +0 -165
- package/lib/index-1f8ed34b.js +0 -11178
- package/lib/index-56217e0e.js +0 -96
- package/lib/index-8cb975d8.js +0 -297
- package/lib/index-9a1abd6b.js +0 -139
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var n = {
|
|
8
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
9
|
+
comments: {
|
|
10
|
+
lineComment: "//",
|
|
11
|
+
blockComment: ["/*", "*/"]
|
|
12
|
+
},
|
|
13
|
+
brackets: [
|
|
14
|
+
["{", "}"],
|
|
15
|
+
["[", "]"],
|
|
16
|
+
["(", ")"]
|
|
17
|
+
],
|
|
18
|
+
autoClosingPairs: [
|
|
19
|
+
{ open: "{", close: "}" },
|
|
20
|
+
{ open: "[", close: "]" },
|
|
21
|
+
{ open: "(", close: ")" },
|
|
22
|
+
{ open: '"', close: '"' },
|
|
23
|
+
{ open: "'", close: "'" }
|
|
24
|
+
],
|
|
25
|
+
surroundingPairs: [
|
|
26
|
+
{ open: "{", close: "}" },
|
|
27
|
+
{ open: "[", close: "]" },
|
|
28
|
+
{ open: "(", close: ")" },
|
|
29
|
+
{ open: '"', close: '"' },
|
|
30
|
+
{ open: "'", close: "'" },
|
|
31
|
+
{ open: "<", close: ">" }
|
|
32
|
+
],
|
|
33
|
+
folding: {
|
|
34
|
+
markers: {
|
|
35
|
+
start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
|
36
|
+
end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, s = [
|
|
40
|
+
"abstract",
|
|
41
|
+
"activate",
|
|
42
|
+
"and",
|
|
43
|
+
"any",
|
|
44
|
+
"array",
|
|
45
|
+
"as",
|
|
46
|
+
"asc",
|
|
47
|
+
"assert",
|
|
48
|
+
"autonomous",
|
|
49
|
+
"begin",
|
|
50
|
+
"bigdecimal",
|
|
51
|
+
"blob",
|
|
52
|
+
"boolean",
|
|
53
|
+
"break",
|
|
54
|
+
"bulk",
|
|
55
|
+
"by",
|
|
56
|
+
"case",
|
|
57
|
+
"cast",
|
|
58
|
+
"catch",
|
|
59
|
+
"char",
|
|
60
|
+
"class",
|
|
61
|
+
"collect",
|
|
62
|
+
"commit",
|
|
63
|
+
"const",
|
|
64
|
+
"continue",
|
|
65
|
+
"convertcurrency",
|
|
66
|
+
"decimal",
|
|
67
|
+
"default",
|
|
68
|
+
"delete",
|
|
69
|
+
"desc",
|
|
70
|
+
"do",
|
|
71
|
+
"double",
|
|
72
|
+
"else",
|
|
73
|
+
"end",
|
|
74
|
+
"enum",
|
|
75
|
+
"exception",
|
|
76
|
+
"exit",
|
|
77
|
+
"export",
|
|
78
|
+
"extends",
|
|
79
|
+
"false",
|
|
80
|
+
"final",
|
|
81
|
+
"finally",
|
|
82
|
+
"float",
|
|
83
|
+
"for",
|
|
84
|
+
"from",
|
|
85
|
+
"future",
|
|
86
|
+
"get",
|
|
87
|
+
"global",
|
|
88
|
+
"goto",
|
|
89
|
+
"group",
|
|
90
|
+
"having",
|
|
91
|
+
"hint",
|
|
92
|
+
"if",
|
|
93
|
+
"implements",
|
|
94
|
+
"import",
|
|
95
|
+
"in",
|
|
96
|
+
"inner",
|
|
97
|
+
"insert",
|
|
98
|
+
"instanceof",
|
|
99
|
+
"int",
|
|
100
|
+
"interface",
|
|
101
|
+
"into",
|
|
102
|
+
"join",
|
|
103
|
+
"last_90_days",
|
|
104
|
+
"last_month",
|
|
105
|
+
"last_n_days",
|
|
106
|
+
"last_week",
|
|
107
|
+
"like",
|
|
108
|
+
"limit",
|
|
109
|
+
"list",
|
|
110
|
+
"long",
|
|
111
|
+
"loop",
|
|
112
|
+
"map",
|
|
113
|
+
"merge",
|
|
114
|
+
"native",
|
|
115
|
+
"new",
|
|
116
|
+
"next_90_days",
|
|
117
|
+
"next_month",
|
|
118
|
+
"next_n_days",
|
|
119
|
+
"next_week",
|
|
120
|
+
"not",
|
|
121
|
+
"null",
|
|
122
|
+
"nulls",
|
|
123
|
+
"number",
|
|
124
|
+
"object",
|
|
125
|
+
"of",
|
|
126
|
+
"on",
|
|
127
|
+
"or",
|
|
128
|
+
"outer",
|
|
129
|
+
"override",
|
|
130
|
+
"package",
|
|
131
|
+
"parallel",
|
|
132
|
+
"pragma",
|
|
133
|
+
"private",
|
|
134
|
+
"protected",
|
|
135
|
+
"public",
|
|
136
|
+
"retrieve",
|
|
137
|
+
"return",
|
|
138
|
+
"returning",
|
|
139
|
+
"rollback",
|
|
140
|
+
"savepoint",
|
|
141
|
+
"search",
|
|
142
|
+
"select",
|
|
143
|
+
"set",
|
|
144
|
+
"short",
|
|
145
|
+
"sort",
|
|
146
|
+
"stat",
|
|
147
|
+
"static",
|
|
148
|
+
"strictfp",
|
|
149
|
+
"super",
|
|
150
|
+
"switch",
|
|
151
|
+
"synchronized",
|
|
152
|
+
"system",
|
|
153
|
+
"testmethod",
|
|
154
|
+
"then",
|
|
155
|
+
"this",
|
|
156
|
+
"this_month",
|
|
157
|
+
"this_week",
|
|
158
|
+
"throw",
|
|
159
|
+
"throws",
|
|
160
|
+
"today",
|
|
161
|
+
"tolabel",
|
|
162
|
+
"tomorrow",
|
|
163
|
+
"transaction",
|
|
164
|
+
"transient",
|
|
165
|
+
"trigger",
|
|
166
|
+
"true",
|
|
167
|
+
"try",
|
|
168
|
+
"type",
|
|
169
|
+
"undelete",
|
|
170
|
+
"update",
|
|
171
|
+
"upsert",
|
|
172
|
+
"using",
|
|
173
|
+
"virtual",
|
|
174
|
+
"void",
|
|
175
|
+
"volatile",
|
|
176
|
+
"webservice",
|
|
177
|
+
"when",
|
|
178
|
+
"where",
|
|
179
|
+
"while",
|
|
180
|
+
"yesterday"
|
|
181
|
+
], o = (e) => e.charAt(0).toUpperCase() + e.substr(1), t = [];
|
|
182
|
+
s.forEach((e) => {
|
|
183
|
+
t.push(e), t.push(e.toUpperCase()), t.push(o(e));
|
|
184
|
+
});
|
|
185
|
+
var i = {
|
|
186
|
+
defaultToken: "",
|
|
187
|
+
tokenPostfix: ".apex",
|
|
188
|
+
keywords: t,
|
|
189
|
+
operators: [
|
|
190
|
+
"=",
|
|
191
|
+
">",
|
|
192
|
+
"<",
|
|
193
|
+
"!",
|
|
194
|
+
"~",
|
|
195
|
+
"?",
|
|
196
|
+
":",
|
|
197
|
+
"==",
|
|
198
|
+
"<=",
|
|
199
|
+
">=",
|
|
200
|
+
"!=",
|
|
201
|
+
"&&",
|
|
202
|
+
"||",
|
|
203
|
+
"++",
|
|
204
|
+
"--",
|
|
205
|
+
"+",
|
|
206
|
+
"-",
|
|
207
|
+
"*",
|
|
208
|
+
"/",
|
|
209
|
+
"&",
|
|
210
|
+
"|",
|
|
211
|
+
"^",
|
|
212
|
+
"%",
|
|
213
|
+
"<<",
|
|
214
|
+
">>",
|
|
215
|
+
">>>",
|
|
216
|
+
"+=",
|
|
217
|
+
"-=",
|
|
218
|
+
"*=",
|
|
219
|
+
"/=",
|
|
220
|
+
"&=",
|
|
221
|
+
"|=",
|
|
222
|
+
"^=",
|
|
223
|
+
"%=",
|
|
224
|
+
"<<=",
|
|
225
|
+
">>=",
|
|
226
|
+
">>>="
|
|
227
|
+
],
|
|
228
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
229
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
230
|
+
digits: /\d+(_+\d+)*/,
|
|
231
|
+
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
|
232
|
+
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
|
233
|
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
|
234
|
+
tokenizer: {
|
|
235
|
+
root: [
|
|
236
|
+
[
|
|
237
|
+
/[a-z_$][\w$]*/,
|
|
238
|
+
{
|
|
239
|
+
cases: {
|
|
240
|
+
"@keywords": { token: "keyword.$0" },
|
|
241
|
+
"@default": "identifier"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
[
|
|
246
|
+
/[A-Z][\w\$]*/,
|
|
247
|
+
{
|
|
248
|
+
cases: {
|
|
249
|
+
"@keywords": { token: "keyword.$0" },
|
|
250
|
+
"@default": "type.identifier"
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
{ include: "@whitespace" },
|
|
255
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
256
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
257
|
+
[
|
|
258
|
+
/@symbols/,
|
|
259
|
+
{
|
|
260
|
+
cases: {
|
|
261
|
+
"@operators": "delimiter",
|
|
262
|
+
"@default": ""
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
[/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
|
|
267
|
+
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
|
|
268
|
+
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
|
|
269
|
+
[/(@digits)[fFdD]/, "number.float"],
|
|
270
|
+
[/(@digits)[lL]?/, "number"],
|
|
271
|
+
[/[;,.]/, "delimiter"],
|
|
272
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
273
|
+
[/'([^'\\]|\\.)*$/, "string.invalid"],
|
|
274
|
+
[/"/, "string", '@string."'],
|
|
275
|
+
[/'/, "string", "@string.'"],
|
|
276
|
+
[/'[^\\']'/, "string"],
|
|
277
|
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
|
278
|
+
[/'/, "string.invalid"]
|
|
279
|
+
],
|
|
280
|
+
whitespace: [
|
|
281
|
+
[/[ \t\r\n]+/, ""],
|
|
282
|
+
[/\/\*\*(?!\/)/, "comment.doc", "@apexdoc"],
|
|
283
|
+
[/\/\*/, "comment", "@comment"],
|
|
284
|
+
[/\/\/.*$/, "comment"]
|
|
285
|
+
],
|
|
286
|
+
comment: [
|
|
287
|
+
[/[^\/*]+/, "comment"],
|
|
288
|
+
[/\*\//, "comment", "@pop"],
|
|
289
|
+
[/[\/*]/, "comment"]
|
|
290
|
+
],
|
|
291
|
+
apexdoc: [
|
|
292
|
+
[/[^\/*]+/, "comment.doc"],
|
|
293
|
+
[/\*\//, "comment.doc", "@pop"],
|
|
294
|
+
[/[\/*]/, "comment.doc"]
|
|
295
|
+
],
|
|
296
|
+
string: [
|
|
297
|
+
[/[^\\"']+/, "string"],
|
|
298
|
+
[/@escapes/, "string.escape"],
|
|
299
|
+
[/\\./, "string.escape.invalid"],
|
|
300
|
+
[
|
|
301
|
+
/["']/,
|
|
302
|
+
{
|
|
303
|
+
cases: {
|
|
304
|
+
"$#==$S2": { token: "string", next: "@pop" },
|
|
305
|
+
"@default": "string"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
export {
|
|
313
|
+
n as conf,
|
|
314
|
+
i as language
|
|
315
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
|
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
|
+
}
|
|
11
|
+
}, t = {
|
|
12
|
+
defaultToken: "keyword",
|
|
13
|
+
ignoreCase: !0,
|
|
14
|
+
tokenPostfix: ".azcli",
|
|
15
|
+
str: /[^#\s]/,
|
|
16
|
+
tokenizer: {
|
|
17
|
+
root: [
|
|
18
|
+
{ include: "@comment" },
|
|
19
|
+
[
|
|
20
|
+
/\s-+@str*\s*/,
|
|
21
|
+
{
|
|
22
|
+
cases: {
|
|
23
|
+
"@eos": { token: "key.identifier", next: "@popall" },
|
|
24
|
+
"@default": { token: "key.identifier", next: "@type" }
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
/^-+@str*\s*/,
|
|
30
|
+
{
|
|
31
|
+
cases: {
|
|
32
|
+
"@eos": { token: "key.identifier", next: "@popall" },
|
|
33
|
+
"@default": { token: "key.identifier", next: "@type" }
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
],
|
|
38
|
+
type: [
|
|
39
|
+
{ include: "@comment" },
|
|
40
|
+
[
|
|
41
|
+
/-+@str*\s*/,
|
|
42
|
+
{
|
|
43
|
+
cases: {
|
|
44
|
+
"@eos": { token: "key.identifier", next: "@popall" },
|
|
45
|
+
"@default": "key.identifier"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
[
|
|
50
|
+
/@str+\s*/,
|
|
51
|
+
{
|
|
52
|
+
cases: {
|
|
53
|
+
"@eos": { token: "string", next: "@popall" },
|
|
54
|
+
"@default": "string"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
],
|
|
59
|
+
comment: [
|
|
60
|
+
[
|
|
61
|
+
/#.*$/,
|
|
62
|
+
{
|
|
63
|
+
cases: {
|
|
64
|
+
"@eos": { token: "comment", next: "@popall" }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
e as conf,
|
|
73
|
+
t as language
|
|
74
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
|
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: "REM"
|
|
10
|
+
},
|
|
11
|
+
brackets: [
|
|
12
|
+
["{", "}"],
|
|
13
|
+
["[", "]"],
|
|
14
|
+
["(", ")"]
|
|
15
|
+
],
|
|
16
|
+
autoClosingPairs: [
|
|
17
|
+
{ open: "{", close: "}" },
|
|
18
|
+
{ open: "[", close: "]" },
|
|
19
|
+
{ open: "(", close: ")" },
|
|
20
|
+
{ open: '"', close: '"' }
|
|
21
|
+
],
|
|
22
|
+
surroundingPairs: [
|
|
23
|
+
{ open: "[", close: "]" },
|
|
24
|
+
{ open: "(", close: ")" },
|
|
25
|
+
{ open: '"', close: '"' }
|
|
26
|
+
],
|
|
27
|
+
folding: {
|
|
28
|
+
markers: {
|
|
29
|
+
start: new RegExp("^\\s*(::\\s*|REM\\s+)#region"),
|
|
30
|
+
end: new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}, s = {
|
|
34
|
+
defaultToken: "",
|
|
35
|
+
ignoreCase: !0,
|
|
36
|
+
tokenPostfix: ".bat",
|
|
37
|
+
brackets: [
|
|
38
|
+
{ token: "delimiter.bracket", open: "{", close: "}" },
|
|
39
|
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
|
40
|
+
{ token: "delimiter.square", open: "[", close: "]" }
|
|
41
|
+
],
|
|
42
|
+
keywords: /call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,
|
|
43
|
+
symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
|
|
44
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
45
|
+
tokenizer: {
|
|
46
|
+
root: [
|
|
47
|
+
[/^(\s*)(rem(?:\s.*|))$/, ["", "comment"]],
|
|
48
|
+
[/(\@?)(@keywords)(?!\w)/, [{ token: "keyword" }, { token: "keyword.$2" }]],
|
|
49
|
+
[/[ \t\r\n]+/, ""],
|
|
50
|
+
[/setlocal(?!\w)/, "keyword.tag-setlocal"],
|
|
51
|
+
[/endlocal(?!\w)/, "keyword.tag-setlocal"],
|
|
52
|
+
[/[a-zA-Z_]\w*/, ""],
|
|
53
|
+
[/:\w*/, "metatag"],
|
|
54
|
+
[/%[^%]+%/, "variable"],
|
|
55
|
+
[/%%[\w]+(?!\w)/, "variable"],
|
|
56
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
57
|
+
[/@symbols/, "delimiter"],
|
|
58
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
59
|
+
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
|
60
|
+
[/\d+/, "number"],
|
|
61
|
+
[/[;,.]/, "delimiter"],
|
|
62
|
+
[/"/, "string", '@string."'],
|
|
63
|
+
[/'/, "string", "@string.'"]
|
|
64
|
+
],
|
|
65
|
+
string: [
|
|
66
|
+
[
|
|
67
|
+
/[^\\"'%]+/,
|
|
68
|
+
{
|
|
69
|
+
cases: {
|
|
70
|
+
"@eos": { token: "string", next: "@popall" },
|
|
71
|
+
"@default": "string"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
[/@escapes/, "string.escape"],
|
|
76
|
+
[/\\./, "string.escape.invalid"],
|
|
77
|
+
[/%[\w ]+%/, "variable"],
|
|
78
|
+
[/%%[\w]+(?!\w)/, "variable"],
|
|
79
|
+
[
|
|
80
|
+
/["']/,
|
|
81
|
+
{
|
|
82
|
+
cases: {
|
|
83
|
+
"$#==$S2": { token: "string", next: "@pop" },
|
|
84
|
+
"@default": "string"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
[/$/, "string", "@popall"]
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
e as conf,
|
|
94
|
+
s as language
|
|
95
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var n = (e) => `\\b${e}\\b`, t = "[_a-zA-Z]", o = "[_a-zA-Z0-9]", r = n(`${t}${o}*`), i = [
|
|
8
|
+
"targetScope",
|
|
9
|
+
"resource",
|
|
10
|
+
"module",
|
|
11
|
+
"param",
|
|
12
|
+
"var",
|
|
13
|
+
"output",
|
|
14
|
+
"for",
|
|
15
|
+
"in",
|
|
16
|
+
"if",
|
|
17
|
+
"existing"
|
|
18
|
+
], a = ["true", "false", "null"], s = "[ \\t\\r\\n]", c = "[0-9]+", g = {
|
|
19
|
+
comments: {
|
|
20
|
+
lineComment: "//",
|
|
21
|
+
blockComment: ["/*", "*/"]
|
|
22
|
+
},
|
|
23
|
+
brackets: [
|
|
24
|
+
["{", "}"],
|
|
25
|
+
["[", "]"],
|
|
26
|
+
["(", ")"]
|
|
27
|
+
],
|
|
28
|
+
surroundingPairs: [
|
|
29
|
+
{ open: "{", close: "}" },
|
|
30
|
+
{ open: "[", close: "]" },
|
|
31
|
+
{ open: "(", close: ")" },
|
|
32
|
+
{ open: "'", close: "'" },
|
|
33
|
+
{ open: "'''", close: "'''" }
|
|
34
|
+
],
|
|
35
|
+
autoClosingPairs: [
|
|
36
|
+
{ open: "{", close: "}" },
|
|
37
|
+
{ open: "[", close: "]" },
|
|
38
|
+
{ open: "(", close: ")" },
|
|
39
|
+
{ open: "'", close: "'", notIn: ["string", "comment"] },
|
|
40
|
+
{ open: "'''", close: "'''", notIn: ["string", "comment"] }
|
|
41
|
+
],
|
|
42
|
+
autoCloseBefore: `:.,=}])'
|
|
43
|
+
`,
|
|
44
|
+
indentationRules: {
|
|
45
|
+
increaseIndentPattern: new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),
|
|
46
|
+
decreaseIndentPattern: new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")
|
|
47
|
+
}
|
|
48
|
+
}, l = {
|
|
49
|
+
defaultToken: "",
|
|
50
|
+
tokenPostfix: ".bicep",
|
|
51
|
+
brackets: [
|
|
52
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
53
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
54
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
55
|
+
],
|
|
56
|
+
symbols: /[=><!~?:&|+\-*/^%]+/,
|
|
57
|
+
keywords: i,
|
|
58
|
+
namedLiterals: a,
|
|
59
|
+
escapes: "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",
|
|
60
|
+
tokenizer: {
|
|
61
|
+
root: [{ include: "@expression" }, { include: "@whitespace" }],
|
|
62
|
+
stringVerbatim: [
|
|
63
|
+
{ regex: "(|'|'')[^']", action: { token: "string" } },
|
|
64
|
+
{ regex: "'''", action: { token: "string.quote", next: "@pop" } }
|
|
65
|
+
],
|
|
66
|
+
stringLiteral: [
|
|
67
|
+
{ regex: "\\${", action: { token: "delimiter.bracket", next: "@bracketCounting" } },
|
|
68
|
+
{ regex: "[^\\\\'$]+", action: { token: "string" } },
|
|
69
|
+
{ regex: "@escapes", action: { token: "string.escape" } },
|
|
70
|
+
{ regex: "\\\\.", action: { token: "string.escape.invalid" } },
|
|
71
|
+
{ regex: "'", action: { token: "string", next: "@pop" } }
|
|
72
|
+
],
|
|
73
|
+
bracketCounting: [
|
|
74
|
+
{ regex: "{", action: { token: "delimiter.bracket", next: "@bracketCounting" } },
|
|
75
|
+
{ regex: "}", action: { token: "delimiter.bracket", next: "@pop" } },
|
|
76
|
+
{ include: "expression" }
|
|
77
|
+
],
|
|
78
|
+
comment: [
|
|
79
|
+
{ regex: "[^\\*]+", action: { token: "comment" } },
|
|
80
|
+
{ regex: "\\*\\/", action: { token: "comment", next: "@pop" } },
|
|
81
|
+
{ regex: "[\\/*]", action: { token: "comment" } }
|
|
82
|
+
],
|
|
83
|
+
whitespace: [
|
|
84
|
+
{ regex: s },
|
|
85
|
+
{ regex: "\\/\\*", action: { token: "comment", next: "@comment" } },
|
|
86
|
+
{ regex: "\\/\\/.*$", action: { token: "comment" } }
|
|
87
|
+
],
|
|
88
|
+
expression: [
|
|
89
|
+
{ regex: "'''", action: { token: "string.quote", next: "@stringVerbatim" } },
|
|
90
|
+
{ regex: "'", action: { token: "string.quote", next: "@stringLiteral" } },
|
|
91
|
+
{ regex: c, action: { token: "number" } },
|
|
92
|
+
{
|
|
93
|
+
regex: r,
|
|
94
|
+
action: {
|
|
95
|
+
cases: {
|
|
96
|
+
"@keywords": { token: "keyword" },
|
|
97
|
+
"@namedLiterals": { token: "keyword" },
|
|
98
|
+
"@default": { token: "identifier" }
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
export {
|
|
106
|
+
g as conf,
|
|
107
|
+
l as language
|
|
108
|
+
};
|