@devtron-labs/devtron-fe-common-lib 0.0.81-beta-8 → 0.0.82
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/dist/Common/Api.d.ts +1 -0
- package/dist/Common/CodeEditor/CodeEditor.d.ts +44 -1
- package/dist/Common/Common.service.d.ts +3 -6
- package/dist/Common/Constants.d.ts +13 -10
- package/dist/Common/ErrorPage.d.ts +1 -1
- package/dist/Common/ErrorScreenManager.d.ts +1 -1
- package/dist/Common/GenericDescription/GenericDescription.d.ts +4 -0
- package/dist/Common/GenericDescription/constant.d.ts +2 -0
- package/dist/Common/GenericDescription/index.d.ts +2 -0
- package/dist/Common/GenericDescription/types.d.ts +14 -0
- package/dist/Common/Helper.d.ts +11 -2
- package/dist/Common/Markdown/constant.d.ts +28 -0
- package/dist/Common/Types.d.ts +56 -18
- package/dist/Common/index.d.ts +1 -1
- package/dist/Pages/index.d.ts +0 -1
- package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +1 -1
- package/dist/Shared/Components/ActivityIndicator/types.d.ts +2 -0
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +1 -0
- package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +18 -0
- package/dist/Shared/Components/ButtonWithSelector/index.d.ts +1 -0
- package/dist/Shared/Components/ButtonWithSelector/types.d.ts +10 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +7 -9
- package/dist/Shared/Components/ReactSelect/utils.d.ts +11 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +2 -1
- package/dist/Shared/Providers/ImageSelectionUtility/ImageSelectionUtility.d.ts +5 -0
- package/dist/Shared/Providers/ImageSelectionUtility/index.d.ts +1 -0
- package/dist/Shared/Providers/ImageSelectionUtility/types.d.ts +9 -0
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/Shared/constants.d.ts +14 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +88 -13
- package/dist/Shared/validations.d.ts +10 -1
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20827 -302
- package/package.json +10 -7
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +0 -36
- package/dist/Common/CodeEditor/index.d.ts +0 -2
- package/dist/Common/CodeEditor/types.d.ts +0 -86
- package/dist/Pages/ResourceBrowser/Helper.d.ts +0 -3
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +0 -20
- package/dist/Pages/ResourceBrowser/index.d.ts +0 -2
- package/dist/abap-5361cc9f.js +0 -1314
- package/dist/apex-f9413e6f.js +0 -315
- package/dist/assets/editor.worker-60ba9509.js +0 -12
- package/dist/assets/yaml.worker-cc1a551a.js +0 -471
- package/dist/azcli-36f2cb5e.js +0 -74
- package/dist/bat-6b05202d.js +0 -95
- package/dist/bicep-788415e3.js +0 -108
- package/dist/cameligo-4e85ec93.js +0 -168
- package/dist/clojure-40fa5799.js +0 -754
- package/dist/coffee-f557f5e0.js +0 -228
- package/dist/cpp-ebbf7759.js +0 -390
- package/dist/csharp-1616f566.js +0 -320
- package/dist/csp-5f0bc3c4.js +0 -57
- package/dist/css-2b1aec9b.js +0 -186
- package/dist/cssMode-f6d332a1.js +0 -1446
- package/dist/cypher-b12b4ba8.js +0 -262
- package/dist/dart-e0d70030.js +0 -270
- package/dist/dockerfile-f9d4b2b0.js +0 -132
- package/dist/ecl-5b91fdec.js +0 -454
- package/dist/elixir-deffd5a6.js +0 -489
- package/dist/flow9-84cd00d7.js +0 -141
- package/dist/freemarker2-8e23f5a4.js +0 -643
- package/dist/fsharp-d296151f.js +0 -210
- package/dist/go-7e72ff3b.js +0 -208
- package/dist/graphql-a93568a1.js +0 -141
- package/dist/handlebars-f1c6ec5a.js +0 -391
- package/dist/hcl-b3994d8f.js +0 -177
- package/dist/html-1a4d5d9a.js +0 -281
- package/dist/htmlMode-05b8c00b.js +0 -1456
- package/dist/index-83e46ae3.js +0 -128536
- package/dist/ini-df84509a.js +0 -68
- package/dist/java-fba3d046.js +0 -221
- package/dist/javascript-823e6a19.js +0 -75
- package/dist/jsonMode-052d75cd.js +0 -1867
- package/dist/julia-cefd45f6.js +0 -496
- package/dist/kotlin-b87b6942.js +0 -245
- package/dist/less-8a7f37bc.js +0 -168
- package/dist/lexon-cb95cd13.js +0 -151
- package/dist/liquid-13a0b36f.js +0 -238
- package/dist/lua-6d5b3ea4.js +0 -157
- package/dist/m3-d0daf5d0.js +0 -210
- package/dist/markdown-48bb0c6f.js +0 -202
- package/dist/mdx-32e942cd.js +0 -171
- package/dist/mips-20dcf886.js +0 -194
- package/dist/msdax-e9759e23.js +0 -377
- package/dist/mysql-95f335b2.js +0 -876
- package/dist/objective-c-ad0cfb47.js +0 -188
- package/dist/pascal-eda19dc3.js +0 -245
- package/dist/pascaligo-b7e0c89b.js +0 -158
- package/dist/perl-bbe5d32a.js +0 -599
- package/dist/pgsql-7ebaee1c.js +0 -847
- package/dist/php-2526756d.js +0 -471
- package/dist/pla-9ebd6f68.js +0 -131
- package/dist/postiats-9ac05cf6.js +0 -544
- package/dist/powerquery-1cae399d.js +0 -890
- package/dist/powershell-093b5b87.js +0 -233
- package/dist/protobuf-37993cbc.js +0 -422
- package/dist/pug-c2a5db5f.js +0 -393
- package/dist/python-37bf24cb.js +0 -259
- package/dist/qsharp-1450aac5.js +0 -282
- package/dist/r-a0642b90.js +0 -245
- package/dist/razor-991b6ccc.js +0 -512
- package/dist/redis-405cb63d.js +0 -298
- package/dist/redshift-830f82de.js +0 -806
- package/dist/restructuredtext-d81f5ef4.js +0 -162
- package/dist/ruby-d607b87e.js +0 -444
- package/dist/rust-86e74dbb.js +0 -337
- package/dist/sb-b7e5010d.js +0 -110
- package/dist/scala-a4d4a3c6.js +0 -353
- package/dist/scheme-81927e94.js +0 -114
- package/dist/scss-3f112fcd.js +0 -244
- package/dist/shell-d795bcaa.js +0 -224
- package/dist/solidity-5b556d3e.js +0 -1351
- package/dist/sophia-1da55998.js +0 -190
- package/dist/sparql-ac34318e.js +0 -193
- package/dist/sql-eef6393b.js +0 -818
- package/dist/st-758b1972.js +0 -415
- package/dist/swift-63cb1847.js +0 -315
- package/dist/systemverilog-2538c608.js +0 -556
- package/dist/tcl-53e6282a.js +0 -232
- package/dist/tsMode-018c5c46.js +0 -811
- package/dist/twig-80c3dc23.js +0 -323
- package/dist/typescript-26297d38.js +0 -328
- package/dist/vb-32089525.js +0 -364
- package/dist/wgsl-e681d5a0.js +0 -420
- package/dist/xml-c99083fc.js +0 -95
- package/dist/yaml-0347fb0c.js +0 -184
package/dist/razor-991b6ccc.js
DELETED
|
@@ -1,512 +0,0 @@
|
|
|
1
|
-
import { m as s } from "./index-83e46ae3.js";
|
|
2
|
-
/*!-----------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
5
|
-
* Released under the MIT license
|
|
6
|
-
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
7
|
-
*-----------------------------------------------------------------------------*/
|
|
8
|
-
var c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, d = Object.getOwnPropertyNames, p = Object.prototype.hasOwnProperty, i = (t, e, o, n) => {
|
|
9
|
-
if (e && typeof e == "object" || typeof e == "function")
|
|
10
|
-
for (let r of d(e))
|
|
11
|
-
!p.call(t, r) && r !== o && c(t, r, { get: () => e[r], enumerable: !(n = l(e, r)) || n.enumerable });
|
|
12
|
-
return t;
|
|
13
|
-
}, h = (t, e, o) => (i(t, e, "default"), o && i(o, e, "default")), a = {};
|
|
14
|
-
h(a, s);
|
|
15
|
-
var m = [
|
|
16
|
-
"area",
|
|
17
|
-
"base",
|
|
18
|
-
"br",
|
|
19
|
-
"col",
|
|
20
|
-
"embed",
|
|
21
|
-
"hr",
|
|
22
|
-
"img",
|
|
23
|
-
"input",
|
|
24
|
-
"keygen",
|
|
25
|
-
"link",
|
|
26
|
-
"menuitem",
|
|
27
|
-
"meta",
|
|
28
|
-
"param",
|
|
29
|
-
"source",
|
|
30
|
-
"track",
|
|
31
|
-
"wbr"
|
|
32
|
-
], b = {
|
|
33
|
-
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
|
34
|
-
comments: {
|
|
35
|
-
blockComment: ["<!--", "-->"]
|
|
36
|
-
},
|
|
37
|
-
brackets: [
|
|
38
|
-
["<!--", "-->"],
|
|
39
|
-
["<", ">"],
|
|
40
|
-
["{", "}"],
|
|
41
|
-
["(", ")"]
|
|
42
|
-
],
|
|
43
|
-
autoClosingPairs: [
|
|
44
|
-
{ open: "{", close: "}" },
|
|
45
|
-
{ open: "[", close: "]" },
|
|
46
|
-
{ open: "(", close: ")" },
|
|
47
|
-
{ open: '"', close: '"' },
|
|
48
|
-
{ open: "'", close: "'" }
|
|
49
|
-
],
|
|
50
|
-
surroundingPairs: [
|
|
51
|
-
{ open: '"', close: '"' },
|
|
52
|
-
{ open: "'", close: "'" },
|
|
53
|
-
{ open: "<", close: ">" }
|
|
54
|
-
],
|
|
55
|
-
onEnterRules: [
|
|
56
|
-
{
|
|
57
|
-
beforeText: new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
|
58
|
-
afterText: /^<\/(\w[\w\d]*)\s*>$/i,
|
|
59
|
-
action: {
|
|
60
|
-
indentAction: a.languages.IndentAction.IndentOutdent
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
beforeText: new RegExp(`<(?!(?:${m.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
|
|
65
|
-
action: { indentAction: a.languages.IndentAction.Indent }
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
}, y = {
|
|
69
|
-
defaultToken: "",
|
|
70
|
-
tokenPostfix: "",
|
|
71
|
-
tokenizer: {
|
|
72
|
-
root: [
|
|
73
|
-
[/@@@@/],
|
|
74
|
-
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.root" }],
|
|
75
|
-
[/<!DOCTYPE/, "metatag.html", "@doctype"],
|
|
76
|
-
[/<!--/, "comment.html", "@comment"],
|
|
77
|
-
[/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
78
|
-
[/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
|
|
79
|
-
[/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
|
|
80
|
-
[/(<)([:\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
81
|
-
[/(<\/)([\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
|
|
82
|
-
[/</, "delimiter.html"],
|
|
83
|
-
[/[ \t\r\n]+/],
|
|
84
|
-
[/[^<@]+/]
|
|
85
|
-
],
|
|
86
|
-
doctype: [
|
|
87
|
-
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.comment" }],
|
|
88
|
-
[/[^>]+/, "metatag.content.html"],
|
|
89
|
-
[/>/, "metatag.html", "@pop"]
|
|
90
|
-
],
|
|
91
|
-
comment: [
|
|
92
|
-
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.comment" }],
|
|
93
|
-
[/-->/, "comment.html", "@pop"],
|
|
94
|
-
[/[^-]+/, "comment.content.html"],
|
|
95
|
-
[/./, "comment.content.html"]
|
|
96
|
-
],
|
|
97
|
-
otherTag: [
|
|
98
|
-
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.otherTag" }],
|
|
99
|
-
[/\/?>/, "delimiter.html", "@pop"],
|
|
100
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
101
|
-
[/'([^']*)'/, "attribute.value"],
|
|
102
|
-
[/[\w\-]+/, "attribute.name"],
|
|
103
|
-
[/=/, "delimiter"],
|
|
104
|
-
[/[ \t\r\n]+/]
|
|
105
|
-
],
|
|
106
|
-
script: [
|
|
107
|
-
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.script" }],
|
|
108
|
-
[/type/, "attribute.name", "@scriptAfterType"],
|
|
109
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
110
|
-
[/'([^']*)'/, "attribute.value"],
|
|
111
|
-
[/[\w\-]+/, "attribute.name"],
|
|
112
|
-
[/=/, "delimiter"],
|
|
113
|
-
[
|
|
114
|
-
/>/,
|
|
115
|
-
{
|
|
116
|
-
token: "delimiter.html",
|
|
117
|
-
next: "@scriptEmbedded.text/javascript",
|
|
118
|
-
nextEmbedded: "text/javascript"
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
[/[ \t\r\n]+/],
|
|
122
|
-
[
|
|
123
|
-
/(<\/)(script\s*)(>)/,
|
|
124
|
-
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
125
|
-
]
|
|
126
|
-
],
|
|
127
|
-
scriptAfterType: [
|
|
128
|
-
[
|
|
129
|
-
/@[^@]/,
|
|
130
|
-
{
|
|
131
|
-
token: "@rematch",
|
|
132
|
-
switchTo: "@razorInSimpleState.scriptAfterType"
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
[/=/, "delimiter", "@scriptAfterTypeEquals"],
|
|
136
|
-
[
|
|
137
|
-
/>/,
|
|
138
|
-
{
|
|
139
|
-
token: "delimiter.html",
|
|
140
|
-
next: "@scriptEmbedded.text/javascript",
|
|
141
|
-
nextEmbedded: "text/javascript"
|
|
142
|
-
}
|
|
143
|
-
],
|
|
144
|
-
[/[ \t\r\n]+/],
|
|
145
|
-
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
146
|
-
],
|
|
147
|
-
scriptAfterTypeEquals: [
|
|
148
|
-
[
|
|
149
|
-
/@[^@]/,
|
|
150
|
-
{
|
|
151
|
-
token: "@rematch",
|
|
152
|
-
switchTo: "@razorInSimpleState.scriptAfterTypeEquals"
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
[
|
|
156
|
-
/"([^"]*)"/,
|
|
157
|
-
{
|
|
158
|
-
token: "attribute.value",
|
|
159
|
-
switchTo: "@scriptWithCustomType.$1"
|
|
160
|
-
}
|
|
161
|
-
],
|
|
162
|
-
[
|
|
163
|
-
/'([^']*)'/,
|
|
164
|
-
{
|
|
165
|
-
token: "attribute.value",
|
|
166
|
-
switchTo: "@scriptWithCustomType.$1"
|
|
167
|
-
}
|
|
168
|
-
],
|
|
169
|
-
[
|
|
170
|
-
/>/,
|
|
171
|
-
{
|
|
172
|
-
token: "delimiter.html",
|
|
173
|
-
next: "@scriptEmbedded.text/javascript",
|
|
174
|
-
nextEmbedded: "text/javascript"
|
|
175
|
-
}
|
|
176
|
-
],
|
|
177
|
-
[/[ \t\r\n]+/],
|
|
178
|
-
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
179
|
-
],
|
|
180
|
-
scriptWithCustomType: [
|
|
181
|
-
[
|
|
182
|
-
/@[^@]/,
|
|
183
|
-
{
|
|
184
|
-
token: "@rematch",
|
|
185
|
-
switchTo: "@razorInSimpleState.scriptWithCustomType.$S2"
|
|
186
|
-
}
|
|
187
|
-
],
|
|
188
|
-
[
|
|
189
|
-
/>/,
|
|
190
|
-
{
|
|
191
|
-
token: "delimiter.html",
|
|
192
|
-
next: "@scriptEmbedded.$S2",
|
|
193
|
-
nextEmbedded: "$S2"
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
197
|
-
[/'([^']*)'/, "attribute.value"],
|
|
198
|
-
[/[\w\-]+/, "attribute.name"],
|
|
199
|
-
[/=/, "delimiter"],
|
|
200
|
-
[/[ \t\r\n]+/],
|
|
201
|
-
[/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
|
|
202
|
-
],
|
|
203
|
-
scriptEmbedded: [
|
|
204
|
-
[
|
|
205
|
-
/@[^@]/,
|
|
206
|
-
{
|
|
207
|
-
token: "@rematch",
|
|
208
|
-
switchTo: "@razorInEmbeddedState.scriptEmbedded.$S2",
|
|
209
|
-
nextEmbedded: "@pop"
|
|
210
|
-
}
|
|
211
|
-
],
|
|
212
|
-
[/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
|
213
|
-
],
|
|
214
|
-
style: [
|
|
215
|
-
[/@[^@]/, { token: "@rematch", switchTo: "@razorInSimpleState.style" }],
|
|
216
|
-
[/type/, "attribute.name", "@styleAfterType"],
|
|
217
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
218
|
-
[/'([^']*)'/, "attribute.value"],
|
|
219
|
-
[/[\w\-]+/, "attribute.name"],
|
|
220
|
-
[/=/, "delimiter"],
|
|
221
|
-
[
|
|
222
|
-
/>/,
|
|
223
|
-
{
|
|
224
|
-
token: "delimiter.html",
|
|
225
|
-
next: "@styleEmbedded.text/css",
|
|
226
|
-
nextEmbedded: "text/css"
|
|
227
|
-
}
|
|
228
|
-
],
|
|
229
|
-
[/[ \t\r\n]+/],
|
|
230
|
-
[
|
|
231
|
-
/(<\/)(style\s*)(>)/,
|
|
232
|
-
["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
|
|
233
|
-
]
|
|
234
|
-
],
|
|
235
|
-
styleAfterType: [
|
|
236
|
-
[
|
|
237
|
-
/@[^@]/,
|
|
238
|
-
{
|
|
239
|
-
token: "@rematch",
|
|
240
|
-
switchTo: "@razorInSimpleState.styleAfterType"
|
|
241
|
-
}
|
|
242
|
-
],
|
|
243
|
-
[/=/, "delimiter", "@styleAfterTypeEquals"],
|
|
244
|
-
[
|
|
245
|
-
/>/,
|
|
246
|
-
{
|
|
247
|
-
token: "delimiter.html",
|
|
248
|
-
next: "@styleEmbedded.text/css",
|
|
249
|
-
nextEmbedded: "text/css"
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
[/[ \t\r\n]+/],
|
|
253
|
-
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
254
|
-
],
|
|
255
|
-
styleAfterTypeEquals: [
|
|
256
|
-
[
|
|
257
|
-
/@[^@]/,
|
|
258
|
-
{
|
|
259
|
-
token: "@rematch",
|
|
260
|
-
switchTo: "@razorInSimpleState.styleAfterTypeEquals"
|
|
261
|
-
}
|
|
262
|
-
],
|
|
263
|
-
[
|
|
264
|
-
/"([^"]*)"/,
|
|
265
|
-
{
|
|
266
|
-
token: "attribute.value",
|
|
267
|
-
switchTo: "@styleWithCustomType.$1"
|
|
268
|
-
}
|
|
269
|
-
],
|
|
270
|
-
[
|
|
271
|
-
/'([^']*)'/,
|
|
272
|
-
{
|
|
273
|
-
token: "attribute.value",
|
|
274
|
-
switchTo: "@styleWithCustomType.$1"
|
|
275
|
-
}
|
|
276
|
-
],
|
|
277
|
-
[
|
|
278
|
-
/>/,
|
|
279
|
-
{
|
|
280
|
-
token: "delimiter.html",
|
|
281
|
-
next: "@styleEmbedded.text/css",
|
|
282
|
-
nextEmbedded: "text/css"
|
|
283
|
-
}
|
|
284
|
-
],
|
|
285
|
-
[/[ \t\r\n]+/],
|
|
286
|
-
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
287
|
-
],
|
|
288
|
-
styleWithCustomType: [
|
|
289
|
-
[
|
|
290
|
-
/@[^@]/,
|
|
291
|
-
{
|
|
292
|
-
token: "@rematch",
|
|
293
|
-
switchTo: "@razorInSimpleState.styleWithCustomType.$S2"
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
[
|
|
297
|
-
/>/,
|
|
298
|
-
{
|
|
299
|
-
token: "delimiter.html",
|
|
300
|
-
next: "@styleEmbedded.$S2",
|
|
301
|
-
nextEmbedded: "$S2"
|
|
302
|
-
}
|
|
303
|
-
],
|
|
304
|
-
[/"([^"]*)"/, "attribute.value"],
|
|
305
|
-
[/'([^']*)'/, "attribute.value"],
|
|
306
|
-
[/[\w\-]+/, "attribute.name"],
|
|
307
|
-
[/=/, "delimiter"],
|
|
308
|
-
[/[ \t\r\n]+/],
|
|
309
|
-
[/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
|
|
310
|
-
],
|
|
311
|
-
styleEmbedded: [
|
|
312
|
-
[
|
|
313
|
-
/@[^@]/,
|
|
314
|
-
{
|
|
315
|
-
token: "@rematch",
|
|
316
|
-
switchTo: "@razorInEmbeddedState.styleEmbedded.$S2",
|
|
317
|
-
nextEmbedded: "@pop"
|
|
318
|
-
}
|
|
319
|
-
],
|
|
320
|
-
[/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
|
|
321
|
-
],
|
|
322
|
-
razorInSimpleState: [
|
|
323
|
-
[/@\*/, "comment.cs", "@razorBlockCommentTopLevel"],
|
|
324
|
-
[/@[{(]/, "metatag.cs", "@razorRootTopLevel"],
|
|
325
|
-
[/(@)(\s*[\w]+)/, ["metatag.cs", { token: "identifier.cs", switchTo: "@$S2.$S3" }]],
|
|
326
|
-
[/[})]/, { token: "metatag.cs", switchTo: "@$S2.$S3" }],
|
|
327
|
-
[/\*@/, { token: "comment.cs", switchTo: "@$S2.$S3" }]
|
|
328
|
-
],
|
|
329
|
-
razorInEmbeddedState: [
|
|
330
|
-
[/@\*/, "comment.cs", "@razorBlockCommentTopLevel"],
|
|
331
|
-
[/@[{(]/, "metatag.cs", "@razorRootTopLevel"],
|
|
332
|
-
[
|
|
333
|
-
/(@)(\s*[\w]+)/,
|
|
334
|
-
[
|
|
335
|
-
"metatag.cs",
|
|
336
|
-
{
|
|
337
|
-
token: "identifier.cs",
|
|
338
|
-
switchTo: "@$S2.$S3",
|
|
339
|
-
nextEmbedded: "$S3"
|
|
340
|
-
}
|
|
341
|
-
]
|
|
342
|
-
],
|
|
343
|
-
[
|
|
344
|
-
/[})]/,
|
|
345
|
-
{
|
|
346
|
-
token: "metatag.cs",
|
|
347
|
-
switchTo: "@$S2.$S3",
|
|
348
|
-
nextEmbedded: "$S3"
|
|
349
|
-
}
|
|
350
|
-
],
|
|
351
|
-
[
|
|
352
|
-
/\*@/,
|
|
353
|
-
{
|
|
354
|
-
token: "comment.cs",
|
|
355
|
-
switchTo: "@$S2.$S3",
|
|
356
|
-
nextEmbedded: "$S3"
|
|
357
|
-
}
|
|
358
|
-
]
|
|
359
|
-
],
|
|
360
|
-
razorBlockCommentTopLevel: [
|
|
361
|
-
[/\*@/, "@rematch", "@pop"],
|
|
362
|
-
[/[^*]+/, "comment.cs"],
|
|
363
|
-
[/./, "comment.cs"]
|
|
364
|
-
],
|
|
365
|
-
razorBlockComment: [
|
|
366
|
-
[/\*@/, "comment.cs", "@pop"],
|
|
367
|
-
[/[^*]+/, "comment.cs"],
|
|
368
|
-
[/./, "comment.cs"]
|
|
369
|
-
],
|
|
370
|
-
razorRootTopLevel: [
|
|
371
|
-
[/\{/, "delimiter.bracket.cs", "@razorRoot"],
|
|
372
|
-
[/\(/, "delimiter.parenthesis.cs", "@razorRoot"],
|
|
373
|
-
[/[})]/, "@rematch", "@pop"],
|
|
374
|
-
{ include: "razorCommon" }
|
|
375
|
-
],
|
|
376
|
-
razorRoot: [
|
|
377
|
-
[/\{/, "delimiter.bracket.cs", "@razorRoot"],
|
|
378
|
-
[/\(/, "delimiter.parenthesis.cs", "@razorRoot"],
|
|
379
|
-
[/\}/, "delimiter.bracket.cs", "@pop"],
|
|
380
|
-
[/\)/, "delimiter.parenthesis.cs", "@pop"],
|
|
381
|
-
{ include: "razorCommon" }
|
|
382
|
-
],
|
|
383
|
-
razorCommon: [
|
|
384
|
-
[
|
|
385
|
-
/[a-zA-Z_]\w*/,
|
|
386
|
-
{
|
|
387
|
-
cases: {
|
|
388
|
-
"@razorKeywords": { token: "keyword.cs" },
|
|
389
|
-
"@default": "identifier.cs"
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
],
|
|
393
|
-
[/[\[\]]/, "delimiter.array.cs"],
|
|
394
|
-
[/[ \t\r\n]+/],
|
|
395
|
-
[/\/\/.*$/, "comment.cs"],
|
|
396
|
-
[/@\*/, "comment.cs", "@razorBlockComment"],
|
|
397
|
-
[/"([^"]*)"/, "string.cs"],
|
|
398
|
-
[/'([^']*)'/, "string.cs"],
|
|
399
|
-
[/(<)([\w\-]+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
400
|
-
[/(<)([\w\-]+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
401
|
-
[/(<\/)([\w\-]+)(>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
|
|
402
|
-
[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/, "delimiter.cs"],
|
|
403
|
-
[/\d*\d+[eE]([\-+]?\d+)?/, "number.float.cs"],
|
|
404
|
-
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float.cs"],
|
|
405
|
-
[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/, "number.hex.cs"],
|
|
406
|
-
[/0[0-7']*[0-7]/, "number.octal.cs"],
|
|
407
|
-
[/0[bB][0-1']*[0-1]/, "number.binary.cs"],
|
|
408
|
-
[/\d[\d']*/, "number.cs"],
|
|
409
|
-
[/\d/, "number.cs"]
|
|
410
|
-
]
|
|
411
|
-
},
|
|
412
|
-
razorKeywords: [
|
|
413
|
-
"abstract",
|
|
414
|
-
"as",
|
|
415
|
-
"async",
|
|
416
|
-
"await",
|
|
417
|
-
"base",
|
|
418
|
-
"bool",
|
|
419
|
-
"break",
|
|
420
|
-
"by",
|
|
421
|
-
"byte",
|
|
422
|
-
"case",
|
|
423
|
-
"catch",
|
|
424
|
-
"char",
|
|
425
|
-
"checked",
|
|
426
|
-
"class",
|
|
427
|
-
"const",
|
|
428
|
-
"continue",
|
|
429
|
-
"decimal",
|
|
430
|
-
"default",
|
|
431
|
-
"delegate",
|
|
432
|
-
"do",
|
|
433
|
-
"double",
|
|
434
|
-
"descending",
|
|
435
|
-
"explicit",
|
|
436
|
-
"event",
|
|
437
|
-
"extern",
|
|
438
|
-
"else",
|
|
439
|
-
"enum",
|
|
440
|
-
"false",
|
|
441
|
-
"finally",
|
|
442
|
-
"fixed",
|
|
443
|
-
"float",
|
|
444
|
-
"for",
|
|
445
|
-
"foreach",
|
|
446
|
-
"from",
|
|
447
|
-
"goto",
|
|
448
|
-
"group",
|
|
449
|
-
"if",
|
|
450
|
-
"implicit",
|
|
451
|
-
"in",
|
|
452
|
-
"int",
|
|
453
|
-
"interface",
|
|
454
|
-
"internal",
|
|
455
|
-
"into",
|
|
456
|
-
"is",
|
|
457
|
-
"lock",
|
|
458
|
-
"long",
|
|
459
|
-
"nameof",
|
|
460
|
-
"new",
|
|
461
|
-
"null",
|
|
462
|
-
"namespace",
|
|
463
|
-
"object",
|
|
464
|
-
"operator",
|
|
465
|
-
"out",
|
|
466
|
-
"override",
|
|
467
|
-
"orderby",
|
|
468
|
-
"params",
|
|
469
|
-
"private",
|
|
470
|
-
"protected",
|
|
471
|
-
"public",
|
|
472
|
-
"readonly",
|
|
473
|
-
"ref",
|
|
474
|
-
"return",
|
|
475
|
-
"switch",
|
|
476
|
-
"struct",
|
|
477
|
-
"sbyte",
|
|
478
|
-
"sealed",
|
|
479
|
-
"short",
|
|
480
|
-
"sizeof",
|
|
481
|
-
"stackalloc",
|
|
482
|
-
"static",
|
|
483
|
-
"string",
|
|
484
|
-
"select",
|
|
485
|
-
"this",
|
|
486
|
-
"throw",
|
|
487
|
-
"true",
|
|
488
|
-
"try",
|
|
489
|
-
"typeof",
|
|
490
|
-
"uint",
|
|
491
|
-
"ulong",
|
|
492
|
-
"unchecked",
|
|
493
|
-
"unsafe",
|
|
494
|
-
"ushort",
|
|
495
|
-
"using",
|
|
496
|
-
"var",
|
|
497
|
-
"virtual",
|
|
498
|
-
"volatile",
|
|
499
|
-
"void",
|
|
500
|
-
"when",
|
|
501
|
-
"while",
|
|
502
|
-
"where",
|
|
503
|
-
"yield",
|
|
504
|
-
"model",
|
|
505
|
-
"inject"
|
|
506
|
-
],
|
|
507
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/
|
|
508
|
-
};
|
|
509
|
-
export {
|
|
510
|
-
b as conf,
|
|
511
|
-
y as language
|
|
512
|
-
};
|