@devtron-labs/devtron-fe-common-lib 1.1.6-beta-2 → 1.1.6-beta-3
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/abap-DttVK1gE.js +1314 -0
- package/dist/apex-BjfHvyb2.js +315 -0
- package/dist/assets/index.css +1 -0
- package/dist/azcli-Ws-Trf8e.js +74 -0
- package/dist/bat-CeCHpU9_.js +95 -0
- package/dist/bicep-C7a7aEmi.js +108 -0
- package/dist/cameligo-CJeEIvX4.js +168 -0
- package/dist/clojure-CEKXhLdU.js +754 -0
- package/dist/coffee-CKu3e6V1.js +228 -0
- package/dist/cpp-CvUiT5Ec.js +390 -0
- package/dist/csharp-PmU9HJkB.js +320 -0
- package/dist/csp-DULvRLPF.js +57 -0
- package/dist/css-CNWXQPpt.js +186 -0
- package/dist/cssMode-LuGmMkrz.js +1446 -0
- package/dist/cypher-CYHOQS2R.js +262 -0
- package/dist/dart-BjGx-9Jk.js +270 -0
- package/dist/dockerfile-D0WaVIZ2.js +132 -0
- package/dist/ecl-CijaJu-p.js +454 -0
- package/dist/elixir-BI5Tc37S.js +489 -0
- package/dist/flow9-BApGtQOO.js +141 -0
- package/dist/freemarker2-x4RlP1Lb.js +643 -0
- package/dist/fsharp-VeKgt2eG.js +210 -0
- package/dist/go-Cl8cKDlN.js +208 -0
- package/dist/graphql-PfgPBmj4.js +141 -0
- package/dist/handlebars-CmzmbrC4.js +391 -0
- package/dist/hcl-CG4VZSkm.js +177 -0
- package/dist/html-C5BGMOju.js +281 -0
- package/dist/htmlMode-ojR1UPbw.js +1456 -0
- package/dist/index-D-Wm7m6U.js +163399 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +429 -430
- package/dist/ini-EhiBNPZF.js +68 -0
- package/dist/java-DPbnXhoY.js +221 -0
- package/dist/javascript-B1bShWIo.js +75 -0
- package/dist/jsonMode-COdOy9-_.js +1866 -0
- package/dist/julia-Bw7EYexg.js +496 -0
- package/dist/kotlin-BNXLDoV0.js +245 -0
- package/dist/less-DtuF_id_.js +168 -0
- package/dist/lexon-DpB0-37O.js +151 -0
- package/dist/liquid-BjXJHFpF.js +238 -0
- package/dist/lua-CzRNOk9S.js +157 -0
- package/dist/m3-pXPmDwal.js +210 -0
- package/dist/markdown-CeQ3rxjn.js +202 -0
- package/dist/mdx-XJRNLcdB.js +171 -0
- package/dist/mips-DyE0VSNz.js +194 -0
- package/dist/msdax-CbdkoqRa.js +377 -0
- package/dist/mysql-B86-uHNu.js +876 -0
- package/dist/objective-c-1xvkKPId.js +188 -0
- package/dist/pascal-DcyFhj80.js +245 -0
- package/dist/pascaligo-QnM0hvMG.js +158 -0
- package/dist/perl-Bqp3FbU4.js +599 -0
- package/dist/pgsql-HdG7BG_Z.js +847 -0
- package/dist/php-zf7L2p7t.js +471 -0
- package/dist/pla-3Ykqsyzl.js +131 -0
- package/dist/postiats-D1v08O4B.js +544 -0
- package/dist/powerquery-CiQ9b1-b.js +890 -0
- package/dist/powershell-DFNK6VaX.js +233 -0
- package/dist/protobuf-D5P2Z6tc.js +422 -0
- package/dist/pug-BeyMX5am.js +393 -0
- package/dist/python-CEuHuu7a.js +259 -0
- package/dist/qsharp-DcFOTjuP.js +282 -0
- package/dist/r-B3aJPcWp.js +245 -0
- package/dist/razor-ByG7kYAl.js +512 -0
- package/dist/redis-CyC__Tub.js +298 -0
- package/dist/redshift-NqbcQPcY.js +806 -0
- package/dist/restructuredtext-CZMxBkap.js +162 -0
- package/dist/ruby-C_jEtDv5.js +444 -0
- package/dist/rust-WAeitMCC.js +337 -0
- package/dist/sb-CSBm2pED.js +110 -0
- package/dist/scala-D76PhKmh.js +353 -0
- package/dist/scheme-CBSAjRuO.js +114 -0
- package/dist/scss-BHY8wFFg.js +244 -0
- package/dist/shell-Cwju9_l8.js +224 -0
- package/dist/solidity-BV1-nze3.js +1351 -0
- package/dist/sophia-DfoUlGAs.js +190 -0
- package/dist/sparql-4kfArTtK.js +193 -0
- package/dist/sql-DIpn0HSX.js +818 -0
- package/dist/st-BgJ_KDZh.js +415 -0
- package/dist/swift-D-ucEgIi.js +315 -0
- package/dist/systemverilog-DjkH5zuo.js +556 -0
- package/dist/tcl-gd8XLKJA.js +232 -0
- package/dist/tsMode-GtXif5Eu.js +810 -0
- package/dist/twig-D5XtTFGM.js +323 -0
- package/dist/typescript-FqIgT4Lb.js +328 -0
- package/dist/vb-DYqqYAf3.js +364 -0
- package/dist/wgsl-CkZE0qf3.js +420 -0
- package/dist/xml-BUcUe2Ft.js +95 -0
- package/dist/yaml-CFa20EYw.js +184 -0
- package/package.json +5 -4
- package/dist/@code-editor-Vbkor1r4.js +0 -18991
- package/dist/@common-rjsf-6UM_zh8b.js +0 -567
- package/dist/@framer-motion-DHY98qq3.js +0 -3437
- package/dist/@moment-C_WeV3Af.js +0 -2609
- package/dist/@monaco-editor-34kqzg3G.js +0 -70451
- package/dist/@react-dates-WNnwjI5S.js +0 -7708
- package/dist/@react-select-BbR996pa.js +0 -2636
- package/dist/@src-assets-images-DamVa6cS.js +0 -14
- package/dist/@vendor-RU8AW1bK.js +0 -20473
- package/dist/assets/@code-editor.css +0 -1
- package/dist/assets/@common-rjsf.css +0 -1
- package/dist/assets/@monaco-editor.css +0 -1
- package/dist/assets/@react-dates.css +0 -1
- package/dist/assets/@vendor.css +0 -1
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
comments: {
|
|
9
|
+
blockComment: ["<!--", "-->"]
|
|
10
|
+
},
|
|
11
|
+
brackets: [
|
|
12
|
+
["{", "}"],
|
|
13
|
+
["[", "]"],
|
|
14
|
+
["(", ")"]
|
|
15
|
+
],
|
|
16
|
+
autoClosingPairs: [
|
|
17
|
+
{ open: "{", close: "}" },
|
|
18
|
+
{ open: "[", close: "]" },
|
|
19
|
+
{ open: "(", close: ")" },
|
|
20
|
+
{ open: "<", close: ">", notIn: ["string"] }
|
|
21
|
+
],
|
|
22
|
+
surroundingPairs: [
|
|
23
|
+
{ open: "(", close: ")" },
|
|
24
|
+
{ open: "[", close: "]" },
|
|
25
|
+
{ open: "`", close: "`" }
|
|
26
|
+
],
|
|
27
|
+
folding: {
|
|
28
|
+
markers: {
|
|
29
|
+
start: new RegExp("^\\s*<!--\\s*#?region\\b.*-->"),
|
|
30
|
+
end: new RegExp("^\\s*<!--\\s*#?endregion\\b.*-->")
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}, t = {
|
|
34
|
+
defaultToken: "",
|
|
35
|
+
tokenPostfix: ".md",
|
|
36
|
+
control: /[\\`*_\[\]{}()#+\-\.!]/,
|
|
37
|
+
noncontrol: /[^\\`*_\[\]{}()#+\-\.!]/,
|
|
38
|
+
escapes: /\\(?:@control)/,
|
|
39
|
+
jsescapes: /\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,
|
|
40
|
+
empty: [
|
|
41
|
+
"area",
|
|
42
|
+
"base",
|
|
43
|
+
"basefont",
|
|
44
|
+
"br",
|
|
45
|
+
"col",
|
|
46
|
+
"frame",
|
|
47
|
+
"hr",
|
|
48
|
+
"img",
|
|
49
|
+
"input",
|
|
50
|
+
"isindex",
|
|
51
|
+
"link",
|
|
52
|
+
"meta",
|
|
53
|
+
"param"
|
|
54
|
+
],
|
|
55
|
+
tokenizer: {
|
|
56
|
+
root: [
|
|
57
|
+
[/^\s*\|/, "@rematch", "@table_header"],
|
|
58
|
+
[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/, ["white", "keyword", "keyword", "keyword"]],
|
|
59
|
+
[/^\s*(=+|\-+)\s*$/, "keyword"],
|
|
60
|
+
[/^\s*((\*[ ]?)+)\s*$/, "meta.separator"],
|
|
61
|
+
[/^\s*>+/, "comment"],
|
|
62
|
+
[/^\s*([\*\-+:]|\d+\.)\s/, "keyword"],
|
|
63
|
+
[/^(\t|[ ]{4})[^ ].*$/, "string"],
|
|
64
|
+
[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/, { token: "string", next: "@codeblock" }],
|
|
65
|
+
[
|
|
66
|
+
/^\s*```\s*((?:\w|[\/\-#])+).*$/,
|
|
67
|
+
{ token: "string", next: "@codeblockgh", nextEmbedded: "$1" }
|
|
68
|
+
],
|
|
69
|
+
[/^\s*```\s*$/, { token: "string", next: "@codeblock" }],
|
|
70
|
+
{ include: "@linecontent" }
|
|
71
|
+
],
|
|
72
|
+
table_header: [
|
|
73
|
+
{ include: "@table_common" },
|
|
74
|
+
[/[^\|]+/, "keyword.table.header"]
|
|
75
|
+
],
|
|
76
|
+
table_body: [{ include: "@table_common" }, { include: "@linecontent" }],
|
|
77
|
+
table_common: [
|
|
78
|
+
[/\s*[\-:]+\s*/, { token: "keyword", switchTo: "table_body" }],
|
|
79
|
+
[/^\s*\|/, "keyword.table.left"],
|
|
80
|
+
[/^\s*[^\|]/, "@rematch", "@pop"],
|
|
81
|
+
[/^\s*$/, "@rematch", "@pop"],
|
|
82
|
+
[
|
|
83
|
+
/\|/,
|
|
84
|
+
{
|
|
85
|
+
cases: {
|
|
86
|
+
"@eos": "keyword.table.right",
|
|
87
|
+
"@default": "keyword.table.middle"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
],
|
|
92
|
+
codeblock: [
|
|
93
|
+
[/^\s*~~~\s*$/, { token: "string", next: "@pop" }],
|
|
94
|
+
[/^\s*```\s*$/, { token: "string", next: "@pop" }],
|
|
95
|
+
[/.*$/, "variable.source"]
|
|
96
|
+
],
|
|
97
|
+
codeblockgh: [
|
|
98
|
+
[/```\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
|
|
99
|
+
[/[^`]+/, "variable.source"]
|
|
100
|
+
],
|
|
101
|
+
linecontent: [
|
|
102
|
+
[/&\w+;/, "string.escape"],
|
|
103
|
+
[/@escapes/, "escape"],
|
|
104
|
+
[/\b__([^\\_]|@escapes|_(?!_))+__\b/, "strong"],
|
|
105
|
+
[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/, "strong"],
|
|
106
|
+
[/\b_[^_]+_\b/, "emphasis"],
|
|
107
|
+
[/\*([^\\*]|@escapes)+\*/, "emphasis"],
|
|
108
|
+
[/`([^\\`]|@escapes)+`/, "variable"],
|
|
109
|
+
[/\{+[^}]+\}+/, "string.target"],
|
|
110
|
+
[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/, ["string.link", "", "string.link"]],
|
|
111
|
+
[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/, "string.link"],
|
|
112
|
+
{ include: "html" }
|
|
113
|
+
],
|
|
114
|
+
html: [
|
|
115
|
+
[/<(\w+)\/>/, "tag"],
|
|
116
|
+
[
|
|
117
|
+
/<(\w+)(\-|\w)*/,
|
|
118
|
+
{
|
|
119
|
+
cases: {
|
|
120
|
+
"@empty": { token: "tag", next: "@tag.$1" },
|
|
121
|
+
"@default": { token: "tag", next: "@tag.$1" }
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
[/<\/(\w+)(\-|\w)*\s*>/, { token: "tag" }],
|
|
126
|
+
[/<!--/, "comment", "@comment"]
|
|
127
|
+
],
|
|
128
|
+
comment: [
|
|
129
|
+
[/[^<\-]+/, "comment.content"],
|
|
130
|
+
[/-->/, "comment", "@pop"],
|
|
131
|
+
[/<!--/, "comment.content.invalid"],
|
|
132
|
+
[/[<\-]/, "comment.content"]
|
|
133
|
+
],
|
|
134
|
+
tag: [
|
|
135
|
+
[/[ \t\r\n]+/, "white"],
|
|
136
|
+
[
|
|
137
|
+
/(type)(\s*=\s*)(")([^"]+)(")/,
|
|
138
|
+
[
|
|
139
|
+
"attribute.name.html",
|
|
140
|
+
"delimiter.html",
|
|
141
|
+
"string.html",
|
|
142
|
+
{ token: "string.html", switchTo: "@tag.$S2.$4" },
|
|
143
|
+
"string.html"
|
|
144
|
+
]
|
|
145
|
+
],
|
|
146
|
+
[
|
|
147
|
+
/(type)(\s*=\s*)(')([^']+)(')/,
|
|
148
|
+
[
|
|
149
|
+
"attribute.name.html",
|
|
150
|
+
"delimiter.html",
|
|
151
|
+
"string.html",
|
|
152
|
+
{ token: "string.html", switchTo: "@tag.$S2.$4" },
|
|
153
|
+
"string.html"
|
|
154
|
+
]
|
|
155
|
+
],
|
|
156
|
+
[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/, ["attribute.name.html", "delimiter.html", "string.html"]],
|
|
157
|
+
[/\w+/, "attribute.name.html"],
|
|
158
|
+
[/\/>/, "tag", "@pop"],
|
|
159
|
+
[
|
|
160
|
+
/>/,
|
|
161
|
+
{
|
|
162
|
+
cases: {
|
|
163
|
+
"$S2==style": {
|
|
164
|
+
token: "tag",
|
|
165
|
+
switchTo: "embeddedStyle",
|
|
166
|
+
nextEmbedded: "text/css"
|
|
167
|
+
},
|
|
168
|
+
"$S2==script": {
|
|
169
|
+
cases: {
|
|
170
|
+
$S3: {
|
|
171
|
+
token: "tag",
|
|
172
|
+
switchTo: "embeddedScript",
|
|
173
|
+
nextEmbedded: "$S3"
|
|
174
|
+
},
|
|
175
|
+
"@default": {
|
|
176
|
+
token: "tag",
|
|
177
|
+
switchTo: "embeddedScript",
|
|
178
|
+
nextEmbedded: "text/javascript"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"@default": { token: "tag", next: "@pop" }
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
],
|
|
187
|
+
embeddedStyle: [
|
|
188
|
+
[/[^<]+/, ""],
|
|
189
|
+
[/<\/style\s*>/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
190
|
+
[/</, ""]
|
|
191
|
+
],
|
|
192
|
+
embeddedScript: [
|
|
193
|
+
[/[^<]+/, ""],
|
|
194
|
+
[/<\/script\s*>/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
|
|
195
|
+
[/</, ""]
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
export {
|
|
200
|
+
e as conf,
|
|
201
|
+
t as language
|
|
202
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { m as s } from "./index-D-Wm7m6U.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 d = Object.defineProperty, c = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, a = Object.prototype.hasOwnProperty, k = (n, e, i, r) => {
|
|
9
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
10
|
+
for (let o of p(e))
|
|
11
|
+
!a.call(n, o) && o !== i && d(n, o, { get: () => e[o], enumerable: !(r = c(e, o)) || r.enumerable });
|
|
12
|
+
return n;
|
|
13
|
+
}, l = (n, e, i) => (k(n, e, "default"), i), t = {};
|
|
14
|
+
l(t, s);
|
|
15
|
+
var m = {
|
|
16
|
+
comments: {
|
|
17
|
+
blockComment: ["{/*", "*/}"]
|
|
18
|
+
},
|
|
19
|
+
brackets: [["{", "}"]],
|
|
20
|
+
autoClosingPairs: [
|
|
21
|
+
{ open: '"', close: '"' },
|
|
22
|
+
{ open: "'", close: "'" },
|
|
23
|
+
{ open: "“", close: "”" },
|
|
24
|
+
{ open: "‘", close: "’" },
|
|
25
|
+
{ open: "`", close: "`" },
|
|
26
|
+
{ open: "{", close: "}" },
|
|
27
|
+
{ open: "(", close: ")" },
|
|
28
|
+
{ open: "_", close: "_" },
|
|
29
|
+
{ open: "**", close: "**" },
|
|
30
|
+
{ open: "<", close: ">" }
|
|
31
|
+
],
|
|
32
|
+
onEnterRules: [
|
|
33
|
+
{
|
|
34
|
+
beforeText: /^\s*- .+/,
|
|
35
|
+
action: { indentAction: t.languages.IndentAction.None, appendText: "- " }
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
beforeText: /^\s*\+ .+/,
|
|
39
|
+
action: { indentAction: t.languages.IndentAction.None, appendText: "+ " }
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
beforeText: /^\s*\* .+/,
|
|
43
|
+
action: { indentAction: t.languages.IndentAction.None, appendText: "* " }
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
beforeText: /^> /,
|
|
47
|
+
action: { indentAction: t.languages.IndentAction.None, appendText: "> " }
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
beforeText: /<\w+/,
|
|
51
|
+
action: { indentAction: t.languages.IndentAction.Indent }
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
beforeText: /\s+>\s*$/,
|
|
55
|
+
action: { indentAction: t.languages.IndentAction.Indent }
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
beforeText: /<\/\w+>/,
|
|
59
|
+
action: { indentAction: t.languages.IndentAction.Outdent }
|
|
60
|
+
},
|
|
61
|
+
...Array.from({ length: 100 }, (n, e) => ({
|
|
62
|
+
beforeText: new RegExp(`^${e}\\. .+`),
|
|
63
|
+
action: { indentAction: t.languages.IndentAction.None, appendText: `${e + 1}. ` }
|
|
64
|
+
}))
|
|
65
|
+
]
|
|
66
|
+
}, b = {
|
|
67
|
+
defaultToken: "",
|
|
68
|
+
tokenPostfix: ".mdx",
|
|
69
|
+
control: /[!#()*+.[\\\]_`{}\-]/,
|
|
70
|
+
escapes: /\\@control/,
|
|
71
|
+
tokenizer: {
|
|
72
|
+
root: [
|
|
73
|
+
[/^---$/, { token: "meta.content", next: "@frontmatter", nextEmbedded: "yaml" }],
|
|
74
|
+
[/^\s*import/, { token: "keyword", next: "@import", nextEmbedded: "js" }],
|
|
75
|
+
[/^\s*export/, { token: "keyword", next: "@export", nextEmbedded: "js" }],
|
|
76
|
+
[/<\w+/, { token: "type.identifier", next: "@jsx" }],
|
|
77
|
+
[/<\/?\w+>/, "type.identifier"],
|
|
78
|
+
[
|
|
79
|
+
/^(\s*)(>*\s*)(#{1,6}\s)/,
|
|
80
|
+
[{ token: "white" }, { token: "comment" }, { token: "keyword", next: "@header" }]
|
|
81
|
+
],
|
|
82
|
+
[/^(\s*)(>*\s*)([*+-])(\s+)/, ["white", "comment", "keyword", "white"]],
|
|
83
|
+
[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, ["white", "comment", "number", "white"]],
|
|
84
|
+
[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/, ["white", "comment", "number", "white"]],
|
|
85
|
+
[/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/, ["white", "comment", "keyword"]],
|
|
86
|
+
[/`{3,}(\s.*)?$/, { token: "string", next: "@codeblock_backtick" }],
|
|
87
|
+
[/~{3,}(\s.*)?$/, { token: "string", next: "@codeblock_tilde" }],
|
|
88
|
+
[
|
|
89
|
+
/`{3,}(\S+).*$/,
|
|
90
|
+
{ token: "string", next: "@codeblock_highlight_backtick", nextEmbedded: "$1" }
|
|
91
|
+
],
|
|
92
|
+
[
|
|
93
|
+
/~{3,}(\S+).*$/,
|
|
94
|
+
{ token: "string", next: "@codeblock_highlight_tilde", nextEmbedded: "$1" }
|
|
95
|
+
],
|
|
96
|
+
[/^(\s*)(-{4,})$/, ["white", "comment"]],
|
|
97
|
+
[/^(\s*)(>+)/, ["white", "comment"]],
|
|
98
|
+
{ include: "content" }
|
|
99
|
+
],
|
|
100
|
+
content: [
|
|
101
|
+
[
|
|
102
|
+
/(\[)(.+)(]\()(.+)(\s+".*")(\))/,
|
|
103
|
+
["", "string.link", "", "type.identifier", "string.link", ""]
|
|
104
|
+
],
|
|
105
|
+
[/(\[)(.+)(]\()(.+)(\))/, ["", "type.identifier", "", "string.link", ""]],
|
|
106
|
+
[/(\[)(.+)(]\[)(.+)(])/, ["", "type.identifier", "", "type.identifier", ""]],
|
|
107
|
+
[/(\[)(.+)(]:\s+)(\S*)/, ["", "type.identifier", "", "string.link"]],
|
|
108
|
+
[/(\[)(.+)(])/, ["", "type.identifier", ""]],
|
|
109
|
+
[/`.*`/, "variable.source"],
|
|
110
|
+
[/_/, { token: "emphasis", next: "@emphasis_underscore" }],
|
|
111
|
+
[/\*(?!\*)/, { token: "emphasis", next: "@emphasis_asterisk" }],
|
|
112
|
+
[/\*\*/, { token: "strong", next: "@strong" }],
|
|
113
|
+
[/{/, { token: "delimiter.bracket", next: "@expression", nextEmbedded: "js" }]
|
|
114
|
+
],
|
|
115
|
+
import: [[/'\s*(;|$)/, { token: "string", next: "@pop", nextEmbedded: "@pop" }]],
|
|
116
|
+
expression: [
|
|
117
|
+
[/{/, { token: "delimiter.bracket", next: "@expression" }],
|
|
118
|
+
[/}/, { token: "delimiter.bracket", next: "@pop", nextEmbedded: "@pop" }]
|
|
119
|
+
],
|
|
120
|
+
export: [[/^\s*$/, { token: "delimiter.bracket", next: "@pop", nextEmbedded: "@pop" }]],
|
|
121
|
+
jsx: [
|
|
122
|
+
[/\s+/, ""],
|
|
123
|
+
[/(\w+)(=)("(?:[^"\\]|\\.)*")/, ["attribute.name", "operator", "string"]],
|
|
124
|
+
[/(\w+)(=)('(?:[^'\\]|\\.)*')/, ["attribute.name", "operator", "string"]],
|
|
125
|
+
[/(\w+(?=\s|>|={|$))/, ["attribute.name"]],
|
|
126
|
+
[/={/, { token: "delimiter.bracket", next: "@expression", nextEmbedded: "js" }],
|
|
127
|
+
[/>/, { token: "type.identifier", next: "@pop" }]
|
|
128
|
+
],
|
|
129
|
+
header: [
|
|
130
|
+
[/.$/, { token: "keyword", next: "@pop" }],
|
|
131
|
+
{ include: "content" },
|
|
132
|
+
[/./, { token: "keyword" }]
|
|
133
|
+
],
|
|
134
|
+
strong: [
|
|
135
|
+
[/\*\*/, { token: "strong", next: "@pop" }],
|
|
136
|
+
{ include: "content" },
|
|
137
|
+
[/./, { token: "strong" }]
|
|
138
|
+
],
|
|
139
|
+
emphasis_underscore: [
|
|
140
|
+
[/_/, { token: "emphasis", next: "@pop" }],
|
|
141
|
+
{ include: "content" },
|
|
142
|
+
[/./, { token: "emphasis" }]
|
|
143
|
+
],
|
|
144
|
+
emphasis_asterisk: [
|
|
145
|
+
[/\*(?!\*)/, { token: "emphasis", next: "@pop" }],
|
|
146
|
+
{ include: "content" },
|
|
147
|
+
[/./, { token: "emphasis" }]
|
|
148
|
+
],
|
|
149
|
+
frontmatter: [[/^---$/, { token: "meta.content", nextEmbedded: "@pop", next: "@pop" }]],
|
|
150
|
+
codeblock_highlight_backtick: [
|
|
151
|
+
[/\s*`{3,}\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
|
|
152
|
+
[/.*$/, "variable.source"]
|
|
153
|
+
],
|
|
154
|
+
codeblock_highlight_tilde: [
|
|
155
|
+
[/\s*~{3,}\s*$/, { token: "string", next: "@pop", nextEmbedded: "@pop" }],
|
|
156
|
+
[/.*$/, "variable.source"]
|
|
157
|
+
],
|
|
158
|
+
codeblock_backtick: [
|
|
159
|
+
[/\s*`{3,}\s*$/, { token: "string", next: "@pop" }],
|
|
160
|
+
[/.*$/, "variable.source"]
|
|
161
|
+
],
|
|
162
|
+
codeblock_tilde: [
|
|
163
|
+
[/\s*~{3,}\s*$/, { token: "string", next: "@pop" }],
|
|
164
|
+
[/.*$/, "variable.source"]
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
export {
|
|
169
|
+
m as conf,
|
|
170
|
+
b as language
|
|
171
|
+
};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
9
|
+
comments: {
|
|
10
|
+
blockComment: ["###", "###"],
|
|
11
|
+
lineComment: "#"
|
|
12
|
+
},
|
|
13
|
+
folding: {
|
|
14
|
+
markers: {
|
|
15
|
+
start: new RegExp("^\\s*#region\\b"),
|
|
16
|
+
end: new RegExp("^\\s*#endregion\\b")
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}, t = {
|
|
20
|
+
defaultToken: "",
|
|
21
|
+
ignoreCase: !1,
|
|
22
|
+
tokenPostfix: ".mips",
|
|
23
|
+
regEx: /\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,
|
|
24
|
+
keywords: [
|
|
25
|
+
".data",
|
|
26
|
+
".text",
|
|
27
|
+
"syscall",
|
|
28
|
+
"trap",
|
|
29
|
+
"add",
|
|
30
|
+
"addu",
|
|
31
|
+
"addi",
|
|
32
|
+
"addiu",
|
|
33
|
+
"and",
|
|
34
|
+
"andi",
|
|
35
|
+
"div",
|
|
36
|
+
"divu",
|
|
37
|
+
"mult",
|
|
38
|
+
"multu",
|
|
39
|
+
"nor",
|
|
40
|
+
"or",
|
|
41
|
+
"ori",
|
|
42
|
+
"sll",
|
|
43
|
+
"slv",
|
|
44
|
+
"sra",
|
|
45
|
+
"srav",
|
|
46
|
+
"srl",
|
|
47
|
+
"srlv",
|
|
48
|
+
"sub",
|
|
49
|
+
"subu",
|
|
50
|
+
"xor",
|
|
51
|
+
"xori",
|
|
52
|
+
"lhi",
|
|
53
|
+
"lho",
|
|
54
|
+
"lhi",
|
|
55
|
+
"llo",
|
|
56
|
+
"slt",
|
|
57
|
+
"slti",
|
|
58
|
+
"sltu",
|
|
59
|
+
"sltiu",
|
|
60
|
+
"beq",
|
|
61
|
+
"bgtz",
|
|
62
|
+
"blez",
|
|
63
|
+
"bne",
|
|
64
|
+
"j",
|
|
65
|
+
"jal",
|
|
66
|
+
"jalr",
|
|
67
|
+
"jr",
|
|
68
|
+
"lb",
|
|
69
|
+
"lbu",
|
|
70
|
+
"lh",
|
|
71
|
+
"lhu",
|
|
72
|
+
"lw",
|
|
73
|
+
"li",
|
|
74
|
+
"la",
|
|
75
|
+
"sb",
|
|
76
|
+
"sh",
|
|
77
|
+
"sw",
|
|
78
|
+
"mfhi",
|
|
79
|
+
"mflo",
|
|
80
|
+
"mthi",
|
|
81
|
+
"mtlo",
|
|
82
|
+
"move"
|
|
83
|
+
],
|
|
84
|
+
symbols: /[\.,\:]+/,
|
|
85
|
+
escapes: /\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
86
|
+
tokenizer: {
|
|
87
|
+
root: [
|
|
88
|
+
[/\$[a-zA-Z_]\w*/, "variable.predefined"],
|
|
89
|
+
[
|
|
90
|
+
/[.a-zA-Z_]\w*/,
|
|
91
|
+
{
|
|
92
|
+
cases: {
|
|
93
|
+
this: "variable.predefined",
|
|
94
|
+
"@keywords": { token: "keyword.$0" },
|
|
95
|
+
"@default": ""
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
[/[ \t\r\n]+/, ""],
|
|
100
|
+
[/#.*$/, "comment"],
|
|
101
|
+
["///", { token: "regexp", next: "@hereregexp" }],
|
|
102
|
+
[/^(\s*)(@regEx)/, ["", "regexp"]],
|
|
103
|
+
[/(\,)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
|
104
|
+
[/(\:)(\s*)(@regEx)/, ["delimiter", "", "regexp"]],
|
|
105
|
+
[/@symbols/, "delimiter"],
|
|
106
|
+
[/\d+[eE]([\-+]?\d+)?/, "number.float"],
|
|
107
|
+
[/\d+\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
|
108
|
+
[/0[xX][0-9a-fA-F]+/, "number.hex"],
|
|
109
|
+
[/0[0-7]+(?!\d)/, "number.octal"],
|
|
110
|
+
[/\d+/, "number"],
|
|
111
|
+
[/[,.]/, "delimiter"],
|
|
112
|
+
[/"""/, "string", '@herestring."""'],
|
|
113
|
+
[/'''/, "string", "@herestring.'''"],
|
|
114
|
+
[
|
|
115
|
+
/"/,
|
|
116
|
+
{
|
|
117
|
+
cases: {
|
|
118
|
+
"@eos": "string",
|
|
119
|
+
"@default": { token: "string", next: '@string."' }
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
[
|
|
124
|
+
/'/,
|
|
125
|
+
{
|
|
126
|
+
cases: {
|
|
127
|
+
"@eos": "string",
|
|
128
|
+
"@default": { token: "string", next: "@string.'" }
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
],
|
|
133
|
+
string: [
|
|
134
|
+
[/[^"'\#\\]+/, "string"],
|
|
135
|
+
[/@escapes/, "string.escape"],
|
|
136
|
+
[/\./, "string.escape.invalid"],
|
|
137
|
+
[/\./, "string.escape.invalid"],
|
|
138
|
+
[
|
|
139
|
+
/#{/,
|
|
140
|
+
{
|
|
141
|
+
cases: {
|
|
142
|
+
'$S2=="': {
|
|
143
|
+
token: "string",
|
|
144
|
+
next: "root.interpolatedstring"
|
|
145
|
+
},
|
|
146
|
+
"@default": "string"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
[
|
|
151
|
+
/["']/,
|
|
152
|
+
{
|
|
153
|
+
cases: {
|
|
154
|
+
"$#==$S2": { token: "string", next: "@pop" },
|
|
155
|
+
"@default": "string"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
[/#/, "string"]
|
|
160
|
+
],
|
|
161
|
+
herestring: [
|
|
162
|
+
[
|
|
163
|
+
/("""|''')/,
|
|
164
|
+
{
|
|
165
|
+
cases: {
|
|
166
|
+
"$1==$S2": { token: "string", next: "@pop" },
|
|
167
|
+
"@default": "string"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
[/[^#\\'"]+/, "string"],
|
|
172
|
+
[/['"]+/, "string"],
|
|
173
|
+
[/@escapes/, "string.escape"],
|
|
174
|
+
[/\./, "string.escape.invalid"],
|
|
175
|
+
[/#{/, { token: "string.quote", next: "root.interpolatedstring" }],
|
|
176
|
+
[/#/, "string"]
|
|
177
|
+
],
|
|
178
|
+
comment: [
|
|
179
|
+
[/[^#]+/, "comment"],
|
|
180
|
+
[/#/, "comment"]
|
|
181
|
+
],
|
|
182
|
+
hereregexp: [
|
|
183
|
+
[/[^\\\/#]+/, "regexp"],
|
|
184
|
+
[/\\./, "regexp"],
|
|
185
|
+
[/#.*$/, "comment"],
|
|
186
|
+
["///[igm]*", { token: "regexp", next: "@pop" }],
|
|
187
|
+
[/\//, "regexp"]
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
export {
|
|
192
|
+
e as conf,
|
|
193
|
+
t as language
|
|
194
|
+
};
|