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,515 @@
|
|
|
1
|
+
import { m as s } from "./index-da0a0bfe.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "vue-router";
|
|
4
|
+
import "element-plus";
|
|
5
|
+
/*!-----------------------------------------------------------------------------
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
|
|
8
|
+
* Released under the MIT license
|
|
9
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
10
|
+
*-----------------------------------------------------------------------------*/
|
|
11
|
+
var c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, d = Object.getOwnPropertyNames, p = Object.prototype.hasOwnProperty, n = (t, e, o, i) => {
|
|
12
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
13
|
+
for (let r of d(e))
|
|
14
|
+
!p.call(t, r) && r !== o && c(t, r, { get: () => e[r], enumerable: !(i = l(e, r)) || i.enumerable });
|
|
15
|
+
return t;
|
|
16
|
+
}, h = (t, e, o) => (n(t, e, "default"), o && n(o, e, "default")), a = {};
|
|
17
|
+
h(a, s);
|
|
18
|
+
var m = [
|
|
19
|
+
"area",
|
|
20
|
+
"base",
|
|
21
|
+
"br",
|
|
22
|
+
"col",
|
|
23
|
+
"embed",
|
|
24
|
+
"hr",
|
|
25
|
+
"img",
|
|
26
|
+
"input",
|
|
27
|
+
"keygen",
|
|
28
|
+
"link",
|
|
29
|
+
"menuitem",
|
|
30
|
+
"meta",
|
|
31
|
+
"param",
|
|
32
|
+
"source",
|
|
33
|
+
"track",
|
|
34
|
+
"wbr"
|
|
35
|
+
], w = {
|
|
36
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
37
|
+
comments: {
|
|
38
|
+
blockComment: ["<!--", "-->"]
|
|
39
|
+
},
|
|
40
|
+
brackets: [
|
|
41
|
+
["<!--", "-->"],
|
|
42
|
+
["<", ">"],
|
|
43
|
+
["{", "}"],
|
|
44
|
+
["(", ")"]
|
|
45
|
+
],
|
|
46
|
+
autoClosingPairs: [
|
|
47
|
+
{ open: "{", close: "}" },
|
|
48
|
+
{ open: "[", close: "]" },
|
|
49
|
+
{ open: "(", close: ")" },
|
|
50
|
+
{ open: '"', close: '"' },
|
|
51
|
+
{ open: "'", close: "'" }
|
|
52
|
+
],
|
|
53
|
+
surroundingPairs: [
|
|
54
|
+
{ open: '"', close: '"' },
|
|
55
|
+
{ open: "'", close: "'" },
|
|
56
|
+
{ open: "<", close: ">" }
|
|
57
|
+
],
|
|
58
|
+
onEnterRules: [
|
|
59
|
+
{
|
|
60
|
+
beforeText: new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
|
61
|
+
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
|
62
|
+
action: {
|
|
63
|
+
indentAction: a.languages.IndentAction.IndentOutdent
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
beforeText: new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
|
68
|
+
action: { indentAction: a.languages.IndentAction.Indent }
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}, x = {
|
|
72
|
+
defaultToken: "",
|
|
73
|
+
tokenPostfix: "",
|
|
74
|
+
tokenizer: {
|
|
75
|
+
root: [
|
|
76
|
+
[/@@@@/],
|
|
77
|
+
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.root" }],
|
|
78
|
+
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
|
79
|
+
[/<!--/, "comment.html", "@comment"],
|
|
80
|
+
[/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
81
|
+
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
|
82
|
+
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
|
83
|
+
[/(<)([:\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
84
|
+
[/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
85
|
+
[/</, "delimiter.html"],
|
|
86
|
+
[/[ \t\r\n]+/],
|
|
87
|
+
[/[^<@]+/]
|
|
88
|
+
],
|
|
89
|
+
doctype: [
|
|
90
|
+
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.comment" }],
|
|
91
|
+
[/[^>]+/, "metatag.content.html"],
|
|
92
|
+
[/>/, "metatag.html", "@pop"]
|
|
93
|
+
],
|
|
94
|
+
comment: [
|
|
95
|
+
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.comment" }],
|
|
96
|
+
[/-->/, "comment.html", "@pop"],
|
|
97
|
+
[/[^-]+/, "comment.content.html"],
|
|
98
|
+
[/./, "comment.content.html"]
|
|
99
|
+
],
|
|
100
|
+
otherTag: [
|
|
101
|
+
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.otherTag" }],
|
|
102
|
+
[/\/?>/, "delimiter.html", "@pop"],
|
|
103
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
104
|
+
[/'([^']*)'/, "attribute.value"],
|
|
105
|
+
[/[\w\-]+/, "attribute.name"],
|
|
106
|
+
[/=/, "delimiter"],
|
|
107
|
+
[/[ \t\r\n]+/]
|
|
108
|
+
],
|
|
109
|
+
script: [
|
|
110
|
+
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.script" }],
|
|
111
|
+
[/type/, "attribute.name", "@scriptAfterType"],
|
|
112
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
113
|
+
[/'([^']*)'/, "attribute.value"],
|
|
114
|
+
[/[\w\-]+/, "attribute.name"],
|
|
115
|
+
[/=/, "delimiter"],
|
|
116
|
+
[
|
|
117
|
+
/>/,
|
|
118
|
+
{
|
|
119
|
+
token: "delimiter.html",
|
|
120
|
+
next: "@scriptEmbedded.text/javascript",
|
|
121
|
+
nextEmbedded: "text/javascript"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
[/[ \t\r\n]+/],
|
|
125
|
+
[
|
|
126
|
+
/(<\/)(script\s*)(>)/,
|
|
127
|
+
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
128
|
+
]
|
|
129
|
+
],
|
|
130
|
+
scriptAfterType: [
|
|
131
|
+
[
|
|
132
|
+
/@[^@]/,
|
|
133
|
+
{
|
|
134
|
+
token: "@rematch",
|
|
135
|
+
switchTo: "@razorInSimpleState.scriptAfterType"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
|
139
|
+
[
|
|
140
|
+
/>/,
|
|
141
|
+
{
|
|
142
|
+
token: "delimiter.html",
|
|
143
|
+
next: "@scriptEmbedded.text/javascript",
|
|
144
|
+
nextEmbedded: "text/javascript"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
[/[ \t\r\n]+/],
|
|
148
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
149
|
+
],
|
|
150
|
+
scriptAfterTypeEquals: [
|
|
151
|
+
[
|
|
152
|
+
/@[^@]/,
|
|
153
|
+
{
|
|
154
|
+
token: "@rematch",
|
|
155
|
+
switchTo: "@razorInSimpleState.scriptAfterTypeEquals"
|
|
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.html",
|
|
176
|
+
next: "@scriptEmbedded.text/javascript",
|
|
177
|
+
nextEmbedded: "text/javascript"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
[/[ \t\r\n]+/],
|
|
181
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
182
|
+
],
|
|
183
|
+
scriptWithCustomType: [
|
|
184
|
+
[
|
|
185
|
+
/@[^@]/,
|
|
186
|
+
{
|
|
187
|
+
token: "@rematch",
|
|
188
|
+
switchTo: "@razorInSimpleState.scriptWithCustomType.$S2"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
[
|
|
192
|
+
/>/,
|
|
193
|
+
{
|
|
194
|
+
token: "delimiter.html",
|
|
195
|
+
next: "@scriptEmbedded.$S2",
|
|
196
|
+
nextEmbedded: "$S2"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
200
|
+
[/'([^']*)'/, "attribute.value"],
|
|
201
|
+
[/[\w\-]+/, "attribute.name"],
|
|
202
|
+
[/=/, "delimiter"],
|
|
203
|
+
[/[ \t\r\n]+/],
|
|
204
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
205
|
+
],
|
|
206
|
+
scriptEmbedded: [
|
|
207
|
+
[
|
|
208
|
+
/@[^@]/,
|
|
209
|
+
{
|
|
210
|
+
token: "@rematch",
|
|
211
|
+
switchTo: "@razorInEmbeddedState.scriptEmbedded.$S2",
|
|
212
|
+
nextEmbedded: "@pop"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
|
216
|
+
],
|
|
217
|
+
style: [
|
|
218
|
+
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.style" }],
|
|
219
|
+
[/type/, "attribute.name", "@styleAfterType"],
|
|
220
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
221
|
+
[/'([^']*)'/, "attribute.value"],
|
|
222
|
+
[/[\w\-]+/, "attribute.name"],
|
|
223
|
+
[/=/, "delimiter"],
|
|
224
|
+
[
|
|
225
|
+
/>/,
|
|
226
|
+
{
|
|
227
|
+
token: "delimiter.html",
|
|
228
|
+
next: "@styleEmbedded.text/css",
|
|
229
|
+
nextEmbedded: "text/css"
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
[/[ \t\r\n]+/],
|
|
233
|
+
[
|
|
234
|
+
/(<\/)(style\s*)(>)/,
|
|
235
|
+
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
236
|
+
]
|
|
237
|
+
],
|
|
238
|
+
styleAfterType: [
|
|
239
|
+
[
|
|
240
|
+
/@[^@]/,
|
|
241
|
+
{
|
|
242
|
+
token: "@rematch",
|
|
243
|
+
switchTo: "@razorInSimpleState.styleAfterType"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
|
247
|
+
[
|
|
248
|
+
/>/,
|
|
249
|
+
{
|
|
250
|
+
token: "delimiter.html",
|
|
251
|
+
next: "@styleEmbedded.text/css",
|
|
252
|
+
nextEmbedded: "text/css"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
[/[ \t\r\n]+/],
|
|
256
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
257
|
+
],
|
|
258
|
+
styleAfterTypeEquals: [
|
|
259
|
+
[
|
|
260
|
+
/@[^@]/,
|
|
261
|
+
{
|
|
262
|
+
token: "@rematch",
|
|
263
|
+
switchTo: "@razorInSimpleState.styleAfterTypeEquals"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
[
|
|
267
|
+
/"([^"]*)"/,
|
|
268
|
+
{
|
|
269
|
+
token: "attribute.value",
|
|
270
|
+
switchTo: "@styleWithCustomType.$1"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
[
|
|
274
|
+
/'([^']*)'/,
|
|
275
|
+
{
|
|
276
|
+
token: "attribute.value",
|
|
277
|
+
switchTo: "@styleWithCustomType.$1"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
[
|
|
281
|
+
/>/,
|
|
282
|
+
{
|
|
283
|
+
token: "delimiter.html",
|
|
284
|
+
next: "@styleEmbedded.text/css",
|
|
285
|
+
nextEmbedded: "text/css"
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
[/[ \t\r\n]+/],
|
|
289
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
290
|
+
],
|
|
291
|
+
styleWithCustomType: [
|
|
292
|
+
[
|
|
293
|
+
/@[^@]/,
|
|
294
|
+
{
|
|
295
|
+
token: "@rematch",
|
|
296
|
+
switchTo: "@razorInSimpleState.styleWithCustomType.$S2"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
[
|
|
300
|
+
/>/,
|
|
301
|
+
{
|
|
302
|
+
token: "delimiter.html",
|
|
303
|
+
next: "@styleEmbedded.$S2",
|
|
304
|
+
nextEmbedded: "$S2"
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
[/"([^"]*)"/, "attribute.value"],
|
|
308
|
+
[/'([^']*)'/, "attribute.value"],
|
|
309
|
+
[/[\w\-]+/, "attribute.name"],
|
|
310
|
+
[/=/, "delimiter"],
|
|
311
|
+
[/[ \t\r\n]+/],
|
|
312
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
313
|
+
],
|
|
314
|
+
styleEmbedded: [
|
|
315
|
+
[
|
|
316
|
+
/@[^@]/,
|
|
317
|
+
{
|
|
318
|
+
token: "@rematch",
|
|
319
|
+
switchTo: "@razorInEmbeddedState.styleEmbedded.$S2",
|
|
320
|
+
nextEmbedded: "@pop"
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
|
324
|
+
],
|
|
325
|
+
razorInSimpleState: [
|
|
326
|
+
[/@\*/, "comment.cs", "@razorBlockCommentTopLevel"],
|
|
327
|
+
[/@[{(]/, "metatag.cs", "@razorRootTopLevel"],
|
|
328
|
+
[/(@)(\s*[\w]+)/, ["metatag.cs", { token: "identifier.cs", switchTo: "@$S2.$S3" }]],
|
|
329
|
+
[/[})]/, { token: "metatag.cs", switchTo: "@$S2.$S3" }],
|
|
330
|
+
[/\*@/, { token: "comment.cs", switchTo: "@$S2.$S3" }]
|
|
331
|
+
],
|
|
332
|
+
razorInEmbeddedState: [
|
|
333
|
+
[/@\*/, "comment.cs", "@razorBlockCommentTopLevel"],
|
|
334
|
+
[/@[{(]/, "metatag.cs", "@razorRootTopLevel"],
|
|
335
|
+
[
|
|
336
|
+
/(@)(\s*[\w]+)/,
|
|
337
|
+
[
|
|
338
|
+
"metatag.cs",
|
|
339
|
+
{
|
|
340
|
+
token: "identifier.cs",
|
|
341
|
+
switchTo: "@$S2.$S3",
|
|
342
|
+
nextEmbedded: "$S3"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
345
|
+
],
|
|
346
|
+
[
|
|
347
|
+
/[})]/,
|
|
348
|
+
{
|
|
349
|
+
token: "metatag.cs",
|
|
350
|
+
switchTo: "@$S2.$S3",
|
|
351
|
+
nextEmbedded: "$S3"
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
[
|
|
355
|
+
/\*@/,
|
|
356
|
+
{
|
|
357
|
+
token: "comment.cs",
|
|
358
|
+
switchTo: "@$S2.$S3",
|
|
359
|
+
nextEmbedded: "$S3"
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
],
|
|
363
|
+
razorBlockCommentTopLevel: [
|
|
364
|
+
[/\*@/, "@rematch", "@pop"],
|
|
365
|
+
[/[^*]+/, "comment.cs"],
|
|
366
|
+
[/./, "comment.cs"]
|
|
367
|
+
],
|
|
368
|
+
razorBlockComment: [
|
|
369
|
+
[/\*@/, "comment.cs", "@pop"],
|
|
370
|
+
[/[^*]+/, "comment.cs"],
|
|
371
|
+
[/./, "comment.cs"]
|
|
372
|
+
],
|
|
373
|
+
razorRootTopLevel: [
|
|
374
|
+
[/\{/, "delimiter.bracket.cs", "@razorRoot"],
|
|
375
|
+
[/\(/, "delimiter.parenthesis.cs", "@razorRoot"],
|
|
376
|
+
[/[})]/, "@rematch", "@pop"],
|
|
377
|
+
{ include: "razorCommon" }
|
|
378
|
+
],
|
|
379
|
+
razorRoot: [
|
|
380
|
+
[/\{/, "delimiter.bracket.cs", "@razorRoot"],
|
|
381
|
+
[/\(/, "delimiter.parenthesis.cs", "@razorRoot"],
|
|
382
|
+
[/\}/, "delimiter.bracket.cs", "@pop"],
|
|
383
|
+
[/\)/, "delimiter.parenthesis.cs", "@pop"],
|
|
384
|
+
{ include: "razorCommon" }
|
|
385
|
+
],
|
|
386
|
+
razorCommon: [
|
|
387
|
+
[
|
|
388
|
+
/[a-zA-Z_]\w*/,
|
|
389
|
+
{
|
|
390
|
+
cases: {
|
|
391
|
+
"@razorKeywords": { token: "keyword.cs" },
|
|
392
|
+
"@default": "identifier.cs"
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
],
|
|
396
|
+
[/[\[\]]/, "delimiter.array.cs"],
|
|
397
|
+
[/[ \t\r\n]+/],
|
|
398
|
+
[/\/\/.*$/, "comment.cs"],
|
|
399
|
+
[/@\*/, "comment.cs", "@razorBlockComment"],
|
|
400
|
+
[/"([^"]*)"/, "string.cs"],
|
|
401
|
+
[/'([^']*)'/, "string.cs"],
|
|
402
|
+
[/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
403
|
+
[/(<)([\w\-]+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
404
|
+
[/(<\/)([\w\-]+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
405
|
+
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, "delimiter.cs"],
|
|
406
|
+
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float.cs"],
|
|
407
|
+
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.cs"],
|
|
408
|
+
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.cs"],
|
|
409
|
+
[/0[0-7']*[0-7]/, "number.octal.cs"],
|
|
410
|
+
[/0[bB][0-1']*[0-1]/, "number.binary.cs"],
|
|
411
|
+
[/\d[\d']*/, "number.cs"],
|
|
412
|
+
[/\d/, "number.cs"]
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
|
+
razorKeywords: [
|
|
416
|
+
"abstract",
|
|
417
|
+
"as",
|
|
418
|
+
"async",
|
|
419
|
+
"await",
|
|
420
|
+
"base",
|
|
421
|
+
"bool",
|
|
422
|
+
"break",
|
|
423
|
+
"by",
|
|
424
|
+
"byte",
|
|
425
|
+
"case",
|
|
426
|
+
"catch",
|
|
427
|
+
"char",
|
|
428
|
+
"checked",
|
|
429
|
+
"class",
|
|
430
|
+
"const",
|
|
431
|
+
"continue",
|
|
432
|
+
"decimal",
|
|
433
|
+
"default",
|
|
434
|
+
"delegate",
|
|
435
|
+
"do",
|
|
436
|
+
"double",
|
|
437
|
+
"descending",
|
|
438
|
+
"explicit",
|
|
439
|
+
"event",
|
|
440
|
+
"extern",
|
|
441
|
+
"else",
|
|
442
|
+
"enum",
|
|
443
|
+
"false",
|
|
444
|
+
"finally",
|
|
445
|
+
"fixed",
|
|
446
|
+
"float",
|
|
447
|
+
"for",
|
|
448
|
+
"foreach",
|
|
449
|
+
"from",
|
|
450
|
+
"goto",
|
|
451
|
+
"group",
|
|
452
|
+
"if",
|
|
453
|
+
"implicit",
|
|
454
|
+
"in",
|
|
455
|
+
"int",
|
|
456
|
+
"interface",
|
|
457
|
+
"internal",
|
|
458
|
+
"into",
|
|
459
|
+
"is",
|
|
460
|
+
"lock",
|
|
461
|
+
"long",
|
|
462
|
+
"nameof",
|
|
463
|
+
"new",
|
|
464
|
+
"null",
|
|
465
|
+
"namespace",
|
|
466
|
+
"object",
|
|
467
|
+
"operator",
|
|
468
|
+
"out",
|
|
469
|
+
"override",
|
|
470
|
+
"orderby",
|
|
471
|
+
"params",
|
|
472
|
+
"private",
|
|
473
|
+
"protected",
|
|
474
|
+
"public",
|
|
475
|
+
"readonly",
|
|
476
|
+
"ref",
|
|
477
|
+
"return",
|
|
478
|
+
"switch",
|
|
479
|
+
"struct",
|
|
480
|
+
"sbyte",
|
|
481
|
+
"sealed",
|
|
482
|
+
"short",
|
|
483
|
+
"sizeof",
|
|
484
|
+
"stackalloc",
|
|
485
|
+
"static",
|
|
486
|
+
"string",
|
|
487
|
+
"select",
|
|
488
|
+
"this",
|
|
489
|
+
"throw",
|
|
490
|
+
"true",
|
|
491
|
+
"try",
|
|
492
|
+
"typeof",
|
|
493
|
+
"uint",
|
|
494
|
+
"ulong",
|
|
495
|
+
"unchecked",
|
|
496
|
+
"unsafe",
|
|
497
|
+
"ushort",
|
|
498
|
+
"using",
|
|
499
|
+
"var",
|
|
500
|
+
"virtual",
|
|
501
|
+
"volatile",
|
|
502
|
+
"void",
|
|
503
|
+
"when",
|
|
504
|
+
"while",
|
|
505
|
+
"where",
|
|
506
|
+
"yield",
|
|
507
|
+
"model",
|
|
508
|
+
"inject"
|
|
509
|
+
],
|
|
510
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
|
|
511
|
+
};
|
|
512
|
+
export {
|
|
513
|
+
w as conf,
|
|
514
|
+
x as language
|
|
515
|
+
};
|